[FEATURE] Show claude -p sessions launched from a session's Bash commands as agents in its agents bar
Problem
Pipelines run their agents as claude -p --agent <name> processes from a script, launched from a session through Bash with run_in_background. The script owns the order (tester, then developer, then checks, then reviewer), because that order must be mechanical. These child sessions are real agent sessions, but the parent session sees only one background shell. They are absent from the agents bar at the bottom of the screen, from ListAgents and from TaskStop. The user cannot see which agent runs, cannot open its transcript from the UI, and cannot stop one agent without killing the whole pipeline.
Proposal
A claude -p process started from inside a session (directly or through descendant processes) registers with that session, for instance through an environment variable that the session sets for its Bash commands. It then appears in the agents bar as a child agent, with its agent name, its state and its transcript, and it can be stopped individually, just like an Agent tool subagent. Its lifetime and output stay under the script's control. Optionally, a flag such as --parent-session <id> would attach it explicitly.
Why not use the Agent tool instead The Agent tool puts the model in charge of sequencing. A scripted pipeline needs that sequencing to be deterministic, retried and logged by code, while keeping the agents visible and controllable like native ones.
when one agent in the pipeline goes wrong today, how do you find which one?
Today we rebuilt that visibility ourselves: the script comments each step on the ticket under the agent's role, keeps a state file with the current step, attempt and session id, and logs one line per agent session, which a side panel reads to list agents and open their transcripts. It works, but it's a parallel UI; native registration would make it unnecessary.
The framework is open source, if a concrete example helps: https://github.com/roomi-fields/roomis-grillhouse
i asked because i've built a live list of every agent session in steery, what each one is doing and what it waits on, would be awesome if you can try it with your pipeline and let me know what you think: https://steery.dev/app (sign in with github, your invite is ready)