Configuration files, agent definitions, and tools for opencode.ai.
Clone this repository as ~/.config/opencode to use these configurations.
| File/Directory | Description |
|---|---|
| AGENTS.md | Global agent instructions for all projects |
| config.json | OpenCode configuration |
| agent/ | Custom agent definitions |
| tool/ | Custom tool implementations |
| src/ | Utility scripts for model discovery/testing |
| Agent | Description |
|---|---|
| delegator | Coordination agent (delegation-only) |
| general | Full-capability execution agent |
-
Chat with delegator agent (has TODO list management and task delegation only)
-
Delegator breaks requests into tasks and delegates to general subagent instances
-
General subagent performs actual work (file operations, code changes, commands)
-
Results return to delegator for coordination
Delegator saves tokens by not loading tool descriptions. General agent spends all tokens on execution.
Context savings from delegator → general workflow:
