Type to search the docs and updates.

Browse documentation

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.

  • parentId is the id of 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.
  • reach says 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; parentName names it), or codex-threads (Codex's /subagents command). Pane ids and terminals stay out of the reply.
  • A Claude Code subagent comes from the session's subagents folder 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 its id as helper.
  • A Claude Code teammate is listed only while ~/.claude/teams/<team>/config.json lists 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; its id is its member id, such as reviewer@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 parentId naming its parent. It is listed while a process holds its thread and its rollout says a turn runs. Open it with POST /api/conversations/open and its own tool and id. One in a terminal switches to the process that runs it, never a second codex resume.
  • A codex exec run is linked to its Claude Code session only from the running codex process: the process holds the run's writer lock, and its environment holds CLAUDE_CODE_SESSION_ID and CLAUDE_CODE_CHILD_SESSION=1, which Claude Code's Bash tool sets. The server reads the environment the kernel keeps for the process (kern.procargs2 on macOS, /proc/<pid>/environ on 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's note says so.
  • POST /api/conversations/open opens a helper only when a conversation in the server's scope lists it.
  • workingSubagents stays as it was and does not count codex exec runs.

Open a helper

Send helper with POST /api/conversations/open.

  • helper is the id of a Claude Code subagent or teammate the conversation lists in helpers. 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, and message adds 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, command holds tmux -L <socket> attach. Nothing is typed into the terminal. The reply's helper is that helper. A helper the conversation no longer lists has finished: its conversation still opens, and message says so. A companion sends an open without helper again once to a server that refuses the field. A Codex subagent opens with its own tool and id instead; when its terminal came to the front, message says to type /subagents.
  • reached is set when the open named a helper, or opened a Codex subagent: subagent when its own pane came to the front, parent when the conversation it runs in did and message says how to reach it. A reply without it, from an older server, means parent.