Prerequisites
- OpenCode installed and configured
- Git installed for cloning the repository
- Access to
~/.config/opencode/directory
Installation Steps
Run the installer
- Skills to
~/.config/opencode/skills/sdd-*/ - Commands to
~/.config/opencode/commands/sdd-*.md
Add orchestrator agent config
Open your OpenCode config:Merge the
You can either:
agent block from examples/opencode/opencode.json into your existing config.View agent configuration
View agent configuration
- Add to existing agent: Append SDD instructions to your primary agent’s prompt
- Create dedicated agent: Copy
sdd-orchestratordefinition as-is
Recommended: Keep your everyday agent (e.g.,
gentleman) as primary, and add sdd-orchestrator as a separate agent with mode: "all". Switch between them using the agent picker (Tab).Configuration Locations
Skills
~/.config/opencode/skills/sdd-*/9 skill folders + _shared/ conventionsCommands
~/.config/opencode/commands/sdd-*.md8 slash command definitionsAgent Config
~/.config/opencode/opencode.jsonOrchestrator agent configurationAgent Configuration Options
Option 1: Dedicated SDD Agent (Recommended)
- Use Tab to switch to
sdd-orchestratorwhen starting SDD workflows - Use Tab to switch back to
gentlemanfor day-to-day coding
Option 2: Combined Agent
- All capabilities available in one agent
- No need to switch agents
Slash Commands
OpenCode’s native slash command support makes SDD commands discoverable:| Command | File | Purpose |
|---|---|---|
/sdd-init | ~/.config/opencode/commands/sdd-init.md | Initialize SDD context |
/sdd-explore | ~/.config/opencode/commands/sdd-explore.md | Investigate an idea |
/sdd-new | ~/.config/opencode/commands/sdd-new.md | Start a new change |
/sdd-continue | ~/.config/opencode/commands/sdd-continue.md | Run next phase |
/sdd-ff | ~/.config/opencode/commands/sdd-ff.md | Fast-forward planning |
/sdd-apply | ~/.config/opencode/commands/sdd-apply.md | Implement tasks |
/sdd-verify | ~/.config/opencode/commands/sdd-verify.md | Validate implementation |
/sdd-archive | ~/.config/opencode/commands/sdd-archive.md | Archive completed change |
/ to see all available commands.
Example Usage
Switch to SDD Orchestrator
Initialize SDD
Start a New Feature
Fast-Forward Planning
How Sub-Agent Delegation Works
OpenCode’s Task tool enables fresh-context sub-agents:- Starts with fresh context (no orchestrator history)
- Reads skill instructions from file
- Executes phase work (analyze code, write specs, implement, etc.)
- Returns structured result to orchestrator
- Orchestrator shows summary and asks user to proceed
Artifact Storage
- engram (Recommended)
- openspec
- none
- Repository stays clean (no openspec/ directory)
- Persistent across projects
- Fast search and recovery
- Automatic deduplication
Verification Checklist
Troubleshooting
Command not found
Command not found
Problem:
/sdd-init shows “command not found”Solutions:- Check commands are in
~/.config/opencode/commands/sdd-*.md - Restart OpenCode to reload command index
- Verify file permissions allow reading
- Try typing
/to see if other commands appear
Agent not available
Agent not available
Problem:
sdd-orchestrator doesn’t appear in agent pickerSolutions:- Verify agent definition in
~/.config/opencode/opencode.json - Check JSON syntax is valid (no trailing commas)
- Ensure
mode: "all"ormode: "primary"is set - Restart OpenCode
Sub-agent doesn't launch
Sub-agent doesn't launch
Problem: Commands run inline instead of launching sub-agentsSolutions:
- Verify orchestrator prompt mentions Task tool
- Check skill paths in agent config:
~/.config/opencode/skills/sdd-*/SKILL.md - Ensure OpenCode version supports Task tool
- Review orchestrator instructions: should explicitly use Task tool
Artifacts not saving
Artifacts not saving
Problem: Results shown but not persistedSolutions:
- Check artifact_store mode in orchestrator output
- If engram mode: verify Engram MCP server is running
- If openspec mode: check write permissions in project directory
- If none mode: persistence is intentionally disabled
Next Steps
Quick Start
Learn the SDD workflow
Commands Reference
Complete command documentation
Agent Configuration
Advanced agent setup options
Engram Integration
Set up recommended persistence