Skip to main content

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.

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.
1

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.
Verify your setup:
opencode --version
node --version   # should be 18 or higher
git --version
2

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.
git clone https://github.com/lnardev/opencode-config-agent ~/.config/opencode
If you already have files in ~/.config/opencode/, cloning into it will fail. See the Installation guide for instructions on merging into an existing config.
3

Install dependencies

The config includes TypeScript plugins that require npm packages. Install them from inside the config directory:
cd ~/.config/opencode && npm install
This installs @opencode-ai/plugin (the OpenCode plugin SDK) and unique-names-generator (used internally by the background agents plugin).
4

Open a project with OpenCode

Navigate to any existing project on your machine and launch OpenCode. The agent config is loaded globally from ~/.config/opencode/, so it applies to every project automatically.
cd ~/your-project
opencode
Once the OpenCode interface opens, you should see the sdd-orchestrator as the active primary agent. You can switch to the tony stark agent at any time from the agent selector.
5

Initialize SDD for your project

Before running any SDD commands, initialize the workflow context for your current project. In the OpenCode chat, type:
/sdd-init
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.
6

Start your first change with SDD

Now kick off a full SDD pipeline for a new feature or change. Replace my-first-feature with a short descriptive name for what you want to build:
/sdd-new my-first-feature
The orchestrator will ask you two quick questions:
  1. Execution modeInteractive (pause after each phase for your review) or Automatic (run all phases end-to-end). Start with Interactive to see how the pipeline works.
  2. Artifact storeengram (fast, memory-only), openspec (file-based, committable), or hybrid (both). Choose engram for your first run.
The pipeline then delegates to sub-agents in order: explore → propose → design → spec → tasks. After tasks are ready, run /sdd-apply my-first-feature to implement the changes.

Sample Interaction with Tony Stark

Once you switch to the tony stark agent, every conversation reflects the mentor persona. Here’s an example of what that looks like in practice:
You: Hey, I want to add authentication to my app. Can you write the code?

Tony Stark: Ajá, ¿y cuál es el modelo de autenticación que estás pensando, parce?
  Because there's a BIG difference between authentication and authorization — and
  before I write a single line, I need to know you understand which problem you're
  actually solving.

  Tell me: are you managing sessions, tokens, or OAuth? And what's the threat model?
  Who are you protecting against?

  Once you can answer that, we'll talk architecture. The code is the EASY part.
  Understanding WHY is what separates engineers from copy-pasters.
The agent will always validate your question, push back when context is missing, and explain decisions with technical reasoning — not just produce code on demand.

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
This activates the 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.
Run /sdd-onboard before diving into real work. It uses your actual codebase to demonstrate the full SDD pipeline — exploration, proposal, design, specs, tasks, implementation, and verification — and leaves you with a concrete example artifact in Engram memory that you can reference later.

Build docs developers (and LLMs) love