Skip to content

Commit 0cebc1d

Browse files
feat(codex)!: prefix sub-agent names add-* (closes #28)
Registrations become add-explorer/add-implementer/add-reviewer/ add-test-writer/add-verify — no more collision risk in the global ~/.codex/agents/ namespace. Installer cleans up ADD-owned legacy names (manifest-sha or marker gated), preserves user-owned files with a warning. Explorer role rewritten as a generic read-only discovery agent (was mispointing at add-docs/SKILL.md). Smoke asserts the exact prefixed set. Migration hop lands with the v0.11.0 release. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b564ef7 commit 0cebc1d

21 files changed

Lines changed: 335 additions & 74 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ For commit-level detail see `git log`.
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- **Codex sub-agent names prefixed `add-*` (#28)**`explorer`/`implementer`/`reviewer`/`test-writer`/`verify` registrations become `add-explorer` etc., ending collision risk with user or built-in agents in the global `~/.codex/agents/` namespace. The installer removes ADD-owned legacy-named TOMLs (prior-manifest sha or `# ADD sub-agent` marker) and warns-but-preserves user-owned files (16-case suite). The explorer role no longer misappropriates the docs skill as its role definition. Claude-side role vocabulary is unchanged. Codex users: re-run the installer; a migration hop will accompany the v0.11.0 release.
12+
913
### Added
1014

1115
- **`/add:init --defaults` (#23)** — true non-interactive init: zero questions, every value derived (name from CWD, language from manifest files) or defaulted (poc maturity, local-only environments, autonomous mode). Never overwrites an existing config. Both install smokes now exercise this real headless path instead of smuggling interview answers into the prompt.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# ADD sub-agent — add-explorer
2+
#
3+
# Broad, lower-stakes codebase sweeps (architecture discovery, dependency
4+
# mapping, pattern detection). Used by /add-docs and /add-optimize in their
5+
# discovery phases. Read-only by design.
6+
# See spec AC-015..AC-020.
7+
8+
name = "add-explorer"
9+
description = "Broad, read-only codebase exploration. Used for discovery, mapping, and pattern detection."
10+
model_reasoning_effort = "medium"
11+
sandbox_mode = "read-only"
12+
# Codex ≥0.14x agent-role schema (issue #24): prompt_skill was removed;
13+
# developer_instructions is the required behavioral field. No dedicated
14+
# explorer skill exists (#28) — the role is defined inline as a generic
15+
# read-only discovery agent.
16+
developer_instructions = "You are ADD's read-only discovery sub-agent. Explore the codebase broadly per the task you were spawned with: map architecture, trace dependencies, and detect patterns and conventions. Report findings concisely with concrete file paths. Do not modify, create, or delete any files — honor the read-only sandbox_mode declared for this role."

runtimes/codex/agents/implementer.toml renamed to dist/codex/.codex/agents/add-implementer.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# ADD sub-agent — implementer (TDD GREEN phase)
1+
# ADD sub-agent — add-implementer (TDD GREEN phase)
22
#
33
# Behavioral source: core/skills/implementer/SKILL.md
44
# Minimal implementation to make failing tests pass. Does not write tests.
55
# See spec AC-015..AC-020.
66

7-
name = "implementer"
7+
name = "add-implementer"
88
description = "Writes minimal implementation to pass failing tests (TDD GREEN phase)."
99
model_reasoning_effort = "high"
1010
sandbox_mode = "workspace-write"

runtimes/codex/agents/reviewer.toml renamed to dist/codex/.codex/agents/add-reviewer.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# ADD sub-agent — reviewer
1+
# ADD sub-agent — add-reviewer
22
#
33
# Behavioral source: core/skills/reviewer/SKILL.md
44
# Read-only: inspects working-tree changes against the driving spec, produces
55
# a structured review report. Does not modify files.
66
# See spec AC-015..AC-020.
77

8-
name = "reviewer"
8+
name = "add-reviewer"
99
description = "Reviews changes against spec acceptance criteria. Read-only."
1010
model_reasoning_effort = "high"
1111
sandbox_mode = "read-only"

runtimes/codex/agents/test-writer.toml renamed to dist/codex/.codex/agents/add-test-writer.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# ADD sub-agent — test-writer (TDD RED phase)
1+
# ADD sub-agent — add-test-writer (TDD RED phase)
22
#
33
# Behavioral source: core/skills/test-writer/SKILL.md
44
# Invoked via add-tdd-cycle orchestration in Codex sub-agent mode.
55
# See spec AC-015..AC-020.
66

7-
name = "test-writer"
7+
name = "add-test-writer"
88
description = "Writes failing tests from a spec (TDD RED phase). Does not implement."
99
model_reasoning_effort = "high"
1010
sandbox_mode = "workspace-write"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# ADD sub-agent — verify
1+
# ADD sub-agent — add-verify
22
#
33
# Behavioral source: core/skills/verify/SKILL.md
44
# Runs ADD's quality gates — lint, types, tests, coverage, spec compliance —
55
# and produces a pass/fail report. Executes checks (may write coverage/build
66
# artifacts) but does not modify source. See spec AC-015..AC-020.
77

8-
name = "verify"
8+
name = "add-verify"
99
description = "Runs quality gates — lint, types, tests, coverage, spec compliance. Produces a pass/fail report."
1010
model_reasoning_effort = "high"
1111
sandbox_mode = "workspace-write"

dist/codex/.codex/agents/explorer.toml

Lines changed: 0 additions & 15 deletions
This file was deleted.

dist/codex/AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ Before executing any ADD skill, read `~/.codex/add/knowledge/global.md` (Tier-1
6868

6969
Registered in `.codex/agents/`. Active when `[features] collab = true` (set in emitted `.codex/config.toml`).
7070

71-
- `test-writer` — TDD RED phase (workspace-write, high reasoning)
72-
- `implementer` — TDD GREEN phase (workspace-write, high reasoning)
73-
- `reviewer` — spec-compliance review (read-only, high reasoning)
74-
- `verify` — quality gates: lint/types/tests/coverage/spec (workspace-write, high reasoning)
75-
- `explorer` — broad codebase discovery (read-only, medium reasoning)
71+
- `add-test-writer` — TDD RED phase (workspace-write, high reasoning)
72+
- `add-implementer` — TDD GREEN phase (workspace-write, high reasoning)
73+
- `add-reviewer` — spec-compliance review (read-only, high reasoning)
74+
- `add-verify` — quality gates: lint/types/tests/coverage/spec (workspace-write, high reasoning)
75+
- `add-explorer` — broad codebase discovery (read-only, medium reasoning)
7676

7777
## Hooks
7878

dist/codex/plugin.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ skills = [
3939
]
4040

4141
agents = [
42-
".codex/agents/explorer.toml",
43-
".codex/agents/implementer.toml",
44-
".codex/agents/reviewer.toml",
45-
".codex/agents/test-writer.toml",
46-
".codex/agents/verify.toml",
42+
".codex/agents/add-explorer.toml",
43+
".codex/agents/add-implementer.toml",
44+
".codex/agents/add-reviewer.toml",
45+
".codex/agents/add-test-writer.toml",
46+
".codex/agents/add-verify.toml",
4747
]
4848

4949
hooks = ".codex/hooks.json"

docs/capability-matrix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ expected to obey; no mechanical backstop. **Advisory**: documentation/patterns o
1919
| Hooks (learnings filter, CHANGELOG, autofix) | Enforced (PreToolUse / SessionStart) | Agent-followed→Enforced only if user enables `[features] codex_hooks = true`; hook stderr not surfaced to the agent (F-012) | hooks.json emitted in the ≥0.14x schema since v0.10.1 (#24); merge is manual when one already exists |
2020
| Prompt-injection scanning | Enforced detection, warn-only response (PostToolUse scanner emits ADD-SEC warnings + audit events at `.add/security/injection-events.jsonl`; never blocks by design) | Advisory (pattern catalog ships at `~/.codex/add/security/`; no scanner hook, no audit events) | Per adapter.yaml truth-pass (v0.9.8); Codex parity revisits v1.1 |
2121
| Secrets scanning / redaction | Enforced in hook pipeline (`lib/scan-secrets.sh` via scanner + learnings filter) | Advisory (library + catalog ship; skills reference them, no hook auto-registration) | |
22-
| Sub-agents (test-writer, implementer, reviewer, explorer) | Enforced (Task tool dispatch) | Agent-followed (TOML defs; requires `[features] collab = true`; `developer_instructions` load the role's skill) | TOMLs emitted in the ≥0.14x schema since v0.10.1 (#24`prompt_skill` era was silently ignored); verified accepted by CLI 0.144.5 |
22+
| Sub-agents (`add-test-writer`, `add-implementer`, `add-reviewer`, `add-verify`, `add-explorer`) | Enforced (Task tool dispatch; Claude role vocabulary stays unprefixed) | Agent-followed (TOML defs; requires `[features] collab = true`; `developer_instructions` load the role's skill) | TOMLs emitted in the ≥0.14x schema since v0.10.1 (#24`prompt_skill` era was silently ignored); verified accepted by CLI 0.144.5. Registered names prefixed `add-*` since v0.11.0 (#28); installer removes ADD-owned legacy names |
2323
| Learnings persistence + active view | Enforced (`filter-learnings.sh` hook auto-registered) | Shipped but NOT auto-registered | Codex user must wire the hook manually |
2424
| Telemetry JSONL emission | Spec'd; emission verification tracked as D6 (see milestone) || Several PRD metrics depend on this |
2525
| Migrations (`migrations.json` hop chain) | Enforced via `/add:version` | Agent-followed via `/add-version` | Chain continuity checked by release-evidence script (v0.10.0) |

0 commit comments

Comments
 (0)