OpenCode
Terminal, desktop, IDE
OpenCode provides primary and subagents, configurable permissions, and
ACP/editor integrations. It fits well when you want plan/build separation
around a repository-native workflow.
Recommended pattern
- Use a plan-style agent to read specs and propose work without edits.
- Use a build-style agent to implement once the spec and task path are clear.
- Keep repository rules in
AGENTS.md and folder README.md files.
- Restrict write and bash permissions until the reading path is validated.
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"plan": {
"permission": {
"edit": "deny",
"bash": { "*": "ask" }
}
},
"build": {
"permission": {
"edit": "allow",
"bash": { "*": "ask", "git status *": "allow" }
}
}
}
}
Source: OpenCode agents and permissions docs
Claude Code
CLI and agent teams
Claude Code reads a root CLAUDE.md, supports custom commands,
hooks, MCP, and multiple agents. In a SpecNative repository, use
CLAUDE.md as a bootstrap file rather than a monolithic project manual.
Recommended pattern
- Create a short
CLAUDE.md that points to AGENTS.md and the local navigation model.
- Store real project truth in versioned context files, not in one giant instruction file.
- Use subagents or parallel agents per spec area, not per vague prompt.
- Encode reusable flows as commands such as
/implement-spec authentication.
# CLAUDE.md
Start by reading ./AGENTS.md.
In each folder, read the local README.md before making changes.
Use files under ./agents/ as source documents.
If implementing a feature, locate the relevant SPEC.md first.
Do not treat this file as the source of truth for product or architecture.
Source: Claude Code overview
Codex
Local, IDE, GitHub, cloud
Codex can work locally or in cloud environments and is effective when the
repository already exposes constraints and setup clearly. SpecNative gives
Codex a stable context surface across terminal, IDE, and delegated tasks.
Recommended pattern
- Put repository rules in
AGENTS.md and spec files, not only in task prompts.
- For cloud tasks, ensure setup, commands, and validation live in repository files.
- Delegate work by naming the spec or initiative folder, not by rewriting the entire project context.
- Use Codex for implementation, refactoring, and review against explicit repository artifacts.
Implement the authentication initiative.
Read AGENTS.md first.
Then read agents/README.md, agents/ARCHITECTURE.md,
agents/CONVENTIONS.md, and agents/specs/authentication/SPEC.md.
Plan the work, implement it, run the documented validation commands,
and update DECISIONS.md if a persistent trade-off changes.
Sources:
Codex cloud docs,
Codex product overview