Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.65 KB

File metadata and controls

45 lines (30 loc) · 1.65 KB

OpenCode configuration

Configuration files, agent definitions, and tools for opencode.ai.

Clone this repository as ~/.config/opencode to use these configurations.

What's here

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

Custom agents

Agent Description
delegator Coordination agent (delegation-only)
general Full-capability execution agent

Agent flow

  1. Chat with delegator agent (has TODO list management and task delegation only)

  2. Delegator breaks requests into tasks and delegates to general subagent instances

  3. General subagent performs actual work (file operations, code changes, commands)

  4. Results return to delegator for coordination

Delegator saves tokens by not loading tool descriptions. General agent spends all tokens on execution.

Example

Context savings from delegator → general workflow:

opencode-delegator-look-at-the-context-savings.png