mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-06-02 07:11:56 +00:00
Expose Agent Zero over the Agent Client Protocol as a builtin stdio plugin with session lifecycle support, streaming bridges, registry metadata, and editor workspace handling. Add lazy dependency installation through the ACP plugin hook using the root requirements pin so self-updated instances can recover without a fresh Docker image. Pin agent-client-protocol, add focused static coverage, and allow ACP sessions to override the per-context workdir for code execution and workdir prompts. |
||
|---|---|---|
| .. | ||
| acp_registry | ||
| extensions/python | ||
| helpers | ||
| webui | ||
| __init__.py | ||
| __main__.py | ||
| entry.py | ||
| hooks.py | ||
| plugin.yaml | ||
| README.md | ||
Agent Client Protocol
This builtin plugin exposes Agent Zero through the Agent Client Protocol (ACP) over stdio so ACP-capable editors can create, load, resume, and prompt Agent Zero sessions directly from a workspace.
Usage
From the Agent Zero repository or runtime container:
python -m plugins._acp
For the Dockerized Agent Zero runtime, point the editor command at the framework interpreter inside the container, for example:
docker exec -i agent-zero /opt/venv-a0/bin/python -m plugins._acp
ACP reserves stdout for JSON-RPC, so the adapter writes diagnostics to stderr.
Checks
python -m plugins._acp --check
python -m plugins._acp --registry
The ACP Python SDK is provided by agent-client-protocol.
Fresh Docker images install it through the root requirements.txt; self-updated
instances lazy-install the same root pin through plugins/_acp/hooks.py the
first time the ACP stdio entrypoint starts.