This page walks you through everything you need to go from zero to a fully running OpenCode Config Agent setup — including cloning the config, installing dependencies, launching OpenCode in your project, and executing your first Spec-Driven Development workflow. By the end, you’ll have the Tony Stark mentor active, Engram memory initialized, and a live SDD pipeline ready to handle your first real change.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lnardev/opencode-config-agent/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are installed and available on your system:
- OpenCode — the AI coding terminal this config is built for. Install it from opencode.ai.
- Node.js 18+ — required for the plugin dependencies. Check your version with
node --version. - Bun runtime (optional but recommended) — a faster alternative to npm for installing dependencies. Install from bun.sh.
- Git — for cloning the repository.
Clone to your OpenCode config directory
Clone the repository directly into
~/.config/opencode/. This is the directory OpenCode reads automatically at startup — no extra configuration needed.Install dependencies
The config includes TypeScript plugins that require npm packages. Install them from inside the config directory:This installs
@opencode-ai/plugin (the OpenCode plugin SDK) and unique-names-generator (used internally by the background agents plugin).Open a project with OpenCode
Navigate to any existing project on your machine and launch OpenCode. The agent config is loaded globally from Once the OpenCode interface opens, you should see the
~/.config/opencode/, so it applies to every project automatically.sdd-orchestrator as the active primary agent. You can switch to the tony stark agent at any time from the agent selector.Initialize SDD for your project
Before running any SDD commands, initialize the workflow context for your current project. In the OpenCode chat, type:The
sdd-init agent will scan your project to detect the tech stack, identify testing capabilities, and bootstrap the SDD context in Engram memory. This runs automatically if you skip it — the orchestrator checks and runs init silently before any SDD command — but running it explicitly gives you a chance to review what was detected.Start your first change with SDD
Now kick off a full SDD pipeline for a new feature or change. Replace The orchestrator will ask you two quick questions:
my-first-feature with a short descriptive name for what you want to build:- Execution mode —
Interactive(pause after each phase for your review) orAutomatic(run all phases end-to-end). Start with Interactive to see how the pipeline works. - Artifact store —
engram(fast, memory-only),openspec(file-based, committable), orhybrid(both). Chooseengramfor your first run.
/sdd-apply my-first-feature to implement the changes.Sample Interaction with Tony Stark
Once you switch to thetony stark agent, every conversation reflects the mentor persona. Here’s an example of what that looks like in practice:
Alternative: Guided Onboarding
If you’d prefer a fully guided walkthrough that takes you through the entire SDD cycle step-by-step using your real codebase, use the onboarding command instead of/sdd-new:
sdd-onboard sub-agent, which walks you through every phase interactively with explanations at each step — ideal for teams adopting SDD for the first time or for understanding how each agent connects to the next.