Coral has three agent surfaces:
- Claude-native agents that run directly in Claude Code.
- Codex-delegated agents launched through
coral-cli codex <agent> -i .... - Skill-owned protocols such as
ralph,plan, andinit-project.
Codex delegation is a normal CLI-to-backend provider launch.
| User request | Routing | Reason |
|---|---|---|
| "review with architect" | Claude-native architect |
Default read-only reviewer |
| "review with codex architect" | coral-cli codex architect -i ... via /coral:codex |
Explicit Codex delegation |
| "review with critic" | Claude-native critic |
Default critical reviewer |
| "review with codex critic" | coral-cli codex critic -i ... via /coral:codex |
Explicit Codex delegation |
| "run ralph on this task" | /coral:ralph |
Skill-owned execution protocol |
| "codex ralph this task" | /coral:ralph --codex |
Codex-backed execution through CLI launch + wait |
| Agent | File | Role |
|---|---|---|
architect |
agents/architect.md |
Architecture analysis and plan review |
critic |
agents/critic.md |
Code and plan review |
debugger |
agents/debugger.md |
Root-cause diagnosis |
scanner |
agents/scanner.md |
Project scanning and process investigation |
gap-finder |
agents/gap-finder.md |
Requirement and scope gap analysis |
resolver |
agents/resolver.md |
Review synthesis and contradiction resolution |
red-attacker |
agents/red-attacker.md |
Adversarial test generation |
persona-generator |
agents/persona-generator.md |
Discuss persona generation |
These agents use Claude Code's native tools. Read-only agents declare disallowedTools; execution-oriented agents do not.
| Skill | Surface | Role |
|---|---|---|
ralph |
skills/ralph/SKILL.md |
Persistent task execution with verification |
plan |
skills/plan/SKILL.md |
Multi-round planning and review orchestration |
init-project |
skills/init-project/SKILL.md |
Project initialization orchestration |
These are protocols, not standalone agent files.
Codex-backed agent launches use the provider route, not a protocol-specific transport:
coral-cli codex architect -i "<prompt>" --work-dir "<path>" -d
coral-cli codex critic -i "<prompt>" --work-dir "<path>" -d
coral-cli wait --jobs "<job-id list>" --embedBehavior:
ExecutionService.coralDispatch()resolvesagents/<name>.md.src/execution/instruction.tsbuilds the provider instruction.- The provider adapter injects that instruction into the provider launch.
- Detached launches print
Job <job> <launchState> (session <session>), andwait --embedalways printsResult path: <path>for durable artifact recovery. - The job is persisted like any other provider execution.
Unknown agent names fail through the normal provider/domain error path.
Discuss participants are backend-managed provider sessions, not Agent Teams and not protocol clients. The normal entrypoints are:
coral-cli discuss seedcoral-cli discuss startcoral-cli discuss watchcoral-cli discuss participatecoral-cli discuss abort
See Discuss for the runtime model.
Coral's internal governance agents live under .claude/agents/. The contract-focused reviewer is integration-guardian, which validates CLI/backend contracts, schema changes, and structured output behavior.
Create agents/<name>.md and route to it through Claude Code's normal agent selection rules.
Create agents/<name>.md and invoke it through the Codex provider surface:
coral-cli codex <name> -i "<prompt>" --work-dir "<path>" -d
coral-cli wait --jobs "<job>" --embed- Keep one primary responsibility per agent.
- Reference methodology files from
methods/instead of copying them inline. - Use read-only tool restrictions when the agent should never mutate files.
- Keep output formats explicit so downstream skills can synthesize or verify the result.