{ "$schema": "https://opencode.ai/config.json", "agent": { "build": { "mode": "primary", "model": "anthropic/claude-sonnet-4-20250514", "prompt": "{file:./prompts/build.txt}", "tools": { "write": true, "edit": true, "bash": true } }, "plan": { "mode": "primary", "model": "anthropic/claude-haiku-4-20250514", "temperature": 0.1, "tools": { "write": false, "edit": false, "bash": false } }, "cleanup": { "description": "Specialized agent for repository cleanup and maintenance", "mode": "subagent", "model": "anthropic/claude-sonnet-4-20250514", "temperature": 0.2, "prompt": "{file:./prompts/cleanup.txt}", "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:./prompts/security.txt}", "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:./prompts/review.txt}", "tools": { "write": false, "edit": false, "bash": true }, "permission": { "bash": { "git diff": "allow", "git log*": "allow", "*": "ask" } } } } }