Ask HN: How do you get into a flow state when using AI to code?
Overall sentiment on flow state with AI coding
- Many say they cannot reach traditional flow with agentic/AI coding; experience is “stop-and-go,” like project management or babysitting a junior dev.
- Some feel coding joy is gone; they’d avoid AI if it weren’t required, and a few have stepped back from AI entirely in new roles and report better satisfaction.
- Others report new kinds of flow: shorter, repeated bursts of focus, or flow in higher‑level design and learning rather than typing code.
Main blockers to flow
- Waiting for responses breaks concentration; chat UIs encourage passivity and web/YouTube distraction.
- Slow but capable models vs fast but dumber models both disrupt flow differently (trust vs latency trade‑off).
- Multitasking across many agents or tasks taxes working memory; context switching is widely cited as anti‑flow.
- AI output can be hard to read, architecturally weak, or wrong, creating extra review/debug burden.
Workflows people use to cope
- Multitask across 2–10+ agents, repos, or worktrees so something is always running; some frame this as “selective multitasking” or “prioritized context switching.”
- Use AI only for narrow, boring, or boilerplate tasks (bug hunting, small scripts, visualization, search in deps); code interesting parts by hand.
- Treat AI as autocomplete/pair programmer: comment-driven development, small snippets, incremental diffs, and tight verification loops.
- Shift flow to planning/design: write design docs, plans, and prompts; AI does execution and tests; engineer stays in review and orchestration.
- Build custom tooling (tmux/TUI/task managers/orchestration layers) to handle multiple sessions asynchronously and protect attention.
Alternative attitudes and reframing
- Some embrace AI as delegatable “junior devs” and accept that deep uninterrupted flow is rarer at senior/staff levels anyway.
- A few lean into experimentation and research, using agents to explore many ideas; “flow” comes from running and interpreting experiments.
- Others see the solution more in UX than models: background reviewers, non‑chat interfaces, better notifications, and terser outputs.
Coping strategies outside tooling
- Suggestions include meditation during waits, keeping scratch/ideas docs, listening to music, or even psychedelics; effectiveness is subjective and mixed.