Put your local models to work on your code.ACP Agent — Autonomous Coding Partner, formerly acp-bridge

Connect Ollama and self-hosted models to OpenAB and supported ACP editors — Zed, JetBrains, ACP UI, Meuxe. Read code, edit files, and run tests — with execution limits, progress reporting, and optional session recovery. Same binary, same repo, same install as acp-bridge.

Three Things To Know

⌘

Use your own models

Connect to Ollama's native API or any OpenAI-compatible endpoint — pick a model that fits your hardware and workflow.

⌬

Control each run

Configure tool policies, timeouts, and round limits. When a limit is reached, you get an honest partial result.

⏚

Keep your working context

Long conversations and large tool outputs are managed. Enable session storage to reload conversations — and what was interrupted — after a restart.

How it fits

You write code in your editor. Your editor spawns acp-bridge as a subprocess and talks to it through JSON-RPC over stdin/stdout — ACP v1 or v2, negotiated at init. acp-bridge talks to your local LLM (Ollama — native API included — llama.cpp, vLLM, LM Studio, or any OpenAI-compatible endpoint) over HTTP. Write/edit tool calls resolve beneath the session working directory with symlink/race checks at open time; reads canonicalize-then-check with a known racing-rename gap; shell commands run as your user, gated by the tool policy you configure. The capability matrix in docs/scope.md is the source of truth for what is implemented.

┌──────────────────┐ JSON-RPC / stdio ┌──────────────┐ HTTP ┌─────────────┐ │ Editor │ ─────────────────────▶ │ acp-bridge │ ───────▶ │ Local LLM │ │ (Zed, Meuxe, │ ◀───────────────────── │ (Rust) │ ◀─────── │ (Ollama, │ │ ACP UI, …) │ session/update │ │ │ llama.cpp) │ └──────────────────┘ └──────┬───────┘ └─────────────┘ │ tool calls │ (policy-gated) ▼ ┌──────────────┐ │ Working dir │ └──────────────┘

Compatible Clients

acp-bridge negotiates the protocol version with each Client at init time. The "verified" column separates simulated end-to-end suites (a test driving that client's wire shape) from real-client runs.

ClientACP versionacp-bridge wireVerified
OpenABv1v1✓ daily use — Discord → OpenAB → acp-bridge → Ollama on 0.10.0-rc builds; v0.10.0 soak pending
Zedv1v1✓ simulated e2e (zed_style.rs)
JetBrains IDEsv1v1same v1 shape as Zed — real-client run pending
ACP UIv1v1✓ simulated e2e (inspector_style.rs)
ACP Inspectorv1v1✓ simulated e2e (inspector_style.rs)
Meuxev1v1✓ — issue #13 fixed
Codex CLI adapterv1 (minimal)v1✓ simulated e2e (minimal_style.rs)
Claude Code (Claude Agent SDK)v1v1interop verified manually
OpenCodev2 (preview)v1 (negotiated)will negotiate v2 once OpenCode ships v2

Protocol support

acp-bridge negotiates ACP v1 or v2 on one code base — the Client sends its preferred protocolVersion at init and every subsequent notification uses the corresponding wire shape. Field-level differences and the pinned revision live in docs/scope.md.

Quick start — Ollama

install

cargo install acp-bridge
# or grab a binary from the GitHub releases page

configure (env)

LLM_BASE_URL=http://localhost:11434        # no /v1 suffix → Ollama native API
LLM_MODEL=qwen3:8b                         # any model you pulled
LLM_MODEL_CONTEXT=32768                    # match the model's num_ctx
LLM_SESSION_DIR=~/.local/share/acp-bridge/sessions   # opt-in persistence

Without a /v1 suffix acp-bridge uses Ollama's native /api/chat — streaming, timing evidence, and model probing come with it; a /v1 (or any OpenAI-compatible) URL uses /chat/completions. Set LLM_SUPPORTS_IMAGE=true only for models that actually accept images. Point your client's agent command at the binary — per-client config is in the README. Upgrading or downgrading is replacing the binary — back up LLM_SESSION_DIR first; restore compatibility is only guaranteed for version combinations that have actually been verified.

What's verified (and what isn't)

LayerStatus
Test suite✓ 188 unit + 43 integration tests, clippy/fmt clean — on candidate 6f12f84, 2026-11-26
Client wire shapes (v1/v2)✓ simulated e2e suites per client style (Zed / inspector / minimal / JetBrains-shape)
Ollama backend✓ live e2e on a real endpoint — streaming, tool journal, steer, image delivery
Session store — Linux✓ linux-arm64 k8s pod: lock contention, pause/resume, kill -9, manifest rollback, directory-swap write races
Session store — Windows✓ Windows 11 x64: LockFileEx contention, junction paths, 3000-write race with zero escapes, non-ASCII paths, taskkill → interrupted restore
Not yet verifiedUNC paths, Windows Ctrl+C console events, vision comprehension end-to-end, multi-process race injection, JetBrains real-client run, v0.10.0 candidate soak in production

Where it is going

0.10 shipped the first harness slice — bounded execution, tool policy, context management, durable sessions, Ollama native streaming, mid-turn steer. What comes next is whatever docs/scope.md lists as pending — this section is direction, not a schedule.

  • Native search & citations — bounded web search feeding source records (already persisted by web_fetch) into a checkable citation path.
  • Deeper workflow — multi-step durable workflows with richer interruption semantics, on top of the turn-intent markers and tool journal shipped in 0.10.
  • Factory-style orchestration — headless workers over a task board: reversible choices handled autonomously within the granted authority, hard-to-undo or out-of-scope decisions left to the user. A direction we're evaluating, not committed scope.

Latest release

v0.10.0
2026-11-26
Agent-harness hardening — bounded, observable, recoverable
The adapter grows into an agent loop: bounded tool rounds with honest partial status, capability tool policy + path deny globs, token-budgeted context with summaries and tool-output artifacts, flock-owned session snapshots with crash markers and a tool journal, Ollama native streaming, mid-turn steer, and cancel/timeout control. ACP v1/v2 wire-compatible; single Rust executable.
v0.9.2
2026-10-06
Thinking-model tool-call recovery
Reasoning models (DeepSeek-R1, Qwen 2.5/3, GLM) sometimes emit tool-call JSON inside the content channel instead of the structured tool_calls field — the agent stalled on such rounds. acp-bridge now strips think-tag scaffolding and recovers embedded tool-call JSON (fenced or bare) into the normal tool dispatch. 185 tests passing.
v0.9.1
2026-10-03
v2 wire-shape blockers + sandbox hardening
Three v2 schema violations caught by code review of the 0.9.0 release, plus five pre-existing bugs and a stale-docs sweep. acp-bridge now also implements v2 baseline session/close and session/list, Ollama native tool.arguments object handling, and web_fetch redirect re-validation. 171 tests passing.
v0.9.0
2026-10-02
ACP v1 / v2 dual wire format
Negotiate protocolVersion at init; emit v1 or v2 wire shape accordingly. Same code base, dispatch by version.

Articles

0.9.0 — ACP v1 / v2 dual wire format

v2 wire shape diff, negotiation rules, code review prompt for LLMs.

Strata — run a 125B model on your own PC

Hands-on guide: install, drive, and wire a 125B local model into Zed as a coding agent via acp-bridge.

docs/scope.md

Source-of-truth capability matrix. What acp-bridge does, what it does with caveats, and what it deliberately does not.