Skip to main content
Codex runs Agent Teams Lite skills inline within a single context window. The structured SDD workflow provides value for planning and implementation, though without the fresh-context benefits of true sub-agent delegation.

Prerequisites

  • Codex installed and configured
  • Git installed for cloning the repository
  • Access to ~/.codex/ directory

Installation Steps

1

Clone the repository

2

Run the installer

This copies skills to ~/.codex/skills/sdd-*/You should see output like:
3

Add orchestrator to instructions file

Codex reads instructions from ~/.codex/agents.md (or your configured model_instructions_file).Open your instructions file:
Append the contents from examples/codex/agents.md to your existing file.
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
Key components:
  • Operating Mode (delegate-only principle)
  • Artifact Store Policy (engram/openspec/none)
  • Commands table
  • Command → Skill Mapping
  • Dependency graph
  • Engram Artifact Convention
4

Verify installation

Start Codex in any project:
Type:
Expected response:

Configuration Locations

Skills Directory

~/.codex/skills/sdd-*/Contains 9 skill folders + _shared/ conventions

Instructions File

~/.codex/agents.mdOrchestrator instructions and agent configuration

Custom Instructions Path

If you’ve configured a custom instructions file:
Add the orchestrator instructions to that file instead of 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

Verification Checklist

1

Check skills directory

Should show 9 directories:
2

Check shared conventions

Should show:
3

Verify instructions file

Should return matches if orchestrator instructions are present.
4

Test SDD command

Should recognize the command and read the sdd-init skill.

Troubleshooting

Problem: Codex doesn’t recognize /sdd-initSolutions:
  1. Verify orchestrator instructions are in ~/.codex/agents.md (or your custom instructions file)
  2. Check file permissions allow reading
  3. Restart Codex to reload configuration
  4. Try alternative phrasing: “Initialize SDD” or “Set up spec-driven development”
Problem: Codex can’t read skill filesSolutions:
  1. Verify skills are in ~/.codex/skills/sdd-*/
  2. Check each skill directory has SKILL.md file
  3. Ensure file permissions allow reading
  4. Check orchestrator instructions reference correct path
Problem: Orchestrator behavior not activeSolutions:
  1. Verify instructions file location (check Codex config)
  2. Ensure file is named agents.md or matches model_instructions_file setting
  3. Check file is readable: cat ~/.codex/agents.md
  4. Restart Codex after making changes
Problem: Errors about context lengthSolutions:
  1. Use /sdd-explore first to understand scope
  2. Break large features into smaller changes
  3. Consider using Claude Code or OpenCode for large features
  4. Use none artifact mode to reduce context usage

Limitations

Codex runs skills inline rather than as true sub-agents. This means:
  • No fresh context per phase
  • Higher context usage
  • May hit context limits on large features
  • Planning phases work well
  • Implementation may need manual intervention on complex changes
For the best sub-agent experience with fresh context windows, consider:

Next Steps

Quick Start

Learn the SDD workflow

Commands Reference

Complete command documentation

Engram Setup

Install recommended persistence

OpenSpec Mode

File-based artifact storage