tau-acp
Lets an editor that speaks the Agent Client Protocol (ACP v1)
drive a τ session. The editor starts tau-acp and talks
to it over stdio. tau-acp starts one tau serve per ACP session, on τ's Unix socket, and
translates between the two. DESIGN.md is the contract.
Everything runs on one machine: tau-acp, the tau serve processes it starts, and the files
being edited.
Status: 0.1.0 release candidate, for τ 0.18
Works now:
-
initialize,session/new,session/prompt,session/cancel,session/load(with replay of the conversation),session/resume(without it),session/list(a project's sessions, titled by name or first message, newest first, no paging) andsession/close. -
A
modelconfig option, a select of τ's configured models: change it withsession/set_config_option, or with/model NAMEin a prompt (the editor is told). -
A
tau servethat dies fails the pending prompt with an error naming the session; the session stays dead untilsession/loadorsession/resumestarts it again. -
Streamed replies and thinking, tool calls with their results and live output, and τ's notices (each says which extension spoke and how loud:
[ext] warning: ...in the chat, or ACP'snoticeupdate for an editor that advertises it). -
Images in prompts: an image block goes to τ with the text, if the model takes images (τ refuses it otherwise, and you see why). A session's images come back when it is loaded.
-
Context use and cost: a
usage_updateafter each reply, for a model whosecontext_windowτ reports (models()), with the session's cost in USD when τ has a price for the model. -
Tool permissions: when τ asks (for example with a
permissions.askrule), the editor gets asession/request_permissionwith allow once / always allow / reject. The request always shows the question's own text, and names the tool call only when the text identifies exactly one. Any other question τ asks (an extension's yes/no, a text, a choice) goes to an editor that advertises ACP's form elicitation as a form with one field. For an editor that does not, or a question a form cannot ask (a list), it is declined with a line in the chat saying so. -
τ's slash commands (
/usage,/model NAME, ...) are advertised to the editor and run when typed. An unknown/wordgoes to the model as text. -
Closing stdin (or SIGTERM) stops every
tau serveit started and exits 0. -
MCP servers (stdio and http): the
mcpServersofsession/newandsession/loadare written to a privatemcp.jsonthat τ'smcpbuilt-in reads (TAU_MCP_CONFIG, withmcpturned on for that session), so their tools reach the model asmcp__<server>__<tool>, show in the editor like any τ tool and ask permission the same way. Keys and tokens in a server'senvorheadersgo to τ through its environment, not the file. A server that cannot start is skipped, and τ says so in an error notice; the session works without it.
Limits, by decision:
sseMCP servers are refused (τ does not support the transport).- No
fs/*orterminal/*client methods: τ's own tools work on the local files. - No audio prompts. An image a τ tool returns shows as a line,
[image WxH mime], after the result's text. - τ's
/new,/resumeand/forkare not tau-acp's: a new session is the editor'ssession/new. - Unstable ACP methods (
session/forkand others) are not supported. - Local only: tau-acp, its
tau serveprocesses and the files are on one machine, and there is no network transport. A session some other process serves is never attached to. session/loadorresumeof a session this connection already holds, with differentmcpServers, is refused: close it first.
Setup
pip install ffwf-tau-acp # brings ffwf-tau 0.18 (protocol 3)
τ needs a model: set default_model in its config ($TAU_HOME/config.json, default
~/.tau/config.json), because tau serve takes no model argument. If there is none, the
editor sees τ's error when it creates a session.
Zed
Zed runs it as a custom external agent. In settings.json (zed: open settings), as described in
Zed's external agents page:
{
"agent_servers": {
"tau": {
"type": "custom",
"command": "tau-acp",
"args": [],
"env": {}
}
}
}
Then pick it from the + menu of the agent panel. Zed needs tau-acp on its PATH: if you
installed it in a virtual environment, give the full path in command. To pass options to every
tau serve, put them in args after -- (below). Older Zed versions have no type key; leave
it out there.
Other editors
In the editor's agent configuration, the command is tau-acp with no arguments. To pass options
to every tau serve it starts, put them after --:
tau-acp -- --set 'permissions.ask=["bash","write","edit"]'
tau-acp -- -e /path/to/extension.py
tau-acp --version prints the version. Logs go to stderr; stdout carries only ACP messages.
How it behaves
- An ACP session is a τ session, and its
sessionIdis τ's session id. Itstau serveruns in the session'scwd. - A
tau servestops when tau-acp exits. The session's log stays on disk, sosession/loadcan come back to it. A session that never received a prompt is discarded by τ when its serve stops, so there is nothing to load. session/loadandsession/resumetake a session's full id. (τ accepts a prefix or a name on its own command line; the editor's key would then not be the session's, so it is-32002.)- tau-acp only stops a serve that is still the one it started: if a session's serve died and something else serves the id now, closing the session leaves that alone.
- If another process already serves a session,
session/loadfails with an error naming its pid and thetau serve --stop --session IDcommand. tau-acp never attaches to a serve it did not start. - A turn ends when τ's cursor rests. Stop reasons:
end_turn,max_tokensandrefusalfrom the last reply,cancelledaftersession/cancel. A failed or halted step is a JSON-RPC error (-32603) carrying τ's message. A prompt that was cancelled answerscancelledwhatever fails after the cancel. - Malformed input does not stop tau-acp: a bad response from the editor fails that one request, and a bad or over-long line from the editor or an MCP server is skipped and answered or failed (see DESIGN.md).
- A running tool's
in_progressupdates carry the last 65,536 characters of its output.
Development
python3.12 -m venv .venv
.venv/bin/pip install -U pip # pip >= 25.1 for --group
.venv/bin/pip install -e . --group dev
PATH=$PWD/.venv/bin:$PATH scripts/check.sh # ruff check, ruff format --check, radon (CC <= 15), pytest
The tests run real processes: python -m tau_acp spawning real tau serve processes on τ's
built-in mock provider, each test in its own temporary TAU_HOME, driven by the official ACP
Python SDK (agent-client-protocol, a dev dependency only) and by raw JSON-RPC lines.
tests/scripted.py is a τ extension that makes the mock "call" tools.
License
MIT; see LICENSE.
Metadata
Release files for ffwf-tau-acp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ffwf_tau_acp-0.1.0.tar.gz | 79.5 kB | With provenance | Details for ffwf_tau_acp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ffwf_tau_acp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ffwf_tau_acp-0.1.0-py3-none-any.whl |
Total release size: 119.9 kB
Release files / ffwf_tau_acp-0.1.0.tar.gz
| Download URL | ffwf_tau_acp-0.1.0.tar.gz |
|---|---|
| Size | 79.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbe391daf1d65d80acf229d0a0c00fcc9b589bf10c8e633e5b6a6c1190bdac33
|
|
BLAKE2b-256 checksum How to use checksums |
df7d26ad2929af505ce4aca186a7c372a188bf46914fb93fabfd0b0cd2b17634
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / ffwf_tau_acp-0.1.0-py3-none-any.whl
| Download URL | ffwf_tau_acp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ce45c9feee5f3bb819e8b774342aedd1df9cc5e0700839b1080f757389367f4
|
|
BLAKE2b-256 checksum How to use checksums |
564cfe9a36590ae6af65aec483165da3a6a8b0276d24d1bbf6b4140495bc19b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for ffwf-tau-acp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ffwf_tau_acp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.