WARNING: This was 100% vibecoded in a single day. It's here for fun, not production use.
A fork of OpenCode with experimental agent management and swarm orchestration features.
OpenCode is an AI-powered terminal coding assistant. It's a CLI tool that helps you write, refactor, and understand code using various LLM providers. Think of it as your AI pair programmer that lives in your terminal.
The swarm feature enables parallel task execution by spawning multiple specialized agents that work simultaneously.
Built-in Swarm Agents:
| Agent | Description |
|---|---|
swarm_manager |
Orchestrates a swarm of up to 100 specialized agents for parallel task execution |
swarm_worker |
Worker agent that executes assigned subtasks |
swarm_specialist |
Specialist agent with deep domain expertise (read-only) |
How It Works:
- The
swarm_managerreceives a task and breaks it into independent subtasks - It spawns multiple agents in parallel using the
swarmtool - All agents execute simultaneously
- Results are synthesized and returned
Example Swarm Call:
{
"agents": [
{ "role": "researcher", "task": "Find all API endpoint definitions" },
{ "role": "analyst", "task": "Review error handling patterns" },
{ "role": "worker", "task": "Write unit tests for auth module" }
]
}All agents run in parallel, and their combined results are returned when all have completed.
This project is licensed under the MIT License - see the LICENSE file for details.
Original OpenCode is Copyright (c) 2025 opencode.
- OpenCode - The original project this fork is based on
- All the LLM providers that make this possible
Remember: This was vibecoded in a day for fun. Use at your own risk, and maybe don't run it on production systems without supervision.