Metadata-Version: 2.5
Name: deft-subspace-acp
Version: 0.1.0a1
Summary: ACP for apps: one model over protocol v1 and v2, turns you can await, cancellation that works, permissions that fail closed. Types come from the official agent-client-protocol SDK.
Project-URL: Homepage, https://github.com/deftai/subspace/tree/main/python
Project-URL: Source, https://github.com/deftai/subspace
Project-URL: Issues, https://github.com/deftai/subspace/issues
Project-URL: Changelog, https://github.com/deftai/subspace/blob/main/python/CHANGELOG.md
Author: Deft
License-Expression: MIT
License-File: LICENSE
Keywords: acp,agent-client-protocol,agents,asyncio,llm,mcp
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: agent-client-protocol<2,>=1.0
Requires-Dist: deft-subspace-kernel==0.1.0a1
Provides-Extra: mcp
Requires-Dist: mcp<3,>=2.3; extra == 'mcp'
Provides-Extra: otel
Requires-Dist: opentelemetry-api>=1.27; extra == 'otel'
Description-Content-Type: text/markdown

# deft-subspace-acp

[Agent Client Protocol](https://agentclientprotocol.com) (ACP) for Python apps, for both clients and agents. Part of [Deft Subspace](https://github.com/deftai/subspace/tree/main/python).

- **One model for v1 and v2.** The client asks for v2 and accepts v1, and your code sees the same events either way.
- **Turns you can await:** `async for event in turn`, and `await turn` for the result.
- **Cancellation that works**, and **permissions that fail closed.**
- **Tested against real agents:** Grok Build, the Claude and Codex ACP adapters, and agents built with the official SDK.

```python
import asyncio
from deft_subspace.acp import run

async def main():
    result = await run("claude", "What does this repo do?", permissions="reject")
    print(result.text)

asyncio.run(main())
```

Extras: `otel` (OpenTelemetry spans) and `mcp` (MCP servers over http and sse).

See the [README](https://github.com/deftai/subspace/tree/main/python) for clients, agents, and how this differs from the TypeScript packages. MIT licensed.
