Skip to content

CompactAIOfficial/OpencodeSwarms

Repository files navigation

OpenCode Fork - Agent Swarm Edition

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.

What is OpenCode?

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.

What's Different in This Fork?

Agent Swarm

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:

  1. The swarm_manager receives a task and breaks it into independent subtasks
  2. It spawns multiple agents in parallel using the swarm tool
  3. All agents execute simultaneously
  4. 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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Original OpenCode is Copyright (c) 2025 opencode.

Acknowledgments

  • 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.

About

Ever felt like Opencode wasnt keeping up? Well, I VIBECODED this clone of it. It adds all of your agent swarm needs.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors