https://github.com/hugojosefson/opencode-config
config, agent definitions, tools I use with opencode.ai
https://github.com/hugojosefson/opencode-config
deno opencode vibe
Last synced: about 1 month ago
JSON representation
config, agent definitions, tools I use with opencode.ai
- Host: GitHub
- URL: https://github.com/hugojosefson/opencode-config
- Owner: hugojosefson
- Created: 2025-09-30T17:52:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-30T20:42:49.000Z (9 months ago)
- Last Synced: 2025-09-30T21:06:24.784Z (9 months ago)
- Topics: deno, opencode, vibe
- Language: TypeScript
- Homepage:
- Size: 190 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# OpenCode configuration
Configuration files, agent definitions, and tools for
[opencode.ai](https://opencode.ai/).
Clone this repository as `~/.config/opencode` to use these configurations.
## What's here
| File/Directory | Description |
| :------------------------- | :------------------------------------------ |
| [AGENTS.md](AGENTS.md) | Global agent instructions for all projects |
| [config.json](config.json) | OpenCode configuration |
| [agent/](agent/) | Custom agent definitions |
| [tool/](tool/) | Custom tool implementations |
| [src/](src/) | Utility scripts for model discovery/testing |
## Custom agents
| Agent | Description |
| :------------------------------ | :----------------------------------- |
| [delegator](agent/delegator.md) | Coordination agent (delegation-only) |
| [general](agent/general.md) | 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:
