Ask HN: How do you get into a flow state when using AI to code?
101–110 of 140 posts
Re: Ask HN: How do you get into a flow state when using AI to code?
#102In the few instances I've been able to achieve really joyful flow state, there are usually two simultaneous workstreams, plus or minus one. They're usually working towards a large goal that I roughly know how to judge, in digestible bites.
For example, sequentially modifying the UI in a series of operations towards an overarching goal, where it's easy to tell if a step worked, and what the next step should be, but where you're not sure exactly what you want, so there's some curiosity and discovery rather than just feeding the bot tiny instructions. I try to keep the two workstreams from overlapping. If both streams start fighting over a file they both dirty, things go south fast.
Adjusting your prefs/harness/etc for model terseness goes a LONG way. Context quality is absolutely everything. A good context "seed" can go back and forth for many turns cleanly and with focus, and even compact successfully once or twice. A bad seed will be annoying to work with from the jump, will thrash towards compaction faster, at which point it gets even worse. This is difficult to troubleshoot objectively, but I'll frequently restart conversations if I don't like the vibe of the first couple turns. It's made harder by constant model churn. Until opus 4.8, I ran opus/sonnet 4.5 high for a long time in large part for continuity of intuition, if that makes sense.
There are also many elements of human knowledge management that make a difference. I've found "append only" to be a magic word, generating markdown logs of changes, or learnings, etc. Whatever workflows create visibility and resumability so that you can return from a spell away and get up to speed effectively. Manually keeping your own dev log alongside the session sometimes helps, makes things sticky and ensures you understand what's happening.
But it's hard. Feels incredible when it goes well, but going well feels very nearly random, and whittling towards reproducibility can be very mentally draining, in terms of both energy and morale.
Re: Ask HN: How do you get into a flow state when using AI to code?
#103(1) Spending time building a plan. I have lots of artifacts like diagrams, tables, web pages that help me think through all the details quickly. Get code snippets to reduce uncertainty, get options for architectural decisions, flesh out assumptions. Main thing is (1) how do I verify the agent hits the happy path and (2) how can I elicit and clarify assumptions it might make. Then follow up the build with exploring an…
I can't believe "prioritise context switching" is now advice being doled out on HN.
It’s why the execs get so excited about these tools: they understand how to delegate.
I still do deep work, but I actually enjoy a session bouncing between agents. And I can chose how much focus to give each tasks.
Be real, most of that flow state was typing boilerplate
Re: Ask HN: How do you get into a flow state when using AI to code?
#104I try and make very small and deterministic steps. I do the planning (in flow state) and let the model to the execution. When the model is executing, I follow the "thinking" and keep seeing the diff like I would when I was coding.
I never really got into flow state from planning. Too much brain power, dead ends, etc. I reached flow state from the "busy work." Knowing what needed to be built and implementing it.
Re: Ask HN: How do you get into a flow state when using AI to code?
#105Re: Ask HN: How do you get into a flow state when using AI to code?
#106Earlier quoted context omitted.
Not sure what the OP or the person in the videos means but a direct, fast way I have found to “drop in” is to stop thinking and intensify my awareness of everything. Takes about 5-10 seconds to transition into a nonthinking timeless presence. Attention is on the full body, and the field of perception, then field of awareness, all at the same time. A bit like shavasana practice, but instead of scanning part by part, e…
don't forget the love :)
It’s direct, effortless, always available, takes no time.
Easily done in any situation of passivity including meetings. Recommended during stand ups ;)
Re: Ask HN: How do you get into a flow state when using AI to code?
#107Earlier quoted context omitted.
Not sure what the OP or the person in the videos means but a direct, fast way I have found to “drop in” is to stop thinking and intensify my awareness of everything. Takes about 5-10 seconds to transition into a nonthinking timeless presence. Attention is on the full body, and the field of perception, then field of awareness, all at the same time. A bit like shavasana practice, but instead of scanning part by part, e…
Yes this would be one “provisional” method among many, maybe hundreds of techniques but they all seem to lead to the same place as one gets familiar. In Buddhist Vajrayana schools this is called “non-meditation”. The ultimate instruction is to simply do nothing, but this requires a bit of initiation (and paradoxically, concentration) to get right. Michael Taft has many different guided approaches to this on his chann…
It is possible, there are many ways, some people are curious about this state and lean into it, most are not. Who does, or doesn’t, and when, in my experience, is matter of grace. So no need to worry about it.
I see it as something that happens to me rather than caused by willpower. Much like a memory or a flashback that then transports you.
Re: Ask HN: How do you get into a flow state when using AI to code?
#108What works for me is: - Use a fast model like DeepSeek Flash V4 on high (it's Sonnet level, but fast and cheap). - While the LLM is working, start writting your next prompt. A good prompt usually takes between 1 and 10 minutes to write anyway. Doing this should keep you busy enough to never leave flow. But it is intense and demanding when the LLM is fast, I'll tell you that.
How does that work if you depend on the output of the first prompt?