Skip to main content

acppool

acppool lets a Python application give work to coding agents through the Agent Client Protocol (ACP). Your app owns the tasks. A separate supervisor runs the agents, keeps active turns going when your app restarts, and forwards questions and permission requests to your users. Optional React components put a Give to worker button and the worker’s conversation on your existing board.

A worker receives a task, writes hello.py, and waits for permission to run it

Quickstart

Try the terminal board with Python 3.10+ on macOS or Linux. The included fake agent runs locally with just the Python standard library.

In your shell, clone the repository and start the board.

git clone https://github.com/lunochkin/acppool.git
cd acppool
python3 examples/board.py

At the board’s > prompt, start a worker named Ada and give it a job.

join fake /tmp ada
give ada hello

Look for this line in the output from the worker.

ada · echo:hello

Press Ctrl-D to leave. Run python3 examples/board.py again and enter who to see Ada. The board stores its state in examples/.board. Its supervisor keeps running when you close the board. If the supervisor itself restarts, it tries to recover each session and marks an active turn as interrupted. The default app leaves that job open for a person to continue.

Try the browser board

From the repository root, use Node.js and npm to build the example page and start its Python server.

(cd examples/web && npm ci && npm run build)
python3 examples/web/server.py

Open the local board, add a task, and give it to Ada. The browser and terminal examples share workers. On a fresh board, choose Add a worker, select Fake agent (echoes), and click Start it.

Install and version compatibility

To use the Python library in your application, install it in your Python environment.

python3 -m pip install acppool

When upgrading from 0.2.0 to 0.3.0, update the board and supervisor together. Pass the displayed question ID as the fourth argument to control.answer and pool.answer so the board can reject stale answers. v0.2.0 README

The Python library has no third-party runtime dependencies. Each real agent needs its own runtime and credentials. The optional React components are TypeScript source that you link into your frontend build. UI setup

Supported agents

Agent How to connect it During a turn Session recovery
Claude Code Claude ACP adapter Send a message Resume
Codex Codex ACP adapter Send a message Resume
Other ACP agents, including Goose Register the agent command with supervisor.Kind Steering if the adapter offers it Resume or load if supported

Each Claude Code or Codex worker can have its own model and effort. Pass settings={"model": ..., "effort": ...} to start, or change them between turns with the settings command; an empty value returns to the adapter's default. The choices apply only to the worker's sessions, never to the agent's own configuration, and the supervisor sets them again on every new session. The values the adapter offers, and the current ones, are in the worker's choices in client.agents. For another agent, map these names to its session config options with Kind(settings=...).

Try Claude Code

With Claude Code signed in and Node.js installed, run these shell commands from the repository root. The example creates a dedicated working folder for Claude.

(cd examples/acp && npm install)
mkdir -p /tmp/acppool-claude-demo
python3 examples/board.py

At the board prompt, use a different worker name from the fake-agent demo.

join claude /tmp/acppool-claude-demo cleo
give cleo Use the ask tool to ask me which language to use, then write hello.py in that language.

The board prints the numbered answer command when Cleo asks. acppool forwards the permission requests the adapter issues. The example Claude configuration pre-allows Bash, Write, and Edit, so those tools can run without a prompt. Example tool policy

Integrate with your app

React page → your routes → Python app → Unix socket → supervisor → ACP adapter → agent
                              │                          │
                         jobs and queues            session event logs

Supervisor process. Run the supervisor separately from your app. From the repository root, the following starts the example configuration with its fake and Claude adapters and its MCP tools. If you ran the quickstart, its supervisor is already running and you can go straight to the application block.

python3 examples/agentd.py

Application process. In another shell at the repository root, use the example’s socket client to start a worker and give it one job. The default push.App uses the job’s name as its prompt and finishes the job after a successful turn. The final line keeps the delivery loop running. In your application, run that loop in a background thread.

PYTHONPATH=examples python3 - <<'PY'
from acppool import control, pool, push
from agentd import DB
from board import Supervisor

rpc = Supervisor()
store = pool.SqliteStore(DB)
app = push.App(store, rpc)
worker = pool.join(store, set(rpc.agents()), "/tmp", "fake")
rpc.call("start", name=worker, agent="fake", cwd="/tmp")
control.give(app, worker, {"kind": "task", "name": "hello"})
print(f"Gave hello to {worker}", flush=True)
push.run(lambda: app)
PY

Use Ctrl-C to stop this application loop. For a complete integration, see how the web board translates a task ID into a brief and connects React actions to the Python controls. Example backend · React bindings · Board integration guide

Help and contributing

Maksim Lunochkin maintains acppool. For a bug report, include your Python version, operating system, agent and adapter, and the smallest steps that reproduce the problem. Open an issue

To check a change, run the Python suite from the repository root. It uses a miniature ACP agent and temporary directories. CI also checks lint, Python types, and the example frontend on pull requests. CI workflow

python3 -m unittest discover -s acppool/tests -t .

License

MIT

Metadata

Release files for acppool 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acppool 0.4.0
File Size Uploaded Provenance Actions
acppool-0.4.0.tar.gz 29.3 MB Without provenance Details for acppool-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for acppool 0.4.0
File Interpreter ABI Platform Actions
acppool-0.4.0-py3-none-any.whl Python 3 none any Details for acppool-0.4.0-py3-none-any.whl

Total release size: 29.4 MB

Release files / acppool-0.4.0.tar.gz

Download URL acppool-0.4.0.tar.gz
Size 29.3 MB
Tags Source
SHA-256 checksum
How to use checksums
8400db9e89748395dd9e386fd353a9ce0a6f8d6242ba5b9edbb41523614b8c67
BLAKE2b-256 checksum
How to use checksums
34f750318b8b25fec2113c860cd6c63218f21ede4c8faa98cbf376177cf27f03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / acppool-0.4.0-py3-none-any.whl

Download URL acppool-0.4.0-py3-none-any.whl
Size 79.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5286970b37c2ec5e1cec1f84e54f5a91e0a5d280275fd23e111f1ac6e65274e5
BLAKE2b-256 checksum
How to use checksums
b38b112029fe2295f9fe01e5f418e21e79bf1aa4993ed5ff3144473bd1ad1caf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for acppool 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page