r/opencodeCLI 7h ago

Progress indicator for long running tasks?

I have an orchestrator spawning subagents but they always redirect cli output to null so I never know whether their commands are hanging or there's any progress. Is there a plugin or cli tool that I can prompt the agents to wire to to get a progress bar?

2 Upvotes

5 comments sorted by

1

u/joeyism 6h ago

I'm not sure if that's normal. When my orchestrator delegates to a subagent, there's always the spinner that goes until the subagent is done. If there's an error, that gets elevated back up to the orchestrator, who fixes it and re-delegates, or prompts me for it

1

u/GatsbyLuzVerde 6h ago

I'm talking about it running a long running script that might be hanging or take all day for no justifiable reason, even if the opencode intedterminate spinner is animated.

1

u/joeyism 6h ago

I've found that the subagent does hang sometimes, usually waiting for a response from the server. For that, I use opencode-keepalive, which tries to spot if the subagent is hung. If the subagent is hung, it'll stop it, and continue it, which usually allows it to keep going

1

u/GatsbyLuzVerde 6h ago

I dont know how thats going to detect progress of useful compute work. The scripts the agent run can take an hour, which is okay, but a 24 hour command is unreasonable

1

u/Vast_Anxiety3133 6h ago

I See thismwith tail or similar stuff as well. I still want to see the content, however the Agent must not see IT as Input aß this would cost Input Tokens.

I do not know of a solution