Prerequisites
- Codex installed and configured
- Git installed for cloning the repository
- Access to
~/.codex/directory
Installation Steps
Add orchestrator to instructions file
Codex reads instructions from Append the contents from
~/.codex/agents.md (or your configured model_instructions_file).Open your instructions file:examples/codex/agents.md to your existing file.View orchestrator instructions
View orchestrator instructions
The orchestrator section teaches Codex to:
- Detect SDD triggers and commands
- Read skill files from
~/.codex/skills/sdd-*/SKILL.md - Execute skills inline within current context
- Track state between phases
- Follow artifact storage policies
- Operating Mode (delegate-only principle)
- Artifact Store Policy (engram/openspec/none)
- Commands table
- Command → Skill Mapping
- Dependency graph
- Engram Artifact Convention
Configuration Locations
Skills Directory
~/.codex/skills/sdd-*/Contains 9 skill folders + _shared/ conventionsInstructions File
~/.codex/agents.mdOrchestrator instructions and agent configurationCustom Instructions Path
If you’ve configured a custom instructions file:agents.md.
How Inline Execution Works
Codex doesn’t have a Task tool for sub-agent delegation. Skills run inline: Characteristics:- Skills execute in the same context window
- No fresh context per phase
- Planning phases work well
- Implementation batching handled by orchestrator
- More context usage than true sub-agent systems
Example Usage
Initialize SDD
Start a New Feature
Continue Through Phases
Fast-Forward Planning
Artifact Storage
- engram (Recommended)
- openspec
- none
Verification Checklist
Troubleshooting
Command not recognized
Command not recognized
Problem: Codex doesn’t recognize
/sdd-initSolutions:- Verify orchestrator instructions are in
~/.codex/agents.md(or your custom instructions file) - Check file permissions allow reading
- Restart Codex to reload configuration
- Try alternative phrasing: “Initialize SDD” or “Set up spec-driven development”
Skills not found
Skills not found
Problem: Codex can’t read skill filesSolutions:
- Verify skills are in
~/.codex/skills/sdd-*/ - Check each skill directory has
SKILL.mdfile - Ensure file permissions allow reading
- Check orchestrator instructions reference correct path
Instructions not loading
Instructions not loading
Problem: Orchestrator behavior not activeSolutions:
- Verify instructions file location (check Codex config)
- Ensure file is named
agents.mdor matchesmodel_instructions_filesetting - Check file is readable:
cat ~/.codex/agents.md - Restart Codex after making changes
Context issues on large features
Context issues on large features
Problem: Errors about context lengthSolutions:
- Use
/sdd-explorefirst to understand scope - Break large features into smaller changes
- Consider using Claude Code or OpenCode for large features
- Use
noneartifact mode to reduce context usage
Limitations
For the best sub-agent experience with fresh context windows, consider:- Claude Code - Full sub-agent support
- OpenCode - Full sub-agent support with slash commands
Next Steps
Quick Start
Learn the SDD workflow
Commands Reference
Complete command documentation
Engram Setup
Install recommended persistence
OpenSpec Mode
File-based artifact storage