Initial commit: OpenCode agents project with mixed configuration methods
- Added opencode.json with 5 agents (4 prompt-based, 1 markdown-based) - Created .opencode/agent/docs-writer.md (markdown-based agent) - Added prompts/ directory with 4 prompt files - Configured mixed agent setup demonstrating both methods - Added comprehensive README.md and .gitignore - Saved Gitea configuration for remote repository access
This commit is contained in:
76
opencode.json
Normal file
76
opencode.json
Normal file
@ -0,0 +1,76 @@
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user