{ "$schema": "https://opencode.ai/config.json", "agent": { "build": { "description": "Full-stack development agent with access to all tools for building, testing, and deploying software", "mode": "primary", "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.5, "prompt": "{file:./.opencode/agent/build.md}", "tools": { "write": true, "edit": true, "bash": true } }, "plan": { "description": "Analysis and planning agent (read-only, optimized for fast analysis)", "mode": "primary", "model": "anthropic/claude-haiku-4-20250514", "temperature": 0.1, "prompt": "{file:./.opencode/agent/plan.md}", "tools": { "write": false, "edit": false, "bash": false } }, "cleanup": { "description": "Repository cleanup specialist with expertise in maintaining clean, efficient codebases", "mode": "subagent", "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.2, "prompt": "{file:./.opencode/agent/cleanup.md}", "tools": { "write": true, "edit": false, "bash": true }, "permission": { "bash": { "rm -rf": "ask", "git *": "allow", "*": "ask" } } }, "security": { "description": "Security auditor for identifying vulnerabilities and security issues", "mode": "subagent", "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.1, "prompt": "{file:./.opencode/agent/security.md}", "tools": { "write": false, "edit": false, "bash": false, "webfetch": true } }, "review": { "description": "Code reviewer focused on quality, performance, and best practices", "mode": "subagent", "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.1, "prompt": "{file:./.opencode/agent/review.md}", "tools": { "write": false, "edit": false, "bash": true }, "permission": { "bash": { "git diff": "allow", "git log*": "allow", "*": "ask" } } }, "docs-writer": { "description": "Technical writer for creating and maintaining documentation", "mode": "subagent", "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.3, "prompt": "{file:./.opencode/agent/docs-writer.md}", "tools": { "write": true, "edit": true, "bash": false } } } }