Drop one MCP server into Codex, Amp, or Claude Code and get 37 tools for spawning parallel agents, running task pipelines, and doing multi-step code work — without leaving your existing workflow.
Quick Start · Features · All 37 Tools · How It Works · Contributing
You're already using Codex, Amp, or Claude Code. It writes code, fixes bugs, answers questions. But it's still one agent doing one thing at a time.
You: "Find all the memory leaks in this codebase and fix them"
Orchestrator decomposes the task
│
┌────┼────┐
▼ ▼ ▼
[W1] [W2] [W3] ← parallel agents, each owns a subsystem
│ │ │
└────┼────┘
▼
Synthesizer → one clean report back to you
DevSwarm is an MCP server that gives your AI assistant the ability to orchestrate itself — spawning sub-agents, running parallel workloads, and chaining multi-step task pipelines. No new UI. No new workflow.
Grab the latest release for your platform from GitHub Releases.
git clone https://github.com/justrach/codedb.git
cd codedb
zig build # builds zig-out/bin/devswarm
zig build test # run all testsRequirements: Zig 0.15.x, codex and/or claude CLI on PATH, Git
Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"devswarm": {
"command": "/path/to/devswarm",
"args": ["--mcp"],
"env": { "REPO_PATH": "/path/to/your/repo" }
}
}
}Then run /mcp to verify — you'll see 37 tools added to your assistant.
Codex
Add to ~/.codex/config.toml:
[mcp_servers.devswarm]
command = "/path/to/devswarm"
args = ["--mcp"]
env = { REPO_PATH = "/path/to/your/repo" }Amp
Add to your Amp MCP config:
{
"mcpServers": {
"devswarm": {
"command": "/path/to/devswarm",
"args": ["--mcp"],
"env": { "REPO_PATH": "/path/to/your/repo" }
}
}
}run_swarm("Audit the entire auth system for security issues", max_agents=5)
An orchestrator breaks the task into sub-tasks. Workers run in parallel. A synthesizer combines everything. You get one answer instead of five tabs.
run_task("Fix the race condition in src/queue.zig", preset="reviewer_fixer")
Built-in presets chain agents together automatically:
| Preset | Pipeline |
|---|---|
finder_fixer |
find the issue → fix it |
reviewer_fixer |
review → fix reported issues |
explore_report |
deep exploration → structured report |
architect_build |
design → implement |
review_fix_loop("Check for memory leaks", max_iterations=3)
Runs reviewer → fixer → reviewer again, until the reviewer says NO_ISSUES_FOUND or hits the iteration cap.
run_agent("Explain the PPR algorithm", role="explorer", mode="deep")
Each agent gets the right model automatically:
| Role | Model | Does |
|---|---|---|
finder |
Sonnet | Search and locate |
reviewer |
Sonnet | Review for correctness |
fixer |
Sonnet | Apply fixes (writable) |
explorer |
Sonnet | Deep codebase exploration |
architect |
Opus | System design decisions |
orchestrator |
Opus | Decomposes swarm tasks |
synthesizer |
Sonnet | Combines agent outputs |
monitor |
Haiku | Lightweight checks |
| Mode | Use when |
|---|---|
smart |
Most tasks |
rush |
Quick answers |
deep |
Hard problems, architecture |
free |
Minimize cost |
Agents
run_agent · run_swarm · run_task · review_fix_loop · run_reviewer · run_explorer · run_zig_infra
Planning
decompose_feature · get_project_state · get_next_task · prioritize_issues
Issues
create_issue · update_issue · close_issue · get_issue · create_issues_batch · close_issues_batch · link_issues
Git
create_branch · get_current_branch · commit_with_context · push_branch · recently_changed · git_history_for
Pull Requests
create_pr · get_pr_status · list_open_prs · merge_pr · get_pr_diff · review_pr_impact
Code Intelligence
blast_radius · relevant_context · symbol_at · find_callers · find_callees · find_dependents
Repo
set_repo
DevSwarm is a provider-agnostic runtime. When you call run_agent, it:
- Resolves — picks backend (Claude or Codex), model tier, system prompt, and tool preamble based on role + mode + what's available on your PATH
- Dispatches — spawns the agent on the right backend, falls back automatically if one isn't available
- Returns — streams output back through MCP
System prompts are assembled dynamically from agency rules, role instructions, mode guidance, and auto-detected tool availability (zig tools → ripgrep → grep). No hardcoded prompts.
Contributions are welcome! Please open an issue before submitting a large PR so we can discuss the approach.
git clone https://github.com/justrach/codedb.git
cd codedb
zig build test # make sure tests pass before and after your changeMIT — see LICENSE
Full changelog: README-changelog.md
