- Move all agent prompts from .txt files to .md files - Add frontmatter configuration to each agent file - Update opencode.json to reference new markdown files - Add missing plan.md agent for analysis and planning - Include docs-writer agent in main configuration - Remove deprecated prompts/ directory Benefits: - Unified markdown format for all agents - Self-contained agent configuration - Better maintainability and version control - Consistent structure across all agents
92 lines
2.6 KiB
JSON
92 lines
2.6 KiB
JSON
{
|
|
"$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
|
|
}
|
|
}
|
|
}
|
|
} |