Python CLI tooling for Brokk editor integrations and ACP/MCP server passthrough wrappers.
The published command is brokk. For normal use, run it through uvx so the
latest published package is resolved automatically:
uvx brokk --helpLocal development still uses uv run; see Development.
uv/uvxfor normal user-facing commands and generated editor configs.- Python 3.11+ for local development.
curlon Unix-like systems if Brokk needs to bootstrapuv.
ACP mode launches Anvil and does not use the Java executor. MCP mode launches Bifrost and does not use the Java executor.
Show the available commands:
uvx brokk --helpInstall an editor integration:
uvx brokk install zed
uvx brokk install intellij
uvx brokk install neovim --plugin codecompanion
uvx brokk install neovim --plugin avanteInstall MCP integration settings for Claude Code and Codex:
uvx brokk install mcpInstall the local Codex plugin entry:
uvx brokk install codex-pluginInstallers write client configuration only. They do not require a Brokk API key
and do not warm Anvil or Bifrost runtime dependencies. Where supported,
generated config launches Brokk as uvx brokk ... so clients resolve the
current package at runtime.
Use --force to replace an existing generated integration entry when the
installer supports it.
Run Anvil as an ACP server over stdio:
uvx brokk acpResolution order for Anvil is:
--anvil-binary <path>anvilonPATH- A downloaded release pinned to the bundled Anvil version
Useful ACP options:
uvx brokk acp --default-model gpt-5.2
uvx brokk acp --max-turns 20
uvx brokk acp --bifrost-binary /path/to/bifrost
uvx brokk acp --helpUnknown brokk acp arguments are passed through to Anvil.
Run Bifrost as an MCP server over stdio:
uvx brokk mcpResolution order for Bifrost is:
--bifrost-binary <path>bifrostonPATH- A downloaded release pinned to the bundled Bifrost version
Unknown brokk mcp arguments are passed through to Bifrost.
uvx brokk install zed
uvx brokk install intellij
uvx brokk install jetbrainsThese installers add a custom ACP agent server entry that launches:
uvx brokk acpjetbrains is an alias for intellij.
uvx brokk install neovim --plugin codecompanionThis writes:
~/.config/nvim/lua/brokk/brokk_codecompanion.lua
It creates a CodeCompanion ACP adapter named brokk. The installer may patch a
simple init.lua plugin spec when it can do so conservatively; otherwise load
the module from your CodeCompanion setup:
{
"olimorris/codecompanion.nvim",
opts = function()
return require("brokk.brokk_codecompanion")
end,
}The generated module sets Brokk as the default chat adapter. If CodeCompanion still reports its default Copilot adapter, the Brokk module is not loaded yet.
uvx brokk install neovim --plugin avanteThis writes:
~/.config/nvim/lua/brokk/brokk_avante.lua
Load the generated provider in your Avante config:
local brokk = require("brokk.brokk_avante")
require("avante").setup(vim.tbl_deep_extend("force", brokk, {
-- your existing Avante options
}))uvx brokk install mcpThis configures Brokk MCP entries for Claude Code and Codex and installs helper skills/instructions for workspace activation and summaries.
uvx brokk install codex-pluginThis installs local Codex plugin files and adds a local marketplace entry. After running it, restart Codex, choose the local marketplace, and install Brokk.
For development or direct Rust ACP usage, Zed and IntelliJ can be wired to
brokk-acp instead of uvx brokk acp:
uvx brokk install zed --rust --model gpt-5.2
uvx brokk install intellij --rust --model gpt-5.2In this mode brokk-acp and bifrost must already be installed and available
on the editor's inherited PATH. Use --brokk-acp-binary <path> to write an
explicit brokk-acp path.
Clone the repo and create the managed environment:
uv syncRun the CLI from the checkout:
uv run brokk --help
uv run brokk versionRun tests and linting:
uv run pytest
uvx ruff check .
uvx ruff format --check .Ruff is intentionally not part of the project dev dependency group, so Termux
users can run tests without building Ruff from source. Use uvx ruff ... when
you want linting or formatting checks locally.
When changing code, keep generated repository content in English and follow the project guidance in AGENTS.md and brokk_code/AGENTS.md.