agentos-provider-acp
AgentOS executor that runs one Agent Client Protocol
agent turn as one governed step. kiro-cli acp by default; any ACP agent (Gemini CLI,
Claude Code through its ACP adapter, a Zed-compatible agent, your own) by setting one
variable. Standard library only: ACP is newline-delimited JSON-RPC 2.0 over the agent's
stdio.
This is the fifth provider and the third inner harness. The first two (openai-agents,
pydantic-ai) wrap an agent SDK inside the worker process; this one wraps an agent
program — a whole coding agent with its own tools, login and model — and makes it a step
in a declared DAG. It is how AgentOS runs the agent a personal-workspace product like Kiro
Crew runs, under AgentOS's ledger and authority instead of a chat window.
pip install -e . -e providers/acp # from the AgentOS checkout
kiro-cli login # the agent needs its own credentials; the worker inherits them
What the step records
One step.completed per turn, in the hash-chained log:
| field | from |
|---|---|
output.text |
every agent_message_chunk, concatenated |
output.stop_reason |
the session/prompt result (end_turn; anything else is a BadResponse) |
output.tool_calls[] |
every tool_call / tool_call_update: call_id, title, kind, status, effect_class, raw_input_sha256, raw_output_sha256, and permission when the agent asked |
output.usage |
the last usage_update (context tokens used / window), when the agent sends one |
output.plan |
the agent's last plan, when it sends one |
cost |
meters tool_calls and context_tokens_used; amount from the agent's usage_update.cost when present, else 0 |
effects |
compute, plus one per effect class of tool the agent actually ran |
provenance.model_id |
the agent's advertised agentInfo.name (e.g. Kiro CLI Agent) |
Payloads are never inlined — arguments and outputs are recorded by SHA-256, the same discipline as the other harnesses.
The governance seam
An ACP agent asks its client for permission before sensitive tools
(session/request_permission). In an editor the client is a human clicking Allow. Here the
client is AgentOS, and the answer comes from the step's declaration:
ACP tool kind |
reported as | permission if declared | if not declared |
|---|---|---|---|
read, search, fetch |
read |
allow once | reject |
think, switch_mode |
compute |
allow once | reject |
edit, delete, move, execute, other, unknown |
execute_code |
allow once | reject |
allow_alwaysis never selected: a grant belongs to one governed step, not to the agent's memory. If the agent offers onlyallow_always, the request is rejected.- A tool the agent runs without asking (its own trust settings) is reported by class
anyway. Under a step declared
[compute, read], an unaskededitproducesstep.dead_lettered: step reported undeclared effect 'execute_code'— the governor refuses it after the fact rather than the log pretending it did not happen. - A rejected request never ran, so it is recorded as
permission: rejectedbut is not an effect; the step stays within its declaration. - The client advertises no
fsorterminalcapability. AgentOS lends the agent nothing of its own; the agent uses its own tools incwd.
So the human who approved the step (for spend / write_external under the default
budget) or the operator who wrote the declaration already made every permission decision
the agent will ask for. Do not pass --trust-all-tools to kiro-cli: that bypasses the
seam on the agent's side.
Agent definition
{"name": "fixer", "type": "llm", "executor": "acp",
"config": {"instructions": "You are working in a Python checkout. Make the smallest change that fixes the failing test.",
"prompt": "Failing test: {run.test}. Fix it and run it."},
"declared_effects": ["compute", "read", "execute_code"]}
instructions/system lead the prompt (ACP has no separate system slot on the wire; the
agent's own configuration owns its persona), then the DATA_BOUNDARY, then prompt rendered
with the inputs as delimited data (C12). model is ignored — the agent chooses its model.
Configuration
| variable | default | meaning |
|---|---|---|
AGENTOS_ACP_COMMAND |
["kiro-cli", "acp"] |
JSON list: the agent program and arguments |
AGENTOS_ACP_CWD |
worker's cwd | absolute path the session runs in (the agent's tools read and write here) |
AGENTOS_ACP_TIMEOUT |
600 |
seconds one turn may take before session/cancel + kill |
ConfigError names the variable. Nothing else in the environment is read; the agent process
inherits the worker's environment (that is how kiro-cli finds its login).
Quickstart (live)
uvicorn dagentos.api.main:app & # API
python -m dagentos.worker & # worker; kiro-cli must be logged in on this host
python scripts/quickstart_llm.py --executor acp --topic "event logs"
curl localhost:8000/executors | jq '.[] | select(.name=="acp") | .health'
health spawns the agent, runs initialize, and reports agentInfo and capabilities
(cached for 60 s, since a spawn costs seconds). Verified on 2026-09-28 against
kiro-cli 2.24.1: protocol v1, one compute-only turn in 13.6 s, end_turn, no process left.
Limits (honest)
- One process per step. kiro-cli takes ~5 s to start; a DAG of many tiny ACP steps pays it each time. Give ACP steps real work.
- No mid-step suspension. If the agent needs an approval AgentOS would gate (
spend), declare the class on the agent so the step is gated before dispatch. The executor cannot pause the agent halfway and resume it later (that needssession/load, ROADMAP ⏭). - Cost is what the agent reports. kiro-cli does not send
usage_updatetoday, socost.amountis0andcontext_tokens_usedisnull; the step is still metered bytool_calls. When the agent reports cost, it is carried as-is. - Sandboxing is the agent's. AgentOS gates which classes may run; it does not confine
the agent process. Run the worker as a user whose
cwdis a checkout you are prepared to let the agent modify.
Tests: providers/acp/tests/test_acp.py drives a real fake ACP agent
(tests/fake_acp_agent.py) over real stdio — no mocks of the transport. Set
AGENTOS_ACP_LIVE=1 with kiro-cli on PATH to add a live health check.
Metadata
Release files for agentos-provider-acp 0.18.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 |
|---|---|---|---|---|
| agentos_provider_acp-0.18.0.tar.gz | 22.9 kB | With provenance | Details for agentos_provider_acp-0.18.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentos_provider_acp-0.18.0-py3-none-any.whl | Python 3 | none | any | Details for agentos_provider_acp-0.18.0-py3-none-any.whl |
Total release size: 40.5 kB
Release files / agentos_provider_acp-0.18.0.tar.gz
| Download URL | agentos_provider_acp-0.18.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3bb77a3b05c7e19a787cb5a871e8a2fd02bde170b88db99f85f97d33f6a3ffa1
|
|
BLAKE2b-256 checksum How to use checksums |
e24fa1101b97a50a8bd431c5aef0fc43f22ed4d4eea2c47ce215a0737a0dc145
|
| 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 18, 2026.
Transparency logRelease files / agentos_provider_acp-0.18.0-py3-none-any.whl
| Download URL | agentos_provider_acp-0.18.0-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
016a2ac161d5549da15e58cd60c3f15c850020dde783154152b5d080e7d36504
|
|
BLAKE2b-256 checksum How to use checksums |
b14171414edf874b1fb047393f295cc7f94626b709fc8e57d4621e4dd74501d3
|
| 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 18, 2026.
Transparency logSecurity for agentos-provider-acp 0.18.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 agentos_provider_acp-0.18.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 18, 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.