Repository navigation
Add Codex and OpenCode subagents with a model picker, and fix show_visual cards - #114
Merged
Merged
Conversation
Claude Code could only hand tasks to Claude subagents. With Codex turned on in Settings → Custom subagents, each listed model becomes an agent type (`Claudiu:codex-gpt-6-1-sol`, or `Claudiu:codex` on Codex's default model) that runs the task in OpenAI Codex. The mod answers each turn of such an agent itself, so Claude never runs for it. It starts `claudiu --acp`, a hidden helper mode that speaks the Agent Client Protocol to `npx codex-acp@2.6.0`, streams Codex's messages and steps as thinking lines, and hands back Codex's last message with SubagentHandback. Codex runs read-only unless Allow edits is on. Refs #110
A hand-back refused twice now ends the turn with the report as text. The helper no longer waits for codex-acp's stderr after a run that answered, names the last action read-only refused, and the Allow edits text says that every Codex request is accepted, network access included. If the mod ever loses track of a Codex agent, the Claude stand-in says so instead of attempting the task. Refs #110
Settings → Custom subagents now asks codex-acp which models the account offers and shows a switch for each, instead of a field of typed names. The list is kept and refreshed in the background each time the page opens with Codex on; a model no longer offered stays listed while it is switched on. There is no default-model type any more. Claudiu defines the agent types itself with `claude --agents`, so they are named `codex-gpt-6-1-sol` rather than `Claudiu:codex-gpt-6-1-sol`, and the mod only reads the list. Codex's messages and steps are now the subagent's saved text, so they can be read in its view during and after the run; Claude still gets only the report. Refs #110
Settings opened straight onto Custom subagents never asked codex-acp for its models, because the page loaded before the dialog existed. A model lookup now also gives up after 60 seconds instead of leaving the page loading for good. Refs #110
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…cture The instruction now names the replies that get a card (a table, a comparison, three or more items with details, steps, an architecture, a before/after, a status board, numbers worth a chart) and says to keep the typed reply to a few lines. In a 24-run eval, 10 of 12 prompts that call for a card drew one, up from 4 of 12, and none of the 12 plain prompts did, before or after.
Settings → Custom subagents has an OpenCode section next to Codex. Each model switched on becomes an agent type that runs the task in the user's own `opencode acp`. Read-only OpenCode may only read, glob, grep and list, and the denial is repeated under the build agent, because a project's opencode.json would otherwise override it. The session opened to list the models is deleted afterwards. Both agents now choose models in a picker over Settings, with a search; the page lists only the models switched on. A long model name is cut short so its switch stays in the row. The mod registers the agent types again, as `Claudiu:codex-…` and `Claudiu:opencode-…`. Interactive Claude Code ignores `claude --agents` (only `-p` reads it), so sessions started from Claudiu never had the Codex types. Refs #110 Refs #115
A card's slot was keyed by the first card row on screen, so each line it scrolled under the top edge gave it a new key. Rune then faded a new copy in over the old one fading out, which drew two overlapping copies of the card. The slot is now keyed by the card and which of its pieces on screen it is.
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 can only hand tasks to Claude subagents. This adds Codex and OpenCode subagents: in Settings → Custom subagents, each model switched on becomes an agent type such as
Claudiu:codex-gpt-6-1-solorClaudiu:opencode-openai-gpt-6-1-solthat runs the task in that agent.CLAUDIU_SUBAGENTS. Interactive Claude Code ignoresclaude --agents(only-preads it), so an earlier build of this branch gave sessions no Codex types at all.read,glob,grepandlist, repeated under the build agent because a project's opencode.json would otherwise override it. With Allow edits on, Claudiu accepts every request the agent makes, network included, outside Claude Code's permission rules.Evidence
cargo test: 494 passed, 0 failed.claude plugin test mod: 18 pass, 0 fail.slot-c1-1fading in at 0.155 opacity); a long model name keeps its switch inside its row on the page and in the picker.--agentsor--settingswith agents;claude -pwith the same arguments listed the custom ones.opencodeon PATH the report reads "OpenCode failed: opencode was not found on PATH…". A model lookup returned 107 models and left no session in OpenCode's history. Killing the helper left no process behind.Not checked: that Claude lists the
Claudiu:types in a real session after this change (the mod tests cover registration), interrupting from Claude Code's UI, and macOS.Risk
Everything is off until an agent is switched on. With Allow edits on, the agent can change files and use the network outside Claude Code's permission rules. To undo, revert the merge commit; saved settings keep loading because the stored shape is unchanged.
Refs #110
Refs #115