Skip to content

Show a sub agent as a card with its run inside - #190

Merged
splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:subagents
Nov 17, 2026
Merged

splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:subagents

Conversation

@splitbrain-bot

@splitbrain-bot splitbrain-bot commented Nov 17, 2026 •

Copy link
Copy Markdown

A sub agent that an agent started was invisible in the thread. The adapters now report a sub agent as a session of its own, and the thread shows it as a closed card at the point where the agent started it. The card names the sub agent, shows a spinner while it runs, and holds the text, the tool calls and the nested sub agents of its run. A permission request of a sub agent renders inside the card and opens it.

Changes:

  • The gateway declares the native sub agent sessions of the AIR contract and the child session updates of opencode. It records the thread of each sub agent session and routes its updates and permission requests to that thread. opencode's opencode/session/child_update is translated into the same form as the Claude and Codex adapters send.
  • The dashboard keeps the run of a sub agent in a tool part of its own and renders it as a nested readonly thread of assistant-ui.
  • The gateway declares terminal_output_delta, and the card of a Codex command shows its output chunks. The dashboard showed [terminal <id>] before.
  • Harness versions: claude-agent-acp ^0.108, codex-acp 2.7.0 with Codex 0.169.0, opencode 2.3.0 (@opencode/cli). Codex 0.169 ignores commit_attribution, so the box config drops it. opencode 2 reads no OPENCODE_DISABLE_LSP_DOWNLOAD and installs no plugin package at its start, so the harness and the home seed drop both.
  • Dependencies: @agentclientprotocol/sdk 2.7.0, @assistant-ui/react 0.15.36, @assistant-ui/react-markdown 0.14.26.

Not in this change: cancel of a running sub agent. The nested messages keep their action bar.

The e2e test a sub agent is a closed card that shows its run when opened writes a screenshot of the card to dashboard/e2e/screenshots/thread-subagent.png.

A sub agent that an agent started was invisible: the Claude adapter sent its tool calls as flat rows of the thread,
Codex sent only start and end rows, and opencode sent nothing. The adapters now report a sub agent as a session of
its own, and the thread shows it as a closed card at the point where the agent started it. The card names the sub
agent, shows a spinner while it runs, and holds the text, the tool calls and the nested sub agents of its run. A
permission request of a sub agent renders inside the card.

The gateway declares the native sub agent sessions of the AIR contract, records the thread of each sub agent session
and routes its updates and permission requests to that thread. The child session notifications of opencode are
translated into the same form.

The dashboard did not show the output of a Codex command, because the adapter sends it in output chunks beside the
content. The gateway declares that chunk channel, and the card of a command shows the chunks.

The harnesses move to the versions that report sub agents: claude-agent-acp 0.108, codex-acp 2.7 with Codex 0.169,
and opencode 2.3.0 from the @opencode/cli package. Codex 0.169 ignores commit_attribution and warns about it, so the
box config drops the setting. opencode 2 reads no OPENCODE_DISABLE_LSP_DOWNLOAD and installs no plugin package at its
start, so the harness and the home seed drop both. The ACP SDK of the orchestrator and assistant-ui follow.
@splitbrain
splitbrain merged commit e732735 into splitbrain:main Nov 17, 2026
7 checks passed
@splitbrain-bot
splitbrain-bot deleted the subagents branch November 18, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants