symcc

Research: can symcc run as a Codex plugin, the same way it does in Claude Code? #

Task T-233. Checked on 2026-11-16 against Codex CLI 0.163.0 (installed here), the openai/codex source at tag rust-v0.169.0 (the latest stable release, 2026-11-13, per gh release list -R openai/codex), the Codex plugins installed under ~/.codex/plugins/cache/, and the official docs at learn.chatgpt.com (the old developers.openai.com/codex pages redirect there). The Claude Code side is Claude Code 2.1.319 and symcc's own hooks/register.tsx.

Short answer #

Partly, not the same way. A Codex plugin can't run symcc's code inside Codex: a Codex plugin is only a bundle of skills, MCP servers, apps and hooks (shell commands or MCP tool calls). There is no in-process plugin API like Claude Code's $. A "symcc for Codex" would be a separate symcc program (an MCP server plus hook scripts) that starts workers itself as codex exec processes and talks to the lead's session from outside.

The biggest blockers:

  1. No custom terminal UI. No board panel and no band above the prompt. The footer status line only takes built-in items (open feature request openai/codex#17827).
  2. No plugin slash commands. Codex removed custom prompts in 0.117.0 and its slash commands are built in only. The nearest things are skills ($name) and MCP tools.
  3. A plugin can't start subagents. Codex's own subagents (spawn_agent) can only be started by the model. They take no cwd, and they share the parent's sandbox. So symcc would have to run workers as its own codex exec processes.
  4. Waking the lead between turns works only from outside, and only partly. codex queue (app-server method thread/queue/add) can queue a message for a session. I did not confirm whether a running TUI shows it, or whether it starts a turn by itself when the lead is idle.

Everything else (lead tools, hooks on start/end/prompt/tool calls, file and process access, timers, git worktrees, sound) has a usable Codex equivalent or workaround.

What symcc needs from its host #

From hooks/register.tsx and the $ calls in hooks/plugin/ (counted with grep):

#NeedWhere symcc uses it in Claude Code
1Plugin code that runs inside the hosthooks/hooks.json loads register.tsx as a module
2Lead tools mcp__symcc__*$.tool.register (register.tsx:60), answered in tool.call (register.tsx:225)
3Slash commands /symcc, /symcc-approve, ... (14 of them)$.command.register (register.tsx:62-77), command.run (register.tsx:255)
4Text added to the lead's system promptprompt.compose (register.tsx:194)
5Session start / end hookssession.start (register.tsx:99), session.end incl. /clear (register.tsx:175)
6See the owner's typed promptprompt.submit (register.tsx:205)
7Worker and scout agent types with their own prompt, tools, model, permission mode, background$.agent.register (register.tsx:45, 53)
8Start a background agent with its own prompt, model and cwd (the worktree)$.agent.spawn (plugin/workers.ts:88, plugin/scouts.ts:87)
9Get each agent's final answer and token usageturn.complete with e.answer, e.usage (register.tsx:243)
10List agents; stop one$.agent.list (7 uses); stop = $.session.send to the agent plus refusing its tools (plugin/workers.ts:842-845, register.tsx:228)
11Hide worker/scout types from the leadagent.offer (register.tsx:215)
12Send a message to the lead between turns$.prompt.submit (plugin/tell.ts:30)
13Git worktree per worker$.process.run running git (plugin/git.ts, plugin/workers.ts)
14Side panel (board) with keys, Esc, close$.ui.open, ui.render Pane, ui.close (register.tsx:390, 420)
15Line above the promptui.render AbovePrompt (register.tsx:380)
16Toasts, status, copy$.ui.toast (33 uses), $.ui.status, $.ui.copy
17Sound / voice$.process.run with afplay / say (plugin/voice.ts:24, 63-65, 173)
18Timers$.clock.every / after / sleep (register.tsx:142-147, scouts)
19Files, processes, env, session id, repo root, usage$.fs.*, $.process.run, $.env.get, $.session.id/root/repo/usage
20Plan mode of the main sessionclassic.UserPromptSubmit/Stop/SessionStart, agent.spawn, prompt.attachment (register.tsx:351-378)

What Codex offers #

Sources used below:

#NeedClaude Code featureCodex equivalentWorkaround / notes
1Code inside the hosthooks.json module with register(on) and $None. A plugin bundles skills, MCP servers, apps and hooks [Plugins], [Manifest]. Its code runs only as hook commands or as MCP server processes.symcc's logic moves into a long-running MCP server that the plugin ships (mcpServers in .codex-plugin/plugin.json). It holds the board, the timers and the workers. Big rewrite: none of the $ calls exist.
2Lead tools$.tool.registerYes. MCP server tools. Codex names them mcp__<server>__<tool> [Hooks], so mcp__symcc__* stays the same. Default 60 s per tool call (mcp_servers.<id>.tool_timeout_sec) and 10 s startup [Config].The tools are written as MCP tools. A board-off check moves into the server.
3Slash commands$.command.register, command.runNone for plugins. Custom prompts were removed in 0.117.0 (openai/codex#15941). tui.presets.<0-9> saves prompts in user config only [Config].Skills invoked as $symcc-approve or @symcc, which ask the model to call the MCP tool. This costs a model turn and does not answer instantly like isTextDisplayOnly. Or a separate symcc shell command run with !symcc approve T-5. (Guess: ! runs a shell command in the Codex TUI; I did not test it here.)
4Lead guide in the system promptprompt.composePartly. SessionStart hook stdout or additionalContext becomes developer context, about 2,500 tokens by default (additionalContextLimit) [Hooks]. UserPromptSubmit can add context too. A skill or AGENTS.md can also carry it.SessionStart hook for the guide; UserPromptSubmit to drop it when symcc is off. Raise additionalContextLimit (0 = no limit) if the guide is long.
5Session start / endsession.start, session.endYes. SessionStart (source startup/resume/clear/compact/fork), SessionEnd (advisory, 1 s default, 3 s max, main thread only) [Hooks]. Plugins may ship hooks (hooks in the manifest or hooks/hooks.json) and get PLUGIN_ROOT / PLUGIN_DATA (also CLAUDE_PLUGIN_ROOT) [Hooks]. The installed browser, chrome and unified-computer-use plugins do ship hooks (Stop, SubagentStop, Interrupt, type mcp_tool).Hooks are short processes, so the long work (heartbeat, pump) lives in the MCP server, and the hooks only poke it (mcp_tool hook type). Note: non-managed hooks must be trusted once via /hooks [Hooks].
6Owner's typed promptprompt.submit (origin.kind)Yes. UserPromptSubmit hook [Hooks].I did not check whether it tells typed prompts apart from queued or app-server ones (origin.kind in Claude Code).
7Agent types$.agent.registerPartly. Custom agents are TOML files in .codex/agents/ or ~/.codex/agents/ with name, description, developer_instructions and optional model / model_reasoning_effort. They can't set their own sandbox or approval mode (ignored in agent files). Tool limits are only feature switches like features.shell_tool = false [Subagents]. A plugin can't ship them ([Manifest] has no agents field).Skip Codex subagents. Each worker is a codex exec process with its own flags: -m, -s read-only|workspace-write, -C <worktree>, -c key=value, --json, -o <file> (codex exec --help, 0.163.0). The scouts' "never change files" becomes -s read-only, which is stronger than today's prompt-only rule.
8Start a background agent with cwd$.agent.spawnNot for plugins. spawn_agent is a tool for the model only. Its parameters are message, items, agent_type, fork_context/fork_turns, model and reasoning_effort. It has no cwd [Spawn]. Its description says the model must not spawn unless the user or AGENTS.md asks [Spawn]. The app-server has no "spawn subagent" call; thread/start takes model, cwd, approvalPolicy and sandbox [App-server].The MCP server starts codex exec -C <worktree> ... in the background (or thread/start + turn/start on an app-server). Several at once is fine because they are separate processes. codex exec --worktree also exists ("Run the session in a new managed Git worktree"), but symcc wants its own worktree paths, so -C fits better.
9Final answer and tokensturn.complete (answer, usage)Yes, for codex exec. --json prints JSONL events, and turn.completed carries usage (input_tokens, cached_input_tokens, cache_write_input_tokens, output_tokens, reasoning_output_tokens) (sdk/typescript/src/events.ts). -o writes the last message to a file. For Codex subagents there is a SubagentStop hook with agent_id, agent_type and last_assistant_message [Hooks].Read the exec process's JSONL or -o file. Token kinds map onto SymccTokens (cached → cache_read). Dollar cost: not given, same as today.
10List / stop agents$.agent.list, $.session.send + tool denyFor own processes: yes. symcc tracks its own PIDs and can kill them, or call turn/interrupt on an app-server [App-server]. Model-side list_agents, close_agent and interrupt_agent exist only as model tools [Spawn].Process list kept by the MCP server. Killing a process is a harder stop than today's "answer stopped" message.
11Hide worker types from the leadagent.offerNot needed if workers are codex exec processes: the lead never sees them as agent types.
12Message to the lead between turns$.prompt.submitPartly. codex queue --thread <id> --message <text> [--resume] (0.163.0 help; app-server method thread/queue/add per [Queue]). The app-server also has turn/start (idle thread), turn/steer (running turn) and thread/inject_items (adds history "without starting a user turn") [App-server]. Hooks: a Stop hook with decision: "block" makes the lead keep going with a new prompt, but only at the end of a turn. Background (async) hooks never start a turn [Hooks].Best guess: the MCP server calls codex queue --resume (or thread/queue/add) with the board update. Not confirmed: whether a TUI that is open on that session shows the message and runs it when idle, and how the server finds the lead's thread id (hook input has session_id [Hooks]; I guess it is the same id codex queue --thread takes). A Stop hook can also add pending updates at the end of each lead turn.
13Worktree per workergit via $.process.runYes. The MCP server runs git itself. Codex has a worktrees feature (stable, on, in codex features list) and --worktree.Unchanged logic, but in the server. The worker sandbox workspace-write with -C <worktree> should allow writes there. (Guess: a worktree under .symcc/worktrees/ is also inside the lead's workspace; not tested.)
14Board panelui.render Pane, $.ui.open, ui.closeNone in the terminal. Plugins have no TUI API [Plugins], [Manifest]. MCP servers "can optionally include custom UI" [Plugins], and enable_mcp_apps is "under development" (codex features list, 0.163.0). Guess: that UI shows in the ChatGPT/Codex desktop app, not the CLI.Board as text from a tool or skill. Or a separate terminal app (symcc board) in a split pane. Or a local web page served by the MCP server.
15Line above the promptui.render AbovePromptNone. tui.status_line takes only built-in item ids [Config]. Custom command items are asked for in the open issue openai/codex#17827 (#20244 closed). tui.terminal_title likewise.None in Codex. Terminal-side tools (tmux status bar, or the cmux app the owner uses) could show it.
16Toasts$.ui.toastPartly. A hook's systemMessage "is surfaced as a warning in the UI" [Hooks], only while a hook runs. tui.notifications / tui.notification_method (osc9/bel) and notify (a program that gets JSON; user config only) [Config].Desktop notifications from the MCP server itself (e.g. osascript), or systemMessage on the next hook.
17Sound / voiceafplay / sayYes (any process).Same commands, run by the MCP server.
18Timers$.clock.*None in Codex, but the MCP server is a normal long-running process.setInterval in the server. Guess: the server lives as long as the Codex session.
19Files, processes, env$.fs, $.process, $.envYes (MCP server process). The app-server also has fs/* and command/exec* [App-server].Plain Node APIs.
20Plan modeclassic.* permission_mode, attachmentsPartly. Hooks get permission_mode (values default, acceptEdits, plan, dontAsk, bypassPermissions) on SessionStart, UserPromptSubmit, PreToolUse, Stop, ... [Hooks]. Codex has a Plan mode (plan_mode_reasoning_effort) [Config].Not confirmed that Codex's Plan mode shows up as permission_mode: "plan".

IDE extension #

[Subagents] lists the IDE extension as a surface where subagents run, with a panel above the composer to view or stop them. I did not check whether the IDE extension loads plugin hooks and MCP servers the same way the CLI does, or whether codex queue reaches its sessions.

What I couldn't check #

Don't port yet. First a small spike outside the project (in /tmp) to settle blocker 4, the one the whole design hangs on. Open codex in one terminal. From another, run codex queue --thread <that id> --message "hello" --resume while it is idle, and again while it is busy. Check whether the open TUI shows and runs the message. If it does, a "symcc for Codex" is a reasonable size: an MCP server, a few hooks and codex exec workers, with a text board instead of the panel. If it doesn't, the lead only hears about finished work when the owner next types or a turn ends (the Stop hook). That is a much weaker product, and it may be better to wait for Codex to add a way in. If the spike passes, the next task is to split symcc's core (hooks/core/, which is mostly plain logic) from the Claude Code $ calls, so both hosts can share it.