r/ClaudeCode • • 1h ago

Help/Question How to avoid Claude silenly stalling?

Feels like using the word silently signals being an LLM, but there really isn't a better word for it.

Currently using the orchestrator function in Claude code to run pre-planned waves of work. These usually run several hours, mainly because they will run and rerun tests which can take a long time.

However I often experience these long running sessions stalling without the orchestrator or its thread noticing.

Asking orchestrator for status, or in some cases the thread usually has it pick it up and resume work, but in rare instances I have to ask why its specific lane is stalling before it detects it.
How do I avoid this? At some point I asked Claude to build a deterministic tool called a Wave Runner to mitigate the issue, but despite several iterations it did not seem to work.

Does aynone else experience similar issues and have a solution to it?

1 Upvotes

5 comments sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AgentYurt 1h ago

Same problem here. The orchestrator can't see a lane is stuck because the lane's status only lives in that lane's own context — asking for status works because it forces the lane to look at itself again.

What helped me: each lane writes a one-line status to a small file on disk as it works (what it's doing, last time it moved), and the orchestrator re-reads those files before every check instead of asking the thread. A status line that hasn't moved in a while tells you exactly which lane is stuck, and you only have to re-prompt that one instead of the whole wave.

1

u/Mad1Scientist 52m ago

Interesting idea, makes it easy to get status from threads without prompting them for sure

1

u/AgentYurt 48m ago

That's the part that made it stick for me — the timestamp on the line does the detecting. I have the orchestrator glance at the file every few minutes, and if a lane's line is older than ten minutes while it should still be working, that's the stuck one. No prompting needed.

1

u/CandidSystem6155 21m ago

One cause worth ruling out: someone here reported subagents at xhigh effort filling their context every 2 or 3 turns, and the replacement rereads the same material, so from outside it looks like a stall. Lower effort on the lanes fixed it for them. For detection I'd stop asking a model at all. Have each lane touch a status file after every test run, and a dumb script flags any lane whose file hasn't changed in N minutes. The lane can't notice it's stuck, a timestamp can.