Repository navigation
Description
Substream 1 of #2642. Owners: @Alan-Cha, @mrsabath.
Goal
sbx up wires Claude Code and OpenCode today. Add Codex CLI (openai/codex) and IBM Bob as first-class agents, so the cohort is not limited to two clients.
Codex is the natural third: it speaks MCP over stdio, it reads the AGENTS.md that up already writes, and it has a project-local config file — so its configuration stays an uncommitted working-tree file like the others. The rest of the project already assumes Codex (skills/moca-delegate-task/README.md, docs/concepts/context-workflows.md names it alongside Claude Code, OpenCode and Pi), so this closes a gap rather than adding a dependency.
The decision this substream really asks for: containment
Claude Code takes an explicit per-tool deny list, which is what lets up state that every local built-in is denied. Codex has no documented equivalent. The closest is layering features.shell_tool = false, web_search = "disabled", default_permissions = ":read-only", features.apps = false, tools.view_image = false — but it is not established from OpenAI's docs whether that leaves only MCP tools reachable, whether mcp_servers.* is honoured in a project-local .codex/config.toml, or whether apply_patch exists as a disableable built-in.
So the honest framing is best-effort denial, and SBX0 §6.3 plus the user guide §4 need to say so rather than implying parity. If that does not meet the bar, the alternatives are an opt-in flag (--agent codex) or holding until OpenAI documents a deny mechanism.
Note the per-Exec microVM boundary is unaffected either way — this is only about what the local harness can do on the laptop.
What up would write
| Claude Code (today) | Codex (proposed) |
|---|---|
.mcp.json → mcpServers.sandbox |
.codex/config.toml → [mcp_servers.sandbox] |
.claude/settings.json → permissions.deny: […] |
features.shell_tool = false, web_search = "disabled", default_permissions = ":read-only" |
CLAUDE.md / AGENTS.md sbx block |
AGENTS.md — already written, read natively |
The MCP server already exposes a complete toolset (bash, read, write, edit, grep, find, ls, sandbox_info), so Codex loses no capability with its local tools off. Same mocactl sbx mcp process; no server-side change.
Work
- Prerequisite —
pull --applyrefuses.codex/, which could otherwise plant an MCP server that runs on the laptop — moca#592, landed in moca#594 - Decide the containment framing and document it honestly (opt-in flag vs. parity claim vs. hold)
- Codex in
agent-config.ts— aCODEX_SERVERconstant, a.codex/config.tomltarget (TOML, so a new parser/merger alongside the existing JSON/JSONC and Markdown handling — this is the bulk of the work), andCODEX_OFFfor the restriction keys. Keepup's merge-never-overwrite andConfigConflictbehaviour — moca#593 -
sbx doctorandsbx rm— extendcheckAgentConfig,takeBackAgentConfigandremoveAgentConfigsormcleans up whatupwrote - Docs — SBX0 §6.3, user-guide §4 table, and the acceptance list (
codex exec "…"as the equivalent of headlessclaude -p/opencode run) - IBM Bob — establish its MCP and config-file story, then the same four steps; scope to be filed as a moca issue
Related
- moca#593 — the Codex issue, with the full analysis
- moca#577, moca#574 — open
sbx upagent-config follow-ups that touch the same code - moca#572 — deny-only-known-tools, which changed the shape
upwrites
Assisted-By: Claude (Anthropic AI) [email protected]
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsIn progress
Activity