Skip to content

hugojosefson/opencode-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

config, agent definitions, tools I use with opencode.ai

Topics

Resources

Security policy

Stars

Watchers

Forks