Repository navigation
Description
What variant of Codex are you using?
Codex App and the Codex App Server API.
What feature would you like to see?
Please add a supported App Server API for registering a live external agent session as a child of a Codex thread, so that it appears in the Codex App Subagents panel alongside native Codex subagents.
Today the App Server exposes thread creation, forking, status events, descendant lifecycle behavior, and experimental parent/ancestor filters. However, the documented API does not provide a way for an external agent runtime to:
- register an existing live session under a parent Codex thread;
- identify it as an external subagent with display name and provider/runtime metadata;
- update its lifecycle state such as running, completed, failed, or cancelled;
- append bounded progress and final-result records; or
- map a cancellation request from Codex back to the external runtime.
A possible API shape could be an externalAgent/register method, or a supported thread/start variant with fields such as parentThreadId, an external-subagent source kind, external session ID, display metadata, and lifecycle callbacks/events.
The important part is that this should be a real integration contract, not a wrapper that launches a second Codex agent merely to mirror another agent. A wrapper adds model tokens, latency, coordination work, and extra failure modes only to obtain UI visibility.
Additional information
The concrete use case is Aiterm, a persistent MCP terminal that can launch and manage coding-agent sessions such as Codex, Grok, and Composer. Aiterm already owns the external process/session identity and lifecycle events. With a supported registration API, it could map those sessions into the Codex parent thread and Subagents panel without adding another reasoning agent in the middle.
This would also give other agent orchestrators, ACP adapters, IDE integrations, and local multi-agent runtimes a clean way to participate in the Codex App UI while keeping execution ownership in the originating runtime.
This is distinct from importing external-agent configuration or historical chats. Import is a migration operation; this request is for live registration, lifecycle synchronization, and parent-child presentation.
Relevant documentation:
Activity
peterbussch commentedon Sep 27, 2026
I prototyped a narrower version of this: showing finished runs from an external agent runtime (Hermes) as child threads of the Codex thread that dispatched them.
thread/starttakes an experimentalexternalSubagentfield:parentThreadId,depth,agentPath,agentNickname,agentRole,task,result,startedAt,completedAt.ThreadSpawnsubagent source, records one completed turn (the task as the user message, the result as the final answer) without calling the model, and closes the spawn edge in the state DB.ephemeral.It leaves out the live parts of this request (running status, progress, cancellation), doesn't yet validate the parent or bound the timestamps, and was written against 0.153, so it needs a rebase onto main. I wrote an app-server test covering
thread/readandthread/listwithparentThreadId, but haven't run it yet. If a completed-only variant would be a useful first step, I can rebase it and share the patch.