real life totally configurabl ai subasians
This commit is contained in:
parent
88477b3ee7
commit
8dcd39f5b7
22 changed files with 729 additions and 122 deletions
|
|
@ -50,9 +50,9 @@ opencode comes with two built-in modes: _build_, the default with all tools enab
|
|||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"mode": {
|
||||
"build": { },
|
||||
"plan": { },
|
||||
"my-custom-mode": { }
|
||||
"build": {},
|
||||
"plan": {},
|
||||
"my-custom-mode": {}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -181,6 +181,31 @@ about rules here](/docs/rules).
|
|||
|
||||
---
|
||||
|
||||
### Agents
|
||||
|
||||
You can configure specialized agents for specific tasks through the `agent` option.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"agent": {
|
||||
"code-reviewer": {
|
||||
"description": "Reviews code for best practices and potential issues",
|
||||
"model": "anthropic/claude-sonnet-4-20250514",
|
||||
"prompt": "You are a code reviewer. Focus on security, performance, and maintainability.",
|
||||
"tools": {
|
||||
"write": false,
|
||||
"edit": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You can also define agents using markdown files in `~/.config/opencode/agent/` or `.opencode/agent/`. [Learn more here](/docs/agents).
|
||||
|
||||
---
|
||||
|
||||
### Disabled providers
|
||||
|
||||
You can disable providers that are loaded automatically through the `disabled_providers` option. This is useful when you want to prevent certain providers from being loaded even if their credentials are available.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue