Three-tier multi-team agent orchestration for opencode. Based on IndyDevDan's "One Agent Is NOT ENOUGH".
Orchestrator Lead
├── Planning Team (Planning tier - opencode-go/qwen3.6-plus, 1M, Free)
│ ├── Planning Lead
│ ├── Planning Agent
│ └── Plan Reviewer
├── Engineering Team (Engineering tier - minimax-m2.5-free, 200k, Free)
│ ├── Engineering Lead
│ ├── Frontend Dev
│ ├── Backend Dev
│ └── DevOps Specialist
└── Validation Team (Validation tier - minimax-m2.5-free, 200k, Free)
├── Validation Lead
├── Reviewer
├── Security Reviewer
└── QA Engineer
This is included in the opencode config at ~/.config/opencode/. No separate installation needed.
When you start OpenCode, the default agent is now orchestrator. This agent automatically routes to the appropriate teams:
| Request Type | Flow |
|---|---|
| New feature | Planning → Engineering → Validation |
| Bug fix | Engineering → Validation |
| Code review | Validation only |
| Architecture | Planning only |
| Security audit | Validation (security focus) |
| Quick lookup | Direct or Engineering |
Use the Tab key to cycle between primary agents if needed.
You can also invoke skills directly using the skill tool:
use skill tool to list skills
use skill tool to load mt-feature
use skill tool to load mt-review
Role: Top-level coordinator
Responsibilities:
- Analyze requests and determine complexity
- Route to appropriate teams
- Synthesize results from all teams
- Final quality gate before delivery
Model: Planning (opencode-go/qwen3.6-plus, 1M, Free)
| Agent | Role |
|---|---|
| planning-lead | Coordinates planning work |
| planning-agent | Creates architecture/design |
| plan-reviewer | Reviews plans for completeness |
Model: Planning (opencode-go/qwen3.6-plus, 1M, Free)
| Agent | Role |
|---|---|
| engineering-lead | Coordinates implementation |
| frontend-dev | UI/frontend implementation |
| backend-dev | API/backend implementation |
| devops-specialist | Infrastructure/deployment |
Model: Engineering (minimax-m2.5-free, 200k, Free)
| Agent | Role |
|---|---|
| validation-lead | Coordinates validation |
| reviewer | Code quality reviews |
| security-reviewer | Security audits |
| qa-engineer | Test automation |
Model: Validation (minimax-m2.5-free, 200k, Free)
Invoke skills directly for common workflows:
Full lifecycle for new features:
- Planning team creates architecture
- Engineering team implements
- Validation team reviews
Quick code review via validation team:
- Reviewer checks code quality
- Security reviewer checks for vulnerabilities
- QA engineer checks test coverage
Deep security audit:
- Security-focused validation
- Vulnerability scanning
- Severity-rated findings
Bug fix workflow:
- Engineering team investigates and fixes
- Validation team verifies the fix
- No regressions introduced
Quick code exploration:
- Direct answer using available tools
- Delegate to engineering workers if needed
Team member definitions for routing.
- Team configurations (leads + workers)
- Model tier assignments
- Routing rules
- Preprocessing settings
Sequential pipelines:
full-lifecycle- plan → engineer → validateengineer-validate- skip planningplan-validate- skip implementationsecurity-audit- deep security focus
Domain knowledge per team:
orchestrator-expertise.md- Routing decisions, composition strategyplanning-expertise.md- Architecture patterns, planning formatengineering-expertise.md- Code patterns, anti-patternsvalidation-expertise.md- Security checklist, testing strategies
| Tier | Model | Context | Price | Use For |
|---|---|---|---|---|
| Planning | opencode-go/qwen3.6-plus (opencode) | 1M | Free | Orchestrator, Planning, Architecture |
| Engineering | minimax-m2.5-free (opencode) | 200k | Free | Engineering, Implementation |
| Validation | minimax-m2.5-free (opencode) | 200k | Free | Code Review, QA, Security |
All free. 1M context for planning prevents compaction issues.
# New feature
> Build a user authentication system with OAuth2
# Bug fix
> Fix the login bug where sessions expire prematurely
# Code review
> Review the auth module for security issues
# Architecture
> Design a caching layer for our API
# Security
> Audit the payment processing code