Status: Approved (autonomous session 2026-07-19) · Target: v0.11.0 · Issue: #28
ADD installs sub-agents into the global ~/.codex/agents/ namespace as
explorer, implementer, reviewer, test-writer, verify. Codex custom
agent names can shadow built-ins and collide with user agents (verify
especially). Bonus defect: explorer.toml's developer_instructions points
at add-docs/SKILL.md as its role definition.
Rename at the adapter source (runtimes/codex/agents/*.toml): files and
name fields become add-explorer, add-implementer, add-reviewer,
add-test-writer, add-verify. Claude runtime is untouched (roles there are
Task-tool concepts, not named registrations).
runtimes/codex/agents/: rename 5 files, updatename = "add-*", keep descriptions. Fix explorer'sdeveloper_instructions: no dedicated explorer skill exists, so instruct it to operate as a generic read-only discovery agent per its TOML description + honor sandbox_mode (drop the misleading add-docs/SKILL.md reference).scripts/compile.py: AGENTS.md "Sub-agents" emission listsadd-*names; plugin.toml agents list follows renamed files automatically.scripts/install-codex.sh: on install, remove legacy unprefixed TOMLs (explorer|implementer|reviewer|test-writer|verify.toml) from~/.codex/agents/ONLY if ADD-owned — listed in a prior install-manifest (#27) or containing an ADD marker comment; otherwise warn and leave.- Smoke (
tests/smoke/codex/run-smoke.sh): agent-TOML asserts expect theadd-prefixed set (5 exact names); assert no ADD-owned legacy names remain. - Any skill/rule text in
core/orruntimes/codex/that names a Codex sub-agent registration updates to the prefixed name (audit via grep; Claude role vocabulary unchanged). docs/capability-matrix.mdsub-agents row names the prefixed set.- Migration note: CHANGELOG (integrator) + migrations.json hop at the v0.11.0 release records "re-run installer to migrate agent names" (release-time task, not this change).
| ID | Criterion | Priority |
|---|---|---|
| AC-1 | Compile emits exactly `add-explorer | add-implementer |
| AC-2 | Installer removes ADD-owned legacy TOMLs, preserves user-owned files of the same names (warn). | Must |
| AC-3 | Smoke asserts the exact prefixed set and absence of ADD-owned legacy names; green in CI. | Must |
| AC-4 | explorer role instructions no longer reference add-docs/SKILL.md. | Must |
| AC-5 | Zero remaining unprefixed Codex-registration references in emitted output (grep audit clean). |
Must |
Renaming Claude-side role vocabulary; per-skill dispatch policy changes.