Skip to main content
OpenCode provides full sub-agent support via its Task tool, plus native slash command support. This is one of the most feature-complete installations.

Prerequisites

  • OpenCode installed and configured
  • Git installed for cloning the repository
  • Access to ~/.config/opencode/ directory

Installation Steps

1

Clone the repository

2

Run the installer

This installs:
  • Skills to ~/.config/opencode/skills/sdd-*/
  • Commands to ~/.config/opencode/commands/sdd-*.md
You should see output like:
3

Add orchestrator agent config

ACTION REQUIRED: Without this step, /sdd-* commands won’t work.
Open your OpenCode config:
Merge the agent block from examples/opencode/opencode.json into your existing config.
You can either:
  • Add to existing agent: Append SDD instructions to your primary agent’s prompt
  • Create dedicated agent: Copy sdd-orchestrator definition 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).
4

Verify installation

Start OpenCode in any project:
Use the agent picker (Tab key) and select sdd-orchestrator.Type:
Expected response:

Configuration Locations

Skills

~/.config/opencode/skills/sdd-*/9 skill folders + _shared/ conventions

Commands

~/.config/opencode/commands/sdd-*.md8 slash command definitions

Agent Config

~/.config/opencode/opencode.jsonOrchestrator agent configuration

Agent Configuration Options

Usage:
  • Use Tab to switch to sdd-orchestrator when starting SDD workflows
  • Use Tab to switch back to gentleman for day-to-day coding

Option 2: Combined Agent

Usage:
  • All capabilities available in one agent
  • No need to switch agents

Slash Commands

OpenCode’s native slash command support makes SDD commands discoverable: Commands are auto-discovered by OpenCode. Type / 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:
Each sub-agent:
  1. Starts with fresh context (no orchestrator history)
  2. Reads skill instructions from file
  3. Executes phase work (analyze code, write specs, implement, etc.)
  4. Returns structured result to orchestrator
  5. Orchestrator shows summary and asks user to proceed

Artifact Storage

Verification Checklist

1

Check skills directory

Should show 9 directories + _shared/:
2

Check commands directory

Should show 8 command files:
3

Verify agent config

Should return match if agent is configured.
4

Test in OpenCode

Should recognize command and launch sub-agent.

Troubleshooting

Problem: /sdd-init shows “command not found”Solutions:
  1. Check commands are in ~/.config/opencode/commands/sdd-*.md
  2. Restart OpenCode to reload command index
  3. Verify file permissions allow reading
  4. Try typing / to see if other commands appear
Problem: sdd-orchestrator doesn’t appear in agent pickerSolutions:
  1. Verify agent definition in ~/.config/opencode/opencode.json
  2. Check JSON syntax is valid (no trailing commas)
  3. Ensure mode: "all" or mode: "primary" is set
  4. Restart OpenCode
Problem: Commands run inline instead of launching sub-agentsSolutions:
  1. Verify orchestrator prompt mentions Task tool
  2. Check skill paths in agent config: ~/.config/opencode/skills/sdd-*/SKILL.md
  3. Ensure OpenCode version supports Task tool
  4. Review orchestrator instructions: should explicitly use Task tool
Problem: Results shown but not persistedSolutions:
  1. Check artifact_store mode in orchestrator output
  2. If engram mode: verify Engram MCP server is running
  3. If openspec mode: check write permissions in project directory
  4. 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