Repository navigation
Show what a Codex or OpenCode subagent did, and give it its task again on a follow-up - #123
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…n on a follow-up Claude Code reports these subagents with 0 tool uses, because the agent's commands run inside Codex or OpenCode and reach Claude Code only as text. The report handed back now ends with the steps the agent ran, or says it ran none: at most 30, each on one line and cut at 120 characters. Claude Code spawns the agent again for a message sent to it after it finished, with that message as the prompt, and each turn starts a fresh Codex or OpenCode session, so the agent saw only the message. A follow-up turn now reads the subagent's transcript and sends the first task, the last report and the new message.
m4rocks
force-pushed
the
subagent-acp-fix
branch
from
November 17, 2026 12:02
cd12b0b to
2759ce9
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Claude Code reports a Codex or OpenCode subagent with 0 tool uses. The agent's commands run inside Codex or OpenCode and reach Claude Code only as text, so a caller took a short report for one written without reading the code.
A message sent to a finished subagent also reached Codex without its context. Claude Code spawns the agent again for that message, with the message as the prompt, and the helper starts a fresh Codex session each turn. Codex had neither the task nor its earlier report, and asked which file was meant.
The report handed back now ends with the steps the agent ran, or says it ran none. It lists at most 30, each on one line and cut at 120 characters. A follow-up turn reads the subagent's transcript and sends the agent the first task, the last report and the new message.
Evidence
claude plugin test modpasses 21 tests. The two follow-up tests fail with the oldcustomTask.claude -p --plugin-dir modrun with a read-only gpt-6.1-sol subagent handed backSteps Codex ran (1): - Get-Content -LiteralPath README.md -TotalCount 1.Risk
The report grows by up to 31 lines, and a follow-up prompt grows with the first task and the last report. Only
mod/hooks/register.jsand its test change, so reverting this commit undoes it.