This configuration transforms OpenCode into a multi-agent development system with:
- 9 specialized agents organized around a research → plan → review → implement → verify pipeline
- 10 skills covering browser automation, frontend best practices (Angular, React, NestJS), testing (Jest, Karma, Playwright), PR review, and token-efficient communication
- 4 lane-based commands (
/quick,/medium,/full,/debug) that route work through the orchestrator with appropriate rigor - Token compression via the
cavemanskill for efficient agent-to-agent communication - Plugin integration with
@warp-dot-dev/opencode-warp
User Request
│
▼
┌─────────────────────┐
│ orchestrator-agent │ ← Routes work, manages lanes, approval gates
└────────┬────────────┘
│
│
▼
┌──────────┐ ┌──────────────┐ ┌──────────────────┐
│ research │ │ planning │→ │ reviewer │
│ agent │→ │ agent │← │ agent │
└──────────┘ └──────┬───────┘ └──────────────────┘
│
▼
┌──────────────┐ ┌──────────────────┐
│implementation│ → │ verifier-agent │
│ agent │ ← │ (audit) │
└──────┬───────┘ └──────────────────┘
│
▼
┌──────────────┐
│ test-fixer │ ← When tests fail
│ agent │
└──────────────┘Before installing this OpenCode configuration, make sure you have these tools installed.
| Tool | Purpose |
|---|---|
| OpenCode | Main CLI/runtime used by this configuration |
| Node.js | Required for plugins and skills |
| npm | Installs package dependencies |
| Git | Clones and updates this repository |
| Tool | Purpose |
|---|---|
GitHub CLI (gh) |
Required for PR review workflows |
| Warp Terminal | Recommended for @warp-dot-dev/opencode-warp |
ripgrep (rg) |
Faster codebase search |
| Bash/Zsh/PowerShell | Working shell environment |
opencode --version
node --version
npm --version
git --versionThis configuration lives in ~/.config/opencode. To apply it:
-
Backup your existing config (if any):
cp -r ~/.config/opencode ~/.config/opencode.backup
-
Clone or copy this configuration:
git clone <repository-url> ~/.config/opencode-new cp -r ~/.config/opencode-new/* ~/.config/opencode/
-
Verify:
opencode --version
~/.config/opencode/
├── opencode.json # Main config: agents, permissions, plugin
├── tui.json # TUI settings
├── agents/ # Agent definitions (9 agents)
│ ├── orchestrator-agent.md
│ ├── research-agent.md
│ ├── planning-agent.md
│ ├── reviewer-agent.md
│ ├── implementation-agent.md
│ ├── test-fixer-agent.md
│ ├── verifier-agent.md
│ ├── pr-review-agent.md
│ └── prompt-agent.md
├── commands/ # Lane commands (4 commands)
│ ├── quick.md
│ ├── medium.md
│ ├── full.md
│ └── debug.md
├── skills/ # Installed skills (10 skills)
│ ├── agent-browser/
│ ├── angular-best-practices/
│ ├── caveman/
│ ├── find-skills/
│ ├── jest-testing/
│ ├── karma-testing/
│ ├── nestjs-best-practices/
│ ├── playwright-cli/
│ ├── pr-review/
│ └── vercel-react-best-practices/
└── package.json # Skill dependenciesThe system uses a pipeline architecture where the orchestrator routes work to specialists based on task type and risk level.
| Agent | Purpose | Model | Key Permissions |
|---|---|---|---|
| orchestrator-agent | Coordinates all specialists, manages lanes and approval gates | qwen3.6-plus |
read, question; delegates to all other agents |
| research-agent | Investigates code, patterns, dependencies, docs, root causes | deepseek-v4-flash |
read, websearch, webfetch, question |
| planning-agent | Creates implementation-ready plans with commit structure | gpt-5.5 (xhigh) |
read, edit, delegates to research-agent |
| reviewer-agent | Adversarial stress-testing of plans before implementation | glm-5.1 |
read, git diff/status/rg, question |
| implementation-agent | Executes approved plans step-by-step, production-ready code | kimi-k2.6 |
read, edit, bash (ask), question |
| test-fixer-agent | Diagnoses and repairs failing tests with minimal changes | deepseek-v4-pro |
read, edit, bash, question |
| verifier-agent | Post-implementation audit against approved plan | gpt-5.5 (xhigh) |
read, git diff/status/rg, question |
| Agent | Purpose | Model | Key Permissions |
|---|---|---|---|
| pr-review-agent | Reviews GitHub PRs or local branch diffs for correctness, risk, security | glm-5.1 |
read, git commands, gh CLI, question |
| prompt-agent | Refines, critiques, and improves OpenCode agent prompts and workflows | qwen3.6-plus |
read, question |
The orchestrator classifies work into three lanes:
| Lane | Use For | Flow |
|---|---|---|
| Quick Lane | Small changes, single-file edits, docs, obvious fixes | research → planning → implementation |
| Medium Lane | Multi-file changes, bug fixes, shared abstractions, behavior changes | research → planning → review → implementation → verify |
| Full Lane | Migrations, auth/security, data integrity, payments, public APIs | research → planning → review → approval → implementation → verify |
For bug fixing specifically:
- Triage symptoms
research-agentmaps suspect files and root-cause candidates- State hypothesis + falsification check
planning-agentcreates smallest fix planreviewer-agentcritiques if risky- Approval gate
implementation-agentapplies fixtest-fixer-agentif tests breakverifier-agentaudits result
Commands trigger the orchestrator with a specific lane configuration.
| Command | Purpose | Lane | When to Use |
|---|---|---|---|
| quick | Small, isolated, low-risk changes | Quick lane | Single-file edits, mechanical changes, simple additions |
| medium | Multi-file work needing structure but not full design | Medium lane | Refactors, feature additions touching multiple modules |
| full | Broad, risky, architecture-sensitive work | Full lane | New features, migrations, major refactors, design changes |
| debug | Finding and fixing bugs | Debug lane | Bug reports, regressions, failing tests, unexpected behavior |
All commands run through orchestrator-agent as subtasks and follow this pattern:
- Intake — scope the request
- Discovery — delegate to
research-agentfor codebase mapping - Planning —
planning-agentcreates implementation plan saved toplans/{feature-name}/plan.md - Review —
reviewer-agentstress-tests the plan (skipped in quick lane) - Approval —
[y/N/edit]gate before edits begin - Execution —
implementation-agentfollows the plan - Verification —
verifier-agentaudits the result (skipped in quick lane for trivial changes)
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@warp-dot-dev/opencode-warp"],
"autoupdate": "notify",
"model": "opencode-go/qwen3.6-plus",
"small_model": "opencode-go/qwen3.5-plus",
"agent": {
"orchestrator-agent": {
"model": "opencode-go/qwen3.6-plus",
"temperature": 0.1
},
"planning-agent": {
"model": "openai/gpt-5.5",
"temperature": 0.1,
"variant": "xhigh"
},
"research-agent": {
"model": "opencode-go/deepseek-v4-flash",
"temperature": 0.1
},
"reviewer-agent": {
"model": "opencode-go/glm-5.1",
"temperature": 0.1
},
"pr-review-agent": {
"model": "opencode-go/glm-5.1",
"temperature": 0.1
},
"implementation-agent": {
"model": "opencode-go/kimi-k2.6",
"temperature": 0.1
},
"test-fixer-agent": {
"model": "opencode-go/deepseek-v4-pro",
"temperature": 0.1
},
"verifier-agent": {
"model": "openai/gpt-5.5",
"temperature": 0.1,
"variant": "xhigh"
},
"prompt-agent": {
"model": "opencode-go/qwen3.6-plus",
"temperature": 0.2
}
},
"permission": {
"bash": "ask",
"edit": "allow"
},
"compaction": {
"auto": true,
"prune": true
},
"watcher": {
"ignore": ["node_modules/**", "dist/**", ".git/**", "build/**", ".next/**", "coverage/**"]
},
"lsp": true,
"formatter": true
}
| Role | Model | Rationale |
|---|---|---|
| Orchestration | qwen3.6-plus |
Strong reasoning for routing decisions |
| Planning | gpt-5.5 (xhigh) |
Best-in-class for structured plan generation |
| Research | deepseek-v4-flash |
Fast, cost-effective codebase exploration |
| Review | glm-5.1 |
Strong adversarial analysis |
| Implementation | kimi-k2.6 |
Efficient code generation |
| Test Fixing | deepseek-v4-pro |
Deep reasoning for test diagnostics |
| Verification | gpt-5.5 (xhigh) |
Thorough audit capability |
| Prompt Engineering | qwen3.6-plus |
Good at meta-reasoning about prompts |
- bash:
ask— requires user confirmation before running shell commands - edit:
allow— agents can modify files within their defined permissions - Individual agents have granular overrides (e.g.,
research-agentcannot edit,implementation-agentcannot commit)
The @warp-dot-dev/opencode-warp plugin provides enhanced capabilities integrated into the workflow.
- Auto-compaction with pruning keeps context windows efficient
- File watcher ignores build artifacts, dependencies, and git internals
/quick add null check to parseUser in auth.tsThe orchestrator:
- Confirms the task is small enough for quick lane
- Gathers minimal context via
research-agent - Creates a tiny plan with
planning-agent - Skips approval (mechanical change)
- Delegates to
implementation-agent - Reports files changed and validations run
/full add dark mode toggle to settings pageThe orchestrator:
- Delegates discovery to
research-agent planning-agentdrafts approach with existing patternsreviewer-agentstress-tests the plan- Presents plan at
plans/dark-mode-toggle/plan.md - Asks
[y/N/edit]for approval - Executes tracks via
implementation-agent verifier-agentaudits the result
/debug API returns 500 when creating orders with empty cartThe orchestrator:
- Triages: symptom = 500 on empty cart order creation
research-agentmaps order creation flow, finds suspect validation- Hypothesis: missing null check on cart items array
planning-agentcreates minimal fix planreviewer-agentcritiques (touches shared order logic)- Approval gate →
[y/N/edit] implementation-agentapplies fixverifier-agentconfirms the fix resolves the 500
@pr-review-agent review PR #42The PR review agent:
- Collects evidence via
gh pr view,gh pr diff,gh pr checks - Reviews across 7 dimensions: correctness, regression, tests, security, performance, maintainability, CI
- Returns verdict:
approve|comment|request changes - Lists blocking and non-blocking findings with evidence
- Start with the right lane — use
/quickfor small changes, escalate to/mediumor/fullas needed - Let skills auto-activate — skills trigger based on context; use
@skill-namefor explicit invocation - Review plans before approving — the approval gate is your checkpoint
- Trust the pipeline — research before planning, review before implementation, verify after
- Use caveman mode for token efficiency when working with large contexts