Conversations helpers API
helpers
In the conversations response, helpers lists the agents this conversation started that are no rows of their own and still work, each {tool, id, title, kind?, reply?, state, updatedAt, parentId?, reach?, parentName?}. They are its native Claude Code or Codex subagents, its Claude Code agent team teammates, and the codex exec runs a local Claude Code session started. A helper that finished is not listed. state is always working. kind is the agent type the tool gives, such as Explore. title is empty when the tool gave none or it may hold a credential. reply is a Claude Code subagent's latest message, as one line like a row's reply; it is read from the last 256 KB of the subagent's transcript, and a message to the subagent after it, such as a teammate's, keeps it. It is left out before the subagent wrote one, when it may hold a credential, or when its latest message is further back than that. Omitted when none works, or when the states cannot be read.
parentIdis theidof the helper that started this one. The list stays flat; a client builds the tree. The parent may be missing from the list, such as one that finished.reachsays how to reach the helper's own view:pane(a terminal pane of its own),rows(the agent rows below its conversation's prompt),nested(inside another helper;parentNamenames it), orcodex-threads(Codex's/subagentscommand). Pane ids and terminals stay out of the reply.- A Claude Code subagent comes from the session's
subagentsfolder and the meta file Claude Code writes beside each one. It is listed while the live process's task events say it works. A session no process runs lists none. It has no route of its own: open its conversation, with itsidashelper. - A Claude Code teammate is listed only while
~/.claude/teams/<team>/config.jsonlists it, and the file names this conversation as its lead. A teammate in the lead's process works from a new message until its turn ends, as its own transcript says. A teammate in a tmux pane works while its team marks it active; itsidis its member id, such asreviewer@session-0d2fda98. - A Codex subagent is a child of a Codex thread. One that a subagent started is listed under the thread at the top, with
parentIdnaming its parent. It is listed while a process holds its thread and its rollout says a turn runs. Open it withPOST /api/conversations/openand its owntoolandid. One in a terminal switches to the process that runs it, never a secondcodex resume. - A
codex execrun is linked to its Claude Code session only from the runningcodexprocess: the process holds the run's writer lock, and its environment holdsCLAUDE_CODE_SESSION_IDandCLAUDE_CODE_CHILD_SESSION=1, which Claude Code's Bash tool sets. The server reads the environment the kernel keeps for the process (kern.procargs2on macOS,/proc/<pid>/environon Linux), keeps only those two variables, and links nothing when either is missing or set twice. Every scan reads the link again; nothing is saved, so a run that ended is listed nowhere. Titles, folders and times are never used to guess. When process environments cannot be read, the Codex tool'snotesays so. POST /api/conversations/openopens a helper only when a conversation in the server's scope lists it.workingSubagentsstays as it was and does not countcodex execruns.
Open a helper
Send helper with POST /api/conversations/open.
helperis theidof a Claude Code subagent or teammate the conversation lists inhelpers. A teammate with a tmux pane, or a subagent inside one, gets that pane: tmux selects it and its terminal tab comes to the front. Otherwise its conversation opens as without it, andmessageadds how to reach it: the down arrow and Enter below the prompt, the helper it runs inside, or, for a pane in a tmux session no terminal shows,commandholdstmux -L <socket> attach. Nothing is typed into the terminal. The reply'shelperis that helper. A helper the conversation no longer lists has finished: its conversation still opens, andmessagesays so. A companion sends an open withouthelperagain once to a server that refuses the field. A Codex subagent opens with its owntoolandidinstead; when its terminal came to the front,messagesays to type/subagents.reachedis set when the open named a helper, or opened a Codex subagent:subagentwhen its own pane came to the front,parentwhen the conversation it runs in did andmessagesays how to reach it. A reply without it, from an older server, meansparent.