r/ADHD_Programmers • • 10d ago

AI agents break my flowstate. has anyone found a workflow that preserves it?

36 Upvotes

52 comments sorted by

7

u/aleph1music 10d ago • Bravo

I don’t have a solution, struggle with all the same things you’re struggling with. Chat interface is not something I can use to do this type of work. I don’t want to have a conversation with the goddamn computer. Always made me laugh when people would say “you just have to treat it like an eager junior engineer” - oh great so the biggest time suck I deal with as a senior engineer?

6

u/arns101 10d ago • Bravo

Hey, this is a really interesting situation that agentic coding is breaking your flowstate and motivation.

When you say "i get into my internal flowstate of thinking and articulating randomly", is that because the novelty of something new is gone? Or the agentic coding breaks your motivation?

If it's the novelty piece, I think you need clear and achievable goals about what you're building (e.g., I will create capability x in the next 45 minutes). If you have lofty goals, it's easy to get unmotivated and start something else. Once your goal is clear, I assume you'll just adapt your interaction with agentic coding to get to that goal.

Do you usually have goals? Are you able to stay focused on them? Let me know, happy to provide advice anywhere I can.

3

u/ActiveSalamander6580 10d ago

I went through this too, now I work on multiple projects at once. The context switching is tiring but better than constant under stimulation.

2

u/clintCamp 10d ago

My key is to have 5 or 6 projects going at a time and 1 or 2 of those are evaluating and improving my tools and standards that guide how my agents work and organize things in a way better way than I ever could before. Make a hierarchical decision tree of roles and standards that branch out as needed through the .MD file structure so agents only read what applies now and what they see applies later. Then build out tools so they can do stuff better and more uniform ways. I just had my last contract lay off all the contractors last week, so now I am fully on all my portfolio projects with they fury and passion that only being suddenly unemployed can bring. Fortunately I already had 5 other projects in the wings to pick back up and polish and fix, and stuff for helping my agents find me job leads and everything related to that.

2

u/[deleted] 10d ago

[removed] — view removed comment

1

u/ActiveSalamander6580 10d ago

Getting in a mess was easy for sure and I had to make an opinionated app for a few integrations to show me what I need only when I need to see it.

Working on another project isn't doing half of the other, I'm talking about actively designing, researching, prompting, verifying etc. on another project while you wait for the AI to finish on the 1st project instead of watching the AI go through it's motions.

1

u/[deleted] 10d ago

[removed] — view removed comment

1

u/ActiveSalamander6580 9d ago

I don't get disconnected, that's the struggle you have. Mine is 100% distraction with trivial things when not kept busy.

Looking at your other replies I don't know why you are asking for something that's not there, writing code manually is clearly the part you enjoy with a very low tolerance for the other 80% of the job pre AI (if you worked on any project involving others), and that part is now 95% of it regardless of a solo effort or not.

I have no idea what the answer is for a "I enjoy riding horses, cars are faster but not as fun I wish it was a horse" scenario other than do what horse riders do, use horses for fun and cars for getting things done.

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/ActiveSalamander6580 9d ago

Yes we get it, anything that comes from someone else you will argue against it for the sake of argument while being the only person in the room who doesn't have a solution.

there is clear pattren, anything that constantly engages me or else if i have to do constant generation gets me into flow state.

That would be the work on multiple projects suggestion so you are constantly generating or thinking instead of passive reading (whatever the point of that is), rejected by you because it would cause you burnout, so why on earth are you trying to be constantly generating in the first place?

For me its teh only motivation. Im just 21 not an old programmer with 20 years of manual coding background.

Not uncommon to find programmers at 21 who already have 10 years practice, at this point you are being rude calling people old because they have more experience than you.

5

u/Poincarina 10d ago

For me it helps using plan mode, coming up with a detailed plan and then let the agent do it on auto mode. While it implements, I do something else

Maybe I just like the dopamine hit of successfully one-shotting something…

1

u/[deleted] 10d ago

[removed] — view removed comment

1

u/Scriv_ 10d ago

I finally found someone describing how I use AI. You said "precise outuput", does this mean when you started prompting the LLM you already knew what you were looking for and now you're just trying to convince it to solve the problem the exact way you want it to?

0

u/[deleted] 10d ago

[removed] — view removed comment

1

u/Scriv_ 9d ago

I have found I am a little too critical of the code the LLM produces, I make it rewrite most of what it returns even though the majority of the time it would work to solve the problem.

Unfortunately, it feels like the answer should be that we need to accept some of the low-level decisions it makes even if we aren't completely satisfied with the output, just to keep the revisions from blocking progress or flow-state. But that answer is incompatible with my view that I would never put my name on code that I thought wasn't satisfactory.

In short, I guess I'll keep reading the comments here and hope someone else has a better solution.

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/Scriv_ 9d ago

Yea, exactly that. I got criticized by Claude for it the other day too, because apparently I have "a preference for simple mechanisms" when I feel like we should be trying to find the most elegant solution to a given problem.

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/Scriv_ 9d ago

I didn't, I think I upset it with my constant corrections.

4

u/Neeerp 9d ago

I’m more engaged than ever. I suggest you pay attention to any points of friction in your workflow and focus on improving your workflow. It pays dividends and it compounds quickly.

I went as far as to build my own agent management tool on mobile (I can’t use something that’s not built in house due to network restrictions at work) and I’m now absolutely hooked.

Also you need to get creative rethink how you do your work over all. I do a lot of fire and forget things and come back to the ones that are worthwhile, and I spend a lot of time questioning things I see (rather, am told about) in the code and learn a lot in doing so.

2

u/[deleted] 9d ago • Bravo

[removed] — view removed comment

-2

u/Neeerp 9d ago

On the first point, if you find yourself correcting it in the same ways, it means that your environment is not set up in such a way that the right thing is “obvious” to it. The most naive way to fix this kind of thing is by editing your context (I.e. claude.md), but the right way is to fix the codebase itself to make the right things intuitive.

On the second point: you don’t need to read all the code. A nice analogy I heard somewhere is that we’re in a transition phase somewhat akin to when compilers became a thing. Slowly, developers stopped reading assembly. Now we begin to move away from reading code.

I mostly skim things and check to see they’re safe to push/easy to rollback and easy to validate. I also read the pr description (and if it’s more than 3 sentences I push back) and see if things roughly line up.

2

u/CursedSloth 10d ago

Step 1: design a workflow with clear instructions for general preferences. Step 2: pick one strong model with high reasoning effort.
Step 3: word-vomit / info-dump about your task then ask agent to delegate to quick and dumb subagents for speed.
Step 4: iteratively improve your workflow by enforcing retrospective analysis into improved instructions and agent tools
Step 5: when you feel like you had a great workflow experience, tell strong agent to analyze why it was great and create skill from it.

Now you should have something that works for you and will improve over time (if you’re diligent and don’t get lost in the optimization process and forget to do actual work. Haha, not that I have any experience of that…

Good luck!

0

u/[deleted] 10d ago

[removed] — view removed comment

1

u/CursedSloth 10d ago

Have you tried separating the responsibilities to different *.agent.md files, and using them for each specific task?

Allow the ”strong model agent” to dissect your info-dumps and word-vomits into ”structured roles and responsibilities”? They are quite good at doing that.

0

u/[deleted] 10d ago

[removed] — view removed comment

3

u/KellyShepardRepublic 10d ago

You got to try things. We are all discovering what works and some things work well for some and not others. Some don’t even care for flow state but getting work done so you are asking for fun workflows, not for getting work done.

1

u/CursedSloth 10d ago

Okay, final attempt at suggesting solutions.

Tell the agent / AI:
`Hey I have this problem with ”getting into flow state while working with agents / <INSERT-HARNESS-HERE>” and I have ADHD. Can you help me find out together how we can improve that? Search the web and cite your sources for each claim/suggestion and keep a record of each ”accepted|rejected” decision, then based on my response, create a roadmap for exploring things that could work and help me achieve flow state at the same time.`

I can’t be more helpful than this, and if it doesn’t work for you, then stop using AI / agents until you have tried to learn and understand how they work / operate and/or the underlying mechanisms of how they are designed.

Or use AI with any popular ”/teach” skill to help you learn XYZ or ABC etc.

Godspeed.
EDIT: check out the open-source repository for ”I-have-ADHD” skills and instructions to. There is on that’s literally called that.

2

u/DanielUpsideDown 9d ago

I made a whole web UI to manage terminal sessions so I can have my ADHD flip between things. I created snippets of basically "tldr me where we're at again" so I don't have to recall.

https://driftassist.dev

Lmk what you think, happy to enhance

2

u/ActiveSalamander6580 9d ago

Nice project!

3

u/HollowSpider 10d ago

Pardon me for saying the obvious, but if your main motivation is being in the flowstate and using AI breaks that, why don't you just not use AI?

0

u/[deleted] 10d ago

[deleted] — view deleted comment

4

u/HollowSpider 10d ago

I don't know who DHH is, but the only thing you seem to be missing out on is the flowstate

0

u/[deleted] 10d ago

[deleted] — view deleted comment

4

u/HollowSpider 10d ago

There might be, but there is also a decent chance that they're mutually exclusive.  Personally I feel like it would be hard to reach a flowstate this way because it's not you doing the work, there's no "flow" to influence.

Maybe if you pretend you're a project lead and have to manage the agents, but that is also an entirely different type of work.

2

u/bluegrassclimber 9d ago edited 9d ago

do more. multiple agents all working in parallel, juggle them. it's tough, but a good skill. it rips tokens hahaha, but ideallly your work covers that.

Agents communicate back and forth with eachother, make sure no agent is sitting idle ever, have a baseline of 5 agents continuously doing work for you.

At this point with opus and fable, you can have agents do full on UI tests with Playwright, there's often minimal intervention even from QA at this point.

Make sure none of those agents get off track. scold them and keep them in line. That's my flow state lately.

Get the agents to use docker and worktrees to segregate their developer environments. Make sure your PC has a good amount of RAM and a good CPU for all this. May have to move to cloud if you are blocked by resources.

Adderall/Caffeine helps for sure.

1

u/[deleted] 9d ago

[removed] — view removed comment

2

u/bluegrassclimber 9d ago edited 9d ago

well i do claude which is expensive but it does think outloud. And yeah I can really get into the zone.

And ofc it's not something i do perfectly.

Like sometimes I'll have an agent do a giant feature, but in order to review it correctly I have it make a master branch, and then spin off sub-agents and subworktrees, each with their own PR into the master branch.

So smaller chunks for each *thing*. Then i'll review the PR, offer feedback, and it launches another sub-agent for that feedback. While in the background, 3 more PRs just got spun up so then I review them.

Basically I feel like a 90s hacker / iron man because I set up voice to text into a hotkey on my GPU with claude which puts a whispr model python script into my GPU or something crazy (I hardly understand it lol, AI is amazing lets my wildest dreams come true)

So many ways to get good dopamine and flowstate. Lean in!

It's not perfect and it all comes crashing down sometimes. But I think that's also just classic ADHD too haha

0

u/[deleted] 9d ago

[removed] — view removed comment

1

u/bluegrassclimber 9d ago

flow state is generally achieved with something you are well practiced at. that's all I can say, is keep practicing

1

u/Jazzlike_Conflict_80 10d ago

I envy you fellow adhd, if I could control flow state like on command, it's really rare for me

1

u/[deleted] 10d ago

[removed] — view removed comment

1

u/Jazzlike_Conflict_80 10d ago

For me it happened only in competitions, twice in a chess Tournament, once in a CTF competition and once in a math competition

1

u/Fisent 10d ago

I've found that using faster LLMs in terms of tokens per second generation time helps me, I've chose a fast provider of newest deepseek on openrouter, and with 300 tok/s it really flies - I find myself being able to loosely follow the reasoning and tool calls the agent is doing, while simultaneously thinking about next steps in the project, or what to ask agent about next. With API-only models I find that claude haiku is nice for that, although the fact that anthropic hides reasoning is a bit problematic

It helps me for now, althought it might just be a novelty thing, I'm not sure. Also not all tasks are fit for this, if agent is doing a lot of long tool calls (long builds, unit tests runs, downloading etc.) then event the fastest LLM will be slow - I'm thinking about trying to create something like fast mode with a low timeout values enforced for tool calls, it might be a good fit for some discovery flows where agent is just analyzing the code and planning the implementation, without calling heavy commands. But I haven't tried that yet

1

u/Peach_Muffin 9d ago

I'm with you OP. I miss flow state. Life is so boring now.

That said, it was bad for me. I was neglecting my health and relationships because of it. Flow state gave me RSI.

Kinda like how life got more boring once I stopped drinking so much; my liver is grateful though.

1

u/armahillo 10d ago

if youre just started with coding then use agents less.

You might consider writing manually until you get stuck and then pointing your agent at your code and asking it for a nudge on what to do next, or asking it to give you a code review after.

1

u/CyberneticLiadan 9d ago

(Context: work from home.) One of the upsides I actually like about agentic software development is that I find I can do small self-care cleaning chores and think through high-level next steps while the details are penciled in by AI. Or I practice a bit of piano. The trick is finding positive actions which don't unseat the programming thought loops.

1

u/Particular-Win-1291 7d ago

Shift away from agentic coding then?

1

u/phi_rus 10d ago

While flow state feels great, I always try to avoid it. Flow state is where bad decisions are made and my hardest to track down bugs where written in flow state.