An Elixir code-mode harness for coding agents.
One harness for local and frontier models. Cuts API costs by letting agents prune their own context projection without losing conversation history.
$ curl -fsSL https://broodagent.com/install.sh | sh macOS & Linux · MIT License
Built on Elixir
Every agent gets one tool: a live elixir_repl. Following the RLM pattern, work runs in code, raw output stays in memory bindings, and agents can recursively spawn subagents on any model. Because the harness itself is Elixir, Brood can customize Brood — adding MCP servers, writing new features, and hot-reloading modules without restarting. Close your terminal and your agents keep running across the TUI, browser UI, Telegram, git worktrees, and other machines.
{out, _} = Brood.sh("mix test --failed")
files = Regex.scan(~r/test\/\S+\.exs/, out) |> Enum.uniq()
for [f] <- files, do: Brood.spawn("implementer", "fix #{f}", worktree: true)
# full test log stays in memory — only %{spawned: 3} enters context
%{spawned: length(files)} Built for lower API costs
Most coding agents resend large files and old tool output on every turn. Because of RLM, Brood sends a projection over your conversation history — letting the agent exclude stale output on its own while the full transcript stays untouched, ready to pull back in whenever it needs detail again.
First-class support for every provider
Run local models with Ollama or llama.cpp alongside Claude Code, Codex, Antigravity, and direct cloud APIs in the same harness. Brood automatically picks up your existing API keys and CLI logins — switch models mid-conversation with /model, or assign different models per agent.
Providers
- Local
- Ollama · llama.cpp · OpenAI-compatible
- Subscriptions
- Claude Code · Codex · Antigravity
- APIs
- Anthropic · OpenAI · Google · xAI · OpenRouter · Fireworks · Meta · Z.ai · Tinfoil
Quickstart
$ curl -fsSL https://broodagent.com/install.sh | sh $ brood # picks up existing API keys & CLI logins (or: brood login)