Live data from Hacker News

Ask HN: How do you get into a flow state when using AI to code?

news.ycombinator.com

101–110 of 140 posts

Re: Ask HN: How do you get into a flow state when using AI to code?

#102
It is hard. Much harder than regular software work. A few things need to line up: model iteration speed, task chunk size, and your own context window and comprehension abilities. Too slow and you lose interest. Too easy and it's just tedious riffing. Too large and you're burned out by reviewing giant complicated walls of text. Etc. The bites have to be the right size and speed for both you and the LLM.

In 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
post #40

(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.

Agents allow for delegation, that’s something we aren’t used to as devs. But it’s very useful.

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?

#104
post #26

I 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.

[dead]

Re: Ask HN: How do you get into a flow state when using AI to code?

#106
post #70

Earlier 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 :)

The feeling of gentle content / blissful love emerges automatically as the grip of thinking convulsions releases the body.

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?

#107
post #72

Earlier 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…

Not familiar with the infinite gamut of techniques, and yes sounds right.

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?

#108
post #63

What 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?

I write prompt for another feature or fix.

Re: Ask HN: How do you get into a flow state when using AI to code?

#109
Indeed, the code generated by AI is very poorly readable. After a while, I gave up reading the code! I feel like my coding ability has been reduced, and I don’t know if this is a good thing. I used to work hard on coding, but now I feel more and more like a product manager.
Post reply on HN