a2acode 0.8.0__tar.gz → 0.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: a2acode
3
- Version: 0.8.0
3
+ Version: 0.9.1
4
4
  Summary: Serve Claude Code and other ACP coding agents over the A2A protocol.
5
5
  Keywords: a2a,acp,claude-code,agent,agent2agent
6
6
  Author: kanywst
7
7
  License-Expression: Apache-2.0
8
8
  Requires-Dist: a2a-sdk[http-server,signing]>=1.1,<2
9
- Requires-Dist: agent-client-protocol>=0.12,<1
9
+ Requires-Dist: agent-client-protocol>=0.12.1,<1
10
10
  Requires-Dist: uvicorn>=0.49
11
11
  Requires-Dist: httpx>=0.28
12
12
  Requires-Dist: typer>=0.26
@@ -14,7 +14,7 @@ Requires-Dist: claude-agent-sdk>=0.2.101 ; extra == 'claude'
14
14
  Requires-Dist: a2a-sdk[sqlite]>=1.1,<2 ; extra == 'persistence'
15
15
  Requires-Dist: a2a-sdk[telemetry]>=1.1,<2 ; extra == 'telemetry'
16
16
  Requires-Dist: opentelemetry-api>=1.33 ; extra == 'telemetry'
17
- Requires-Python: >=3.13
17
+ Requires-Python: >=3.11
18
18
  Project-URL: Repository, https://github.com/kanywst/a2acode
19
19
  Provides-Extra: claude
20
20
  Provides-Extra: persistence
@@ -25,15 +25,23 @@ Description-Content-Type: text/markdown
25
25
 
26
26
  # a2acode
27
27
 
28
- Serve a coding agent over the [A2A](https://a2aprotocol.ai/) protocol. Other agents call it over A2A; it drives a real coding-agent session in your project — Claude Code, or any agent that speaks Zed's [Agent Client Protocol](https://agentclientprotocol.com) (ACP): Gemini CLI, Codex, OpenHands, and more — and streams the work back as it happens.
28
+ Put Claude Code, Codex, Gemini CLI — any coding agent that speaks Zed's [Agent Client Protocol](https://agentclientprotocol.com) (ACP) — behind the [A2A](https://a2aprotocol.ai/) protocol, and keep what most adapters throw away: the tools it runs, the diffs it writes, the approvals it needs, and what it costs. Other agents discover it through its agent card, delegate coding work, and get the run streamed back as it happens — with every permission prompt routed to the caller as an A2A `input-required` pause.
29
29
 
30
30
  [![CI](https://github.com/kanywst/a2acode/actions/workflows/ci.yml/badge.svg)](https://github.com/kanywst/a2acode/actions/workflows/ci.yml)
31
31
  [![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
32
- [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/)
32
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/)
33
33
  [![Protocol: A2A 1.0](https://img.shields.io/badge/protocol-A2A%201.0-D97757.svg)](https://a2aprotocol.ai/)
34
34
 
35
35
  ![a2acode streaming a task, then pausing on a permission prompt](assets/demo.gif)
36
36
 
37
+ Try it in ten seconds, no clone and no API key (the `echo` backend mirrors the prompt):
38
+
39
+ ```bash
40
+ uvx a2acode serve --backend echo &
41
+ # once the "Uvicorn running" line appears:
42
+ uvx a2acode call "fix the failing test"
43
+ ```
44
+
37
45
  Most adapters that put a coding agent behind A2A flatten everything to text in, text out. a2acode keeps the structure the agent produces: the tools it runs, the files it changes, what it costs, the approvals it needs, and how to continue on the next turn. It bridges two Linux Foundation interop standards — **ACP** (how editors and clients talk to coding agents) on the agent side, **A2A** (how agents delegate to each other) on the caller side — so any ACP agent becomes a peer any A2A orchestrator can call.
38
46
 
39
47
  ## How it maps to A2A
@@ -66,7 +74,7 @@ ACP already standardizes the editor↔agent side and a dozen agents speak it; a2
66
74
 
67
75
  ## Requirements
68
76
 
69
- - Python 3.13+
77
+ - Python 3.11+
70
78
  - [uv](https://docs.astral.sh/uv/)
71
79
  - An ACP agent adapter for the `acp` backend, launched as a subprocess. Every preset launches one with `npx`, so Node is the only prerequisite besides that agent's own credential:
72
80
 
@@ -82,18 +90,12 @@ Or point `--agent-command` at any other ACP agent.
82
90
 
83
91
  ## Quick start
84
92
 
85
- Install:
86
-
87
- ```bash
88
- uv sync
89
- ```
90
-
91
- The `echo` backend needs no API key and no Claude install, so you can exercise the whole path offline first:
93
+ a2acode is on PyPI, so [`uvx`](https://docs.astral.sh/uv/guides/tools/) runs it without a clone or an install step (`uv tool install a2acode` or `pipx install a2acode` keep it around). The `echo` backend needs no API key and no Claude install, so you can exercise the whole path offline first:
92
94
 
93
95
  ```bash
94
- uv run a2acode serve --backend echo &
96
+ uvx a2acode serve --backend echo &
95
97
  # once the "Uvicorn running" line appears:
96
- uv run a2acode call "fix the failing test"
98
+ uvx a2acode call "fix the failing test"
97
99
  ```
98
100
 
99
101
  ```text
@@ -101,6 +103,7 @@ task 189b1c63-1a7b-4908-87c4-c8f3bba8f6b5
101
103
  context 0b2a901e-2b6f-4c56-bba2-d0da546936e9
102
104
 
103
105
  · Echo
106
+ · ✓ Echo
104
107
  fix the failing test
105
108
  [completed] $0.0 · 1 turns
106
109
  ```
@@ -108,21 +111,21 @@ fix the failing test
108
111
  Then point it at a real project. The default backend is `acp`, fronting Claude Code through its ACP adapter:
109
112
 
110
113
  ```bash
111
- uv run a2acode serve --cwd /path/to/project # acp + claude by default
112
- uv run a2acode call "add a /health endpoint" --url http://localhost:9100/
114
+ uvx a2acode serve --cwd /path/to/project # acp + claude by default
115
+ uvx a2acode call "add a /health endpoint" --url http://localhost:9100/
113
116
  ```
114
117
 
115
118
  Swap the agent without touching anything else:
116
119
 
117
120
  ```bash
118
- uv run a2acode serve --agent gemini --cwd /path/to/project
119
- uv run a2acode serve --agent-command "npx -y some-other-acp-agent"
121
+ uvx a2acode serve --agent gemini --cwd /path/to/project
122
+ uvx a2acode serve --agent-command "npx -y some-other-acp-agent"
120
123
  ```
121
124
 
122
125
  Continue the same conversation by passing the `context` from a previous turn:
123
126
 
124
127
  ```bash
125
- uv run a2acode call "now add a test for it" --context <context-id>
128
+ uvx a2acode call "now add a test for it" --context <context-id>
126
129
  ```
127
130
 
128
131
  Continuity needs the agent to support ACP's `session/load`. When it does not, the turn still runs, but on a fresh session — and the task says so in a status update rather than answering as if it remembered.
@@ -131,7 +134,7 @@ Continuity needs the agent to support ACP's `session/load`. When it does not, th
131
134
 
132
135
  Every release publishes a `linux/amd64` and `linux/arm64` image to GHCR, holding the same wheel as the PyPI release with all three extras installed — so which backend and which task store it runs is a flag, not a rebuild. It runs as a non-root user and works in your project by way of whatever you mount over `/workspace`.
133
136
 
134
- A container has to listen on every interface to be reachable at all, so the default command binds `0.0.0.0` where the `uv run` quick start binds loopback. That makes *where you publish the port* the boundary: whoever reaches it can run a coding agent in your workspace. Publish it to your own loopback while you try it out —
137
+ A container has to listen on every interface to be reachable at all, so the default command binds `0.0.0.0` where the `uvx` quick start binds loopback. That makes *where you publish the port* the boundary: whoever reaches it can run a coding agent in your workspace. Publish it to your own loopback while you try it out —
135
138
 
136
139
  ```bash
137
140
  docker run --rm -p 127.0.0.1:9100:9100 \
@@ -175,7 +178,7 @@ An A2A message is not only text. A caller can attach the failing log, the patch
175
178
  A backend turns a prompt into a stream of normalized events. Three ship today:
176
179
 
177
180
  - `acp` (default): drives any agent that speaks Zed's Agent Client Protocol as a subprocess. `--agent claude|gemini|codex` selects a launch preset; `--agent-command` drives any other ACP agent. This is the vendor-neutral path. The subprocess is kept alive per conversation, so a follow-up turn skips the process launch, the ACP handshake, and the session reload and talks straight to the agent that already holds the conversation.
178
- - `claude`: drives Claude Code directly through the Claude Agent SDK, no subprocess. Install with `uv sync --extra claude`. Use it when you want the SDK-native path (e.g. `--max-budget-usd`) rather than ACP.
181
+ - `claude`: drives Claude Code directly through the Claude Agent SDK, no subprocess. Install with `uv tool install 'a2acode[claude]'` (or `uv sync --extra claude` from a clone). Use it when you want the SDK-native path (e.g. `--max-budget-usd`) rather than ACP.
179
182
  - `echo`: no dependencies, mirrors the input. For wiring checks and tests.
180
183
 
181
184
  The split keeps the A2A layer independent of how the agent is invoked: backends emit normalized events and never import `a2a.*`; the executor maps those events onto the protocol and never imports an agent SDK. Adding a backend never touches the server or the protocol mapping.
@@ -189,7 +192,7 @@ Each agent authenticates the way its own tooling does, inherited from the server
189
192
  A caller that discovers this server only has the agent card to go on. Sign it so the caller can confirm the card came from you and was not swapped in transit:
190
193
 
191
194
  ```bash
192
- uv run a2acode serve --sign-key card-signing.pem --sign-kid my-key-1 --sign-alg ES256
195
+ uvx a2acode serve --sign-key card-signing.pem --sign-kid my-key-1 --sign-alg ES256
193
196
  ```
194
197
 
195
198
  The card is then served with a JWS signature over its canonical form. `--sign-key` is a path to a file holding the key: a PEM private key for asymmetric algorithms (`ES256`, `RS256`), or a shared secret for `HS256`. `--sign-kid` is the key id a verifier uses to look up the matching public key. Unsigned is still the default.
@@ -199,7 +202,7 @@ The card is then served with a JWS signature over its canonical form. `--sign-ke
199
202
  A signed card proves who the server is; this proves the caller is allowed in. Require a bearer token and the server rejects any task request that does not carry it:
200
203
 
201
204
  ```bash
202
- uv run a2acode serve --auth-token-file caller-token.txt
205
+ uvx a2acode serve --auth-token-file caller-token.txt
203
206
  ```
204
207
 
205
208
  When `--auth-token-file` is set, callers must send `Authorization: Bearer <token>`; a request without a valid token gets `401 Unauthorized`. The agent card stays public so a caller can still fetch it to discover the requirement, and the card advertises the bearer scheme in `securitySchemes`. Without the flag the server stays open, as before.
@@ -211,10 +214,10 @@ A2A keeps the credential at the HTTP layer, so this composes with whatever your
211
214
  A tool that needs approval pauses the task in the A2A `input-required` state instead of being skipped. The caller answers with a follow-up message on the same task:
212
215
 
213
216
  ```bash
214
- uv run a2acode call "sudo reboot"
217
+ uvx a2acode call "sudo reboot"
215
218
  # ... [input-required] Permission requested for Bash: $ sudo reboot
216
219
  # reply: a2acode call "allow" --task <id> --context <id> --request <id>
217
- uv run a2acode call "allow" --task <id> --context <id> --request <id>
220
+ uvx a2acode call "allow" --task <id> --context <id> --request <id>
218
221
  ```
219
222
 
220
223
  An answer of `allow`, `yes`, `y`, `ok`, `approve`, `accept`, or `grant` — the whole answer, nothing around it — approves. Anything else denies, which is what makes it safe to answer in prose. The agent session stays alive across the pause, so it resumes exactly where it stopped. Over ACP this is the agent's `session/request_permission` call answered from the A2A caller's reply; with the `claude` backend it routes through the Claude SDK's `can_use_tool`.
@@ -226,12 +229,12 @@ Some gates are not yes/no. Claude Code's end-of-plan gate offers three choices
226
229
  Not every gate is a request to act. When Claude has a clarifying question it calls `AskUserQuestion`, which asks and does nothing else, so approving it says nothing on its own — the answer is the outcome. The pause carries the questions and their choices, and the reply's metadata carries what was picked, keyed by question:
227
230
 
228
231
  ```bash
229
- uv run a2acode call "port the tests" --url http://localhost:9100/
232
+ uvx a2acode call "port the tests" --url http://localhost:9100/
230
233
  # ... [input-required] Permission requested for AskUserQuestion: ...
231
234
  # Which test runner? [Runner]
232
235
  # pytest: what the repo uses
233
236
  # unittest: stdlib only
234
- uv run a2acode call "allow" --task <id> --context <id> --request <id> \
237
+ uvx a2acode call "allow" --task <id> --context <id> --request <id> \
235
238
  --answer "Which test runner?=pytest"
236
239
  ```
237
240
 
@@ -252,8 +255,7 @@ The agent card advertises push notifications. A caller can register a webhook fo
252
255
  Tasks live in memory by default, so a restart loses their history and any webhook registrations. Point `--task-db` at a database to keep them:
253
256
 
254
257
  ```bash
255
- uv sync --extra persistence
256
- uv run a2acode serve --task-db "sqlite+aiosqlite:///a2acode.db"
258
+ uvx --from 'a2acode[persistence]' a2acode serve --task-db "sqlite+aiosqlite:///a2acode.db"
257
259
  ```
258
260
 
259
261
  Any SQLAlchemy async DSN works; the extra ships the SQLite driver because it needs no server. What survives is task history, artifacts, and push registrations — **not** a live agent session, which is a process and dies with the server either way, so a task paused on a permission cannot be answered after a restart.
@@ -263,7 +265,7 @@ Any SQLAlchemy async DSN works; the extra ships the SQLite driver because it nee
263
265
  Debugging one agent is hard; debugging a chain of them without traces is worse. Because A2A runs over HTTP, it drops straight into OpenTelemetry: install the extra and the A2A SDK's instrumentation plus a per-task `a2acode.execute` span light up, with W3C trace context propagating across the call so client and server spans share one trace.
264
266
 
265
267
  ```bash
266
- uv sync --extra telemetry
268
+ uv tool install 'a2acode[telemetry]' # or: uv sync --extra telemetry
267
269
  ```
268
270
 
269
271
  Tracing is off unless OpenTelemetry is installed, and you configure the exporter the standard way (e.g. `OTEL_EXPORTER_OTLP_ENDPOINT`, or run under `opentelemetry-instrument`). It works against an on-prem or air-gapped collector, so traces never have to leave your network.
@@ -278,7 +280,7 @@ uv run mypy
278
280
  uv run pytest
279
281
  ```
280
282
 
281
- CI runs these on Python 3.13 and 3.14, plus a Markdown lint, on every push and pull request.
283
+ CI runs these on Python 3.11 through 3.14, plus a Markdown lint, on every push and pull request.
282
284
 
283
285
  ## Releasing
284
286
 
@@ -2,15 +2,23 @@
2
2
 
3
3
  # a2acode
4
4
 
5
- Serve a coding agent over the [A2A](https://a2aprotocol.ai/) protocol. Other agents call it over A2A; it drives a real coding-agent session in your project — Claude Code, or any agent that speaks Zed's [Agent Client Protocol](https://agentclientprotocol.com) (ACP): Gemini CLI, Codex, OpenHands, and more — and streams the work back as it happens.
5
+ Put Claude Code, Codex, Gemini CLI — any coding agent that speaks Zed's [Agent Client Protocol](https://agentclientprotocol.com) (ACP) — behind the [A2A](https://a2aprotocol.ai/) protocol, and keep what most adapters throw away: the tools it runs, the diffs it writes, the approvals it needs, and what it costs. Other agents discover it through its agent card, delegate coding work, and get the run streamed back as it happens — with every permission prompt routed to the caller as an A2A `input-required` pause.
6
6
 
7
7
  [![CI](https://github.com/kanywst/a2acode/actions/workflows/ci.yml/badge.svg)](https://github.com/kanywst/a2acode/actions/workflows/ci.yml)
8
8
  [![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
9
- [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/)
9
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/)
10
10
  [![Protocol: A2A 1.0](https://img.shields.io/badge/protocol-A2A%201.0-D97757.svg)](https://a2aprotocol.ai/)
11
11
 
12
12
  ![a2acode streaming a task, then pausing on a permission prompt](assets/demo.gif)
13
13
 
14
+ Try it in ten seconds, no clone and no API key (the `echo` backend mirrors the prompt):
15
+
16
+ ```bash
17
+ uvx a2acode serve --backend echo &
18
+ # once the "Uvicorn running" line appears:
19
+ uvx a2acode call "fix the failing test"
20
+ ```
21
+
14
22
  Most adapters that put a coding agent behind A2A flatten everything to text in, text out. a2acode keeps the structure the agent produces: the tools it runs, the files it changes, what it costs, the approvals it needs, and how to continue on the next turn. It bridges two Linux Foundation interop standards — **ACP** (how editors and clients talk to coding agents) on the agent side, **A2A** (how agents delegate to each other) on the caller side — so any ACP agent becomes a peer any A2A orchestrator can call.
15
23
 
16
24
  ## How it maps to A2A
@@ -43,7 +51,7 @@ ACP already standardizes the editor↔agent side and a dozen agents speak it; a2
43
51
 
44
52
  ## Requirements
45
53
 
46
- - Python 3.13+
54
+ - Python 3.11+
47
55
  - [uv](https://docs.astral.sh/uv/)
48
56
  - An ACP agent adapter for the `acp` backend, launched as a subprocess. Every preset launches one with `npx`, so Node is the only prerequisite besides that agent's own credential:
49
57
 
@@ -59,18 +67,12 @@ Or point `--agent-command` at any other ACP agent.
59
67
 
60
68
  ## Quick start
61
69
 
62
- Install:
63
-
64
- ```bash
65
- uv sync
66
- ```
67
-
68
- The `echo` backend needs no API key and no Claude install, so you can exercise the whole path offline first:
70
+ a2acode is on PyPI, so [`uvx`](https://docs.astral.sh/uv/guides/tools/) runs it without a clone or an install step (`uv tool install a2acode` or `pipx install a2acode` keep it around). The `echo` backend needs no API key and no Claude install, so you can exercise the whole path offline first:
69
71
 
70
72
  ```bash
71
- uv run a2acode serve --backend echo &
73
+ uvx a2acode serve --backend echo &
72
74
  # once the "Uvicorn running" line appears:
73
- uv run a2acode call "fix the failing test"
75
+ uvx a2acode call "fix the failing test"
74
76
  ```
75
77
 
76
78
  ```text
@@ -78,6 +80,7 @@ task 189b1c63-1a7b-4908-87c4-c8f3bba8f6b5
78
80
  context 0b2a901e-2b6f-4c56-bba2-d0da546936e9
79
81
 
80
82
  · Echo
83
+ · ✓ Echo
81
84
  fix the failing test
82
85
  [completed] $0.0 · 1 turns
83
86
  ```
@@ -85,21 +88,21 @@ fix the failing test
85
88
  Then point it at a real project. The default backend is `acp`, fronting Claude Code through its ACP adapter:
86
89
 
87
90
  ```bash
88
- uv run a2acode serve --cwd /path/to/project # acp + claude by default
89
- uv run a2acode call "add a /health endpoint" --url http://localhost:9100/
91
+ uvx a2acode serve --cwd /path/to/project # acp + claude by default
92
+ uvx a2acode call "add a /health endpoint" --url http://localhost:9100/
90
93
  ```
91
94
 
92
95
  Swap the agent without touching anything else:
93
96
 
94
97
  ```bash
95
- uv run a2acode serve --agent gemini --cwd /path/to/project
96
- uv run a2acode serve --agent-command "npx -y some-other-acp-agent"
98
+ uvx a2acode serve --agent gemini --cwd /path/to/project
99
+ uvx a2acode serve --agent-command "npx -y some-other-acp-agent"
97
100
  ```
98
101
 
99
102
  Continue the same conversation by passing the `context` from a previous turn:
100
103
 
101
104
  ```bash
102
- uv run a2acode call "now add a test for it" --context <context-id>
105
+ uvx a2acode call "now add a test for it" --context <context-id>
103
106
  ```
104
107
 
105
108
  Continuity needs the agent to support ACP's `session/load`. When it does not, the turn still runs, but on a fresh session — and the task says so in a status update rather than answering as if it remembered.
@@ -108,7 +111,7 @@ Continuity needs the agent to support ACP's `session/load`. When it does not, th
108
111
 
109
112
  Every release publishes a `linux/amd64` and `linux/arm64` image to GHCR, holding the same wheel as the PyPI release with all three extras installed — so which backend and which task store it runs is a flag, not a rebuild. It runs as a non-root user and works in your project by way of whatever you mount over `/workspace`.
110
113
 
111
- A container has to listen on every interface to be reachable at all, so the default command binds `0.0.0.0` where the `uv run` quick start binds loopback. That makes *where you publish the port* the boundary: whoever reaches it can run a coding agent in your workspace. Publish it to your own loopback while you try it out —
114
+ A container has to listen on every interface to be reachable at all, so the default command binds `0.0.0.0` where the `uvx` quick start binds loopback. That makes *where you publish the port* the boundary: whoever reaches it can run a coding agent in your workspace. Publish it to your own loopback while you try it out —
112
115
 
113
116
  ```bash
114
117
  docker run --rm -p 127.0.0.1:9100:9100 \
@@ -152,7 +155,7 @@ An A2A message is not only text. A caller can attach the failing log, the patch
152
155
  A backend turns a prompt into a stream of normalized events. Three ship today:
153
156
 
154
157
  - `acp` (default): drives any agent that speaks Zed's Agent Client Protocol as a subprocess. `--agent claude|gemini|codex` selects a launch preset; `--agent-command` drives any other ACP agent. This is the vendor-neutral path. The subprocess is kept alive per conversation, so a follow-up turn skips the process launch, the ACP handshake, and the session reload and talks straight to the agent that already holds the conversation.
155
- - `claude`: drives Claude Code directly through the Claude Agent SDK, no subprocess. Install with `uv sync --extra claude`. Use it when you want the SDK-native path (e.g. `--max-budget-usd`) rather than ACP.
158
+ - `claude`: drives Claude Code directly through the Claude Agent SDK, no subprocess. Install with `uv tool install 'a2acode[claude]'` (or `uv sync --extra claude` from a clone). Use it when you want the SDK-native path (e.g. `--max-budget-usd`) rather than ACP.
156
159
  - `echo`: no dependencies, mirrors the input. For wiring checks and tests.
157
160
 
158
161
  The split keeps the A2A layer independent of how the agent is invoked: backends emit normalized events and never import `a2a.*`; the executor maps those events onto the protocol and never imports an agent SDK. Adding a backend never touches the server or the protocol mapping.
@@ -166,7 +169,7 @@ Each agent authenticates the way its own tooling does, inherited from the server
166
169
  A caller that discovers this server only has the agent card to go on. Sign it so the caller can confirm the card came from you and was not swapped in transit:
167
170
 
168
171
  ```bash
169
- uv run a2acode serve --sign-key card-signing.pem --sign-kid my-key-1 --sign-alg ES256
172
+ uvx a2acode serve --sign-key card-signing.pem --sign-kid my-key-1 --sign-alg ES256
170
173
  ```
171
174
 
172
175
  The card is then served with a JWS signature over its canonical form. `--sign-key` is a path to a file holding the key: a PEM private key for asymmetric algorithms (`ES256`, `RS256`), or a shared secret for `HS256`. `--sign-kid` is the key id a verifier uses to look up the matching public key. Unsigned is still the default.
@@ -176,7 +179,7 @@ The card is then served with a JWS signature over its canonical form. `--sign-ke
176
179
  A signed card proves who the server is; this proves the caller is allowed in. Require a bearer token and the server rejects any task request that does not carry it:
177
180
 
178
181
  ```bash
179
- uv run a2acode serve --auth-token-file caller-token.txt
182
+ uvx a2acode serve --auth-token-file caller-token.txt
180
183
  ```
181
184
 
182
185
  When `--auth-token-file` is set, callers must send `Authorization: Bearer <token>`; a request without a valid token gets `401 Unauthorized`. The agent card stays public so a caller can still fetch it to discover the requirement, and the card advertises the bearer scheme in `securitySchemes`. Without the flag the server stays open, as before.
@@ -188,10 +191,10 @@ A2A keeps the credential at the HTTP layer, so this composes with whatever your
188
191
  A tool that needs approval pauses the task in the A2A `input-required` state instead of being skipped. The caller answers with a follow-up message on the same task:
189
192
 
190
193
  ```bash
191
- uv run a2acode call "sudo reboot"
194
+ uvx a2acode call "sudo reboot"
192
195
  # ... [input-required] Permission requested for Bash: $ sudo reboot
193
196
  # reply: a2acode call "allow" --task <id> --context <id> --request <id>
194
- uv run a2acode call "allow" --task <id> --context <id> --request <id>
197
+ uvx a2acode call "allow" --task <id> --context <id> --request <id>
195
198
  ```
196
199
 
197
200
  An answer of `allow`, `yes`, `y`, `ok`, `approve`, `accept`, or `grant` — the whole answer, nothing around it — approves. Anything else denies, which is what makes it safe to answer in prose. The agent session stays alive across the pause, so it resumes exactly where it stopped. Over ACP this is the agent's `session/request_permission` call answered from the A2A caller's reply; with the `claude` backend it routes through the Claude SDK's `can_use_tool`.
@@ -203,12 +206,12 @@ Some gates are not yes/no. Claude Code's end-of-plan gate offers three choices
203
206
  Not every gate is a request to act. When Claude has a clarifying question it calls `AskUserQuestion`, which asks and does nothing else, so approving it says nothing on its own — the answer is the outcome. The pause carries the questions and their choices, and the reply's metadata carries what was picked, keyed by question:
204
207
 
205
208
  ```bash
206
- uv run a2acode call "port the tests" --url http://localhost:9100/
209
+ uvx a2acode call "port the tests" --url http://localhost:9100/
207
210
  # ... [input-required] Permission requested for AskUserQuestion: ...
208
211
  # Which test runner? [Runner]
209
212
  # pytest: what the repo uses
210
213
  # unittest: stdlib only
211
- uv run a2acode call "allow" --task <id> --context <id> --request <id> \
214
+ uvx a2acode call "allow" --task <id> --context <id> --request <id> \
212
215
  --answer "Which test runner?=pytest"
213
216
  ```
214
217
 
@@ -229,8 +232,7 @@ The agent card advertises push notifications. A caller can register a webhook fo
229
232
  Tasks live in memory by default, so a restart loses their history and any webhook registrations. Point `--task-db` at a database to keep them:
230
233
 
231
234
  ```bash
232
- uv sync --extra persistence
233
- uv run a2acode serve --task-db "sqlite+aiosqlite:///a2acode.db"
235
+ uvx --from 'a2acode[persistence]' a2acode serve --task-db "sqlite+aiosqlite:///a2acode.db"
234
236
  ```
235
237
 
236
238
  Any SQLAlchemy async DSN works; the extra ships the SQLite driver because it needs no server. What survives is task history, artifacts, and push registrations — **not** a live agent session, which is a process and dies with the server either way, so a task paused on a permission cannot be answered after a restart.
@@ -240,7 +242,7 @@ Any SQLAlchemy async DSN works; the extra ships the SQLite driver because it nee
240
242
  Debugging one agent is hard; debugging a chain of them without traces is worse. Because A2A runs over HTTP, it drops straight into OpenTelemetry: install the extra and the A2A SDK's instrumentation plus a per-task `a2acode.execute` span light up, with W3C trace context propagating across the call so client and server spans share one trace.
241
243
 
242
244
  ```bash
243
- uv sync --extra telemetry
245
+ uv tool install 'a2acode[telemetry]' # or: uv sync --extra telemetry
244
246
  ```
245
247
 
246
248
  Tracing is off unless OpenTelemetry is installed, and you configure the exporter the standard way (e.g. `OTEL_EXPORTER_OTLP_ENDPOINT`, or run under `opentelemetry-instrument`). It works against an on-prem or air-gapped collector, so traces never have to leave your network.
@@ -255,7 +257,7 @@ uv run mypy
255
257
  uv run pytest
256
258
  ```
257
259
 
258
- CI runs these on Python 3.13 and 3.14, plus a Markdown lint, on every push and pull request.
260
+ CI runs these on Python 3.11 through 3.14, plus a Markdown lint, on every push and pull request.
259
261
 
260
262
  ## Releasing
261
263
 
@@ -1,9 +1,9 @@
1
1
  [project]
2
2
  name = "a2acode"
3
- version = "0.8.0"
3
+ version = "0.9.1"
4
4
  description = "Serve Claude Code and other ACP coding agents over the A2A protocol."
5
5
  readme = "README.md"
6
- requires-python = ">=3.13"
6
+ requires-python = ">=3.11"
7
7
  license = "Apache-2.0"
8
8
  keywords = [
9
9
  "a2a",
@@ -14,7 +14,7 @@ keywords = [
14
14
  ]
15
15
  dependencies = [
16
16
  "a2a-sdk[http-server,signing]>=1.1,<2",
17
- "agent-client-protocol>=0.12,<1",
17
+ "agent-client-protocol>=0.12.1,<1",
18
18
  "uvicorn>=0.49",
19
19
  "httpx>=0.28",
20
20
  "typer>=0.26",
@@ -54,7 +54,7 @@ build-backend = "uv_build"
54
54
 
55
55
  [tool.ruff]
56
56
  line-length = 88
57
- target-version = "py313"
57
+ target-version = "py311"
58
58
 
59
59
  [tool.ruff.lint]
60
60
  select = [
@@ -72,6 +72,6 @@ testpaths = ["tests"]
72
72
 
73
73
  [tool.mypy]
74
74
  files = ["src"]
75
- python_version = "3.13"
75
+ python_version = "3.11"
76
76
  ignore_missing_imports = true
77
77
  check_untyped_defs = true
@@ -1,15 +1,15 @@
1
1
  [project]
2
2
  name = "a2acode"
3
- version = "0.8.0"
3
+ version = "0.9.1"
4
4
  description = "Serve Claude Code and other ACP coding agents over the A2A protocol."
5
5
  readme = "README.md"
6
- requires-python = ">=3.13"
6
+ requires-python = ">=3.11"
7
7
  license = "Apache-2.0"
8
8
  authors = [{ name = "kanywst" }]
9
9
  keywords = ["a2a", "acp", "claude-code", "agent", "agent2agent"]
10
10
  dependencies = [
11
11
  "a2a-sdk[http-server,signing]>=1.1,<2",
12
- "agent-client-protocol>=0.12,<1",
12
+ "agent-client-protocol>=0.12.1,<1",
13
13
  "uvicorn>=0.49",
14
14
  "httpx>=0.28",
15
15
  "typer>=0.26",
@@ -56,7 +56,7 @@ build-backend = "uv_build"
56
56
 
57
57
  [tool.ruff]
58
58
  line-length = 88
59
- target-version = "py313"
59
+ target-version = "py311"
60
60
 
61
61
  [tool.ruff.lint]
62
62
  select = ["E", "F", "I", "UP", "B", "SIM"]
@@ -67,6 +67,6 @@ testpaths = ["tests"]
67
67
 
68
68
  [tool.mypy]
69
69
  files = ["src"]
70
- python_version = "3.13"
70
+ python_version = "3.11"
71
71
  ignore_missing_imports = true
72
72
  check_untyped_defs = true
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes