VictorAboba/DreamTeam
概要
A self-organizing swarm of AI agents with no leader: shared task board, git workspace, agents that write their own MCP tools, and the swarm itself as an MCP server for Claude Code.
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- +3
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルEnglish · Русский
A self-organizing swarm of AI agents with no leader. You give the swarm a goal; agents with human names plan it on a shared task board, claim tasks, review each other's work, talk in task threads and direct messages, share a git workspace, set themselves triggers and write their own tools as MCP servers. The swarm itself is an MCP server, so Claude Code can watch it, steer it, or join it as a member.

Recorded with scripts/demo_gif.py: the board is real, the agents follow a script instead of a model.
uv tool install git+https://github.com/VictorAboba/DreamTeam.git
dreamteam "Build a snake game in Python with tests"
What makes it different
- No orchestrator. Setting a goal puts a planning task on the board; whoever is free takes it, the others pick up tasks as they appear. Claiming is atomic, dependencies block, and every task is accepted by a different member (independent review) — or by you, if nobody else is left.
- Crew tasks. A deliverable too big for one member becomes a crew task. Whoever makes it a crew task names only its directions, and the members who take them write their cards. Its owner does one of them itself, keeps them consistent and writes the result from a draft the board assembles from the directions' results. By default another member, where possible one who worked on none of its directions, then checks it as a whole (more).
- It asks before it builds. In clarify mode the planner asks you about the goal's open points in one message before it creates any task, while the other agents wait without spending tokens; an agent whose question decides how the whole team goes on can pause the swarm until you answer, and your answer reaches every member.
- Agents build their own tools. The built-in tool set is small: the board, messages, files, a console and
triggers. Anything else an agent writes as an MCP server (
mcp_create); it is checked, registered for itself, its task or the whole swarm, and kept in a library for later runs. - The swarm is an MCP server. Connect Claude Code (or any MCP client) to act as the user — set goals, read the
board, approve reviews — or call
join_swarmand work inside the swarm as a teammate. - Every step is traceable. Each time an agent wakes up becomes a trace: every LLM call with its thinking, tool calls, tokens (including cache), cost, latency and the exact request context, even after the history was compacted. Browse it on the board, in the terminal or over MCP, export it as JSON.
- Any model. Claude, OpenAI, OpenRouter, Ollama, vLLM, LM Studio or any OpenAI-compatible endpoint, with a different model per agent or role, token and dollar accounting per agent, and a budget that pauses the swarm.
- Built to run unattended. Everything is in one SQLite file per session; after a restart the swarm continues where it stopped. Long commands become background jobs instead of being killed, sessions can run without network for benchmarks, and the whole swarm can run in a Docker sandbox.
Interfaces
| Terminal UI | dreamteam opens a Claude Code–style terminal UI: a feed of agents' actions (⏺ Anna Smirnova · task_claim(task_id=3)), slash commands, @mentions, esc to pause. dreamteam -p "goal" runs headless for scripts and CI with text, json or stream-json output. |
| Web board | http://127.0.0.1:8765 — sessions page, settings, and per session a live kanban with drag-and-drop, subtasks in their parent's stack, task threads, chat with any agent, its live activity, files, MCP servers, triggers, background jobs and traces. Light/dark, English/Russian. |
| MCP | /mcp over HTTP or dreamteam mcp over stdio: session management plus every board, message and trace tool. |
| HTTP API | /api/v1 with a token of its own, the HTTP form of dreamteam -p for a site or any program: upload files (or name a folder you allowed), start a session with a goal, follow its events, answer the agents and take the result and the files. Stable within v1 — see HTTP API. |
| REST + WebSocket | Everything the board does, for your own tooling; these routes may change between releases. |
Install
You need Python 3.11+, uv and git.
uv tool install git+https://github.com/VictorAboba/DreamTeam.git
This puts the dreamteam command on your PATH (run uv tool update-shell if it isn't found). To hack on it,
clone the repository and run uv tool install --editable . instead — see CONTRIBUTING.md
and Install and quick start.
Updating to 0.2.0
uv tool upgrade dreamteam
Before you update, finish or export the sessions in which agents already worked (almost every session of 0.1.x):
0.2.0 lists them, marked "earlier version", but does not open them, and there is no conversion. 0.1.0 has no
dreamteam export: there, finish them, or update and then export them with 0.2.0, which exports them with a
warning. A session in which no agent has run yet opens as usual. To open a session of an earlier version again,
import its export into a separate home with DreamTeam 0.1.1. The main session of an old project cannot be exported: finish its work first. Details:
Updating to 0.2.0.
Quick start
export ANTHROPIC_API_KEY=sk-ant-... # or configure any provider in Settings
dreamteam # terminal UI; the web board is served too
dreamteam "Build a CLI that converts CSV to JSON, with tests" # start a session with this goal
dreamteam serve # web board only
- Open Settings → Models and endpoints on
http://127.0.0.1:8765, pick a provider and model, give the key (an environment variable name or the key itself) and press Check. - On Sessions, press Start a new session and describe the goal: the first line becomes the title, the rest the
description. You can also pick the starting team, e.g.
--team "architect, developer*2, tester", or a team saved in the settings. Tick Clarify the goal first (in the terminal:--clarifyor/clarify on) to be asked about the goal before the swarm plans. - Watch the swarm plan and work; write to any agent with
@Name, review tasks it hands you with/approve 3or/reject 3 what to fix. All commands and keys: Terminal UI and console.
Agent prompts are in English or Russian: set language = "en" under [swarm] in ~/DreamTeam/dreamteam.toml
or in the new-session dialog.
Point a session at an existing project instead of its own folder — agents then commit to your current branch:
git switch -c dreamteam/billing
dreamteam --workspace ~/code/my-app "Cover the billing module with tests"
Or give a new session a copy of the project, so your files stay untouched (.git, node_modules and the like are
left out; nothing is copied back):
dreamteam --copy-from ~/code/my-app "Find out why the export is slow and fix it"
The rules that keep your own work safe are in Session folder and an existing project, working on a copy in Working on a copy of files.
Connect Claude Code
claude mcp add --transport http dreamteam http://127.0.0.1:8765/mcp # to a running server
claude mcp add dreamteam -- dreamteam mcp # or let Claude Code start it
Claude Code then acts as the user of the swarm, or joins it with join_swarm — see
Connecting Claude Code.
Run in Docker
dreamteam sandbox ~/DreamTeam --goal "..."
Agents' commands and their MCP servers then run inside the container. Add --network off to cut them off
from the internet (strict in Docker and on Linux) — see Docker sandbox and sessions without network.
Move to another computer
dreamteam export E:/dreamteam # settings, skills, MCP servers and whole sessions into one folder
dreamteam import E:/dreamteam # on the other computer: shows the plan, asks, adds or rewrites
API keys and MCP env values stay on the first computer, and the export is checked for that computer's secrets
before it is finished. Import adds what is new and rewrites what changed; nothing the export does not carry is
deleted, and a session rewritten in full keeps its previous copy. Imported sessions never start by themselves.
Both computers need DreamTeam 0.1.1 or newer. A session in which agents of 0.1.x worked is exported by 0.2.0 too,
but only DreamTeam 0.1.1 imports and opens it. Details: Moving to another computer and backups.
Configuration
Settings live in ~/DreamTeam/dreamteam.toml and are easiest to change on the Settings page.
A minimal example:
[swarm]
language = "en"
start_agents = 3
max_agents = 8
max_cost_usd = 5.0
[models.default]
provider = "anthropic"
model = "claude-opus-5-5"
api_key_env = "ANTHROPIC_API_KEY"
[models.local] # Ollama, vLLM, OpenRouter — any OpenAI-compatible API
provider = "openai"
base_url = "http://localhost:11434/v1"
model = "qwen3:32b"
api_key = "ollama"
Every section and key: Configuration.
Security
Agents run commands and MCP server code with your user's rights. For untrusted goals use
dreamteam sandbox. API keys and other secrets from the environment are not passed to agents' commands.
By default the server listens on 127.0.0.1 and asks for no token: set DREAMTEAM_HUB_TOKEN before you expose it
(a hub on another address refuses to start without one), or put it behind a reverse proxy with authentication.
A hub with a token (the Docker sandbox, docker compose) asks every client for it, inside its container too. The HTTP
API has a token of its own, DREAMTEAM_API_TOKEN, which opens /api/v1 and nothing else; a hub that serves a site
runs in dreamteam sandbox.
Details: Security; to report a vulnerability, see SECURITY.md.
Documentation
The full guide is in docs/en:
- Install and quick start — every
dreamteamcommand - Features — everything DreamTeam does, in one table
- Terminal UI and console · Session folder and an existing project · Connecting Claude Code · HTTP API · Skills · Agent traces
- Configuration · Docker sandbox and sessions without network · Moving to another computer and backups · Security
- How it works · Agent tools · Module specification · Terminal UI contract
Ideas are borrowed from Claude Code Agent Teams, Gas Town / Beads, CAMEL Workforce, Magentic-One, MetaGPT, Strands Swarm, Letta, Alita, A2A and blackboard architectures — details.
Contributing
Issues and pull requests are welcome, in English or Russian. Start with CONTRIBUTING.md; tests run with a scripted LLM and need no API keys. Questions, ideas and what you built with DreamTeam go to Discussions.
License
関連プロジェクトを探す
読み込み中…