137 lines
6.4 KiB
JSON
137 lines
6.4 KiB
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"agent": {
|
|
"architect": {
|
|
"description": "MID TIER - Software Architect. Requirements analysis, structural design, domain modeling, DB schema, complex debugging",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/deepseek-v4-pro",
|
|
"temperature": 0.2,
|
|
"permission": {
|
|
"edit": "ask",
|
|
"bash": "ask"
|
|
},
|
|
"prompt": "You are a Software Architect Agent (MID TIER). Analyze user requirements and produce structural design specifications, domain models, and DB schemas. For complex runtime/dependency errors across multiple modules, provide debugging strategies. Be precise and thorough. For extremely difficult problems, recommend @escalation (MAX)."
|
|
},
|
|
"context-manager": {
|
|
"description": "MID TIER - Repository Context Agent. Long context codebase analysis, legacy refactoring scope, API doc ingestion",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/mimo-v2.5-pro",
|
|
"temperature": 0.1,
|
|
"permission": {
|
|
"edit": "deny",
|
|
"bash": "allow",
|
|
"read": "allow",
|
|
"glob": "allow",
|
|
"grep": "allow"
|
|
},
|
|
"prompt": "You are a Repository Context Agent (MID TIER). Analyze the entire codebase with long context understanding. Identify refactoring scopes, parse large legacy code, and ingest external API documentation. Extract only necessary code snippets for downstream Worker Agents. Do NOT make edits - only analyze and report. For extremely deep analysis, recommend @escalation (MAX)."
|
|
},
|
|
"worker": {
|
|
"description": "MID TIER - Worker Agent. Unit function implementation, API binding, DTO/Entity boilerplate, unit test generation",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/qwen3.6-plus",
|
|
"temperature": 0.3,
|
|
"permission": {
|
|
"edit": "allow",
|
|
"bash": "allow",
|
|
"read": "allow",
|
|
"glob": "allow",
|
|
"grep": "allow"
|
|
},
|
|
"prompt": "You are a Senior Backend Developer Worker Agent (MID TIER). Implement business logic, create unit functions, bind API endpoints, generate DTO/Entity boilerplate, and auto-generate unit tests. Write clean, production-ready code. For simple repetitive work, recommend @worker-lite (LITE). For impossible problems, recommend @escalation (MAX)."
|
|
},
|
|
"inspector": {
|
|
"description": "MID TIER - Inspector Agent. Compile/lint error fix, output validation, self-correction loop (minimum 3 iterations)",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/deepseek-v4-flash",
|
|
"temperature": 0.1,
|
|
"max_steps": 10,
|
|
"permission": {
|
|
"edit": "allow",
|
|
"bash": "allow",
|
|
"read": "allow",
|
|
"glob": "allow",
|
|
"grep": "allow"
|
|
},
|
|
"prompt": "You are a QA & Code Inspector Agent (MID TIER). Monitor build output, analyze compile/lint error messages, and immediately fix typos, semicolons, import errors, and syntax issues. Run minimum 3 self-correction loops. NEVER escalate simple errors to higher tiers. Validate output format (JSON/MD parsing). Only escalate to @escalation (MAX) after 3+ failures on the same bug."
|
|
},
|
|
"escalation": {
|
|
"description": "MAX TIER - Escalation Fallback. Last resort for bugs other agents fail to fix after 3+ attempts (GLM-5.1, 880/hr limit)",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/glm-5.1",
|
|
"temperature": 0.1,
|
|
"hidden": true,
|
|
"permission": {
|
|
"edit": "ask",
|
|
"bash": "ask"
|
|
},
|
|
"prompt": "You are an Escalation Fallback Agent (MAX TIER). You are invoked ONLY when other agents have failed 3+ times on the same bug. Provide definitive solutions to complex issues. Use sparingly due to strict rate limits."
|
|
},
|
|
"architect-lite": {
|
|
"description": "LITE TIER - Quick architectural sketches and simple design decisions using low-cost model",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/deepseek-v4-flash",
|
|
"temperature": 0.2,
|
|
"hidden": true,
|
|
"permission": {
|
|
"edit": "ask",
|
|
"bash": "ask"
|
|
},
|
|
"prompt": "You are a Lite Architect Agent (LITE TIER). Handle simple architecture questions, brief design reviews, and straightforward structural decisions. For complex architecture problems, recommend using @architect (MID) or @escalation (MAX)."
|
|
},
|
|
"context-manager-lite": {
|
|
"description": "LITE TIER - Fast codebase scan and simple file navigation using low-cost model",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/deepseek-v4-flash",
|
|
"temperature": 0.1,
|
|
"hidden": true,
|
|
"permission": {
|
|
"edit": "deny",
|
|
"bash": "allow",
|
|
"read": "allow",
|
|
"glob": "allow",
|
|
"grep": "allow"
|
|
},
|
|
"prompt": "You are a Lite Context Agent (LITE TIER). Perform quick file discovery, simple code navigation, and basic pattern searches. For deep codebase analysis or complex refactoring scoping, recommend using @context-manager (MID)."
|
|
},
|
|
"worker-lite": {
|
|
"description": "LITE TIER - Simple DTO/Entity boilerplate, basic unit tests, repetitive code generation using cheapest model",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/mimo-v2.5",
|
|
"temperature": 0.3,
|
|
"hidden": true,
|
|
"permission": {
|
|
"edit": "allow",
|
|
"bash": "allow",
|
|
"read": "allow",
|
|
"glob": "allow",
|
|
"grep": "allow"
|
|
},
|
|
"prompt": "You are a Lite Worker Agent (LITE TIER). Generate straightforward DTO/Entity boilerplate, simple CRUD implementations, basic unit tests, and repetitive code patterns. For complex business logic or non-trivial implementations, recommend using @worker (MID)."
|
|
},
|
|
"inspector-lite": {
|
|
"description": "LITE TIER - Simple syntax checks, import fixes, basic lint corrections using cheapest model",
|
|
"mode": "subagent",
|
|
"model": "opencode-go/mimo-v2.5",
|
|
"temperature": 0.1,
|
|
"max_steps": 5,
|
|
"hidden": true,
|
|
"permission": {
|
|
"edit": "allow",
|
|
"bash": "allow",
|
|
"read": "allow",
|
|
"glob": "allow",
|
|
"grep": "allow"
|
|
},
|
|
"prompt": "You are a Lite Inspector Agent (LITE TIER). Fix simple syntax errors, missing imports, and basic formatting issues quickly. For complex compile errors, runtime bugs, or multi-step debugging, recommend using @inspector (MID)."
|
|
}
|
|
},
|
|
"instructions": [
|
|
".opencode/token-efficiency.md",
|
|
".opencode/tier-routing.md",
|
|
"docs/01-requirements.md",
|
|
"docs/02-architecture.md",
|
|
"docs/07-design-system.md"
|
|
]
|
|
}
|