Metadata-Version: 2.4
Name: acp-amp
Version: 0.1.2
Summary: ACP adapter that bridges Amp Code to Agent Client Protocol
Author-email: Shashi Jagtap <info@super-agentic.ai>
Maintainer-email: Shashi Jagtap <info@super-agentic.ai>
License: MIT
Project-URL: Homepage, https://github.com/SuperagenticAI/acp-amp
Project-URL: Repository, https://github.com/SuperagenticAI/acp-amp
Project-URL: Issues, https://github.com/SuperagenticAI/acp-amp/issues
Project-URL: Documentation, https://github.com/SuperagenticAI/acp-amp
Keywords: acp,agent-client-protocol,amp,adapter,zed,superqode
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: agent-client-protocol>=0.7.1
Requires-Dist: amp-sdk>=0.0.2
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"
Provides-Extra: docs
Requires-Dist: mkdocs>=1.5; extra == "docs"
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
Dynamic: license-file

# acp-amp

![CI](https://github.com/SuperagenticAI/acp-amp/actions/workflows/ci.yml/badge.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)

acp-amp is an open source ACP adapter for Amp Code. It runs as a standard ACP agent over stdin and stdout and can be used from any ACP client, for example Zed or SuperQode. We built it to bring Amp to Python based ACP clients and to extend Amp usage beyond TypeScript only setups. This lets Python driven coding agents such as Toad, fast-agent, SuperQode, and other ACP clients use Amp natively.

In short, acp-amp bridges Amp into the ACP ecosystem and keeps the protocol surface clean and consistent for editors and clients. The default driver uses the Amp Python SDK, with a Node shim fallback.

## Where you can use it

- Zed editor via `agent_servers`
- SuperQode via ACP agent config
- Any ACP client that can launch a subprocess and speak JSON-RPC over stdio

Python based ACP clients you can use today:

- Toad https://github.com/batrachianai/toad
- fast-agent https://github.com/evalstate/fast-agent
- SuperQode https://github.com/SuperagenticAI/superqode

## Install (recommended)

```bash
uv tool install acp-amp
```

## Install (pip)

```bash
pip install acp-amp
```

## Install (dev)

```bash
pip install -e .
```

## Install with uv

```bash
uv sync
```

## Install Amp CLI if needed

Some Amp setups require the Amp CLI. If your SDK setup needs it, install:

```bash
npm install -g @sourcegraph/amp
```

## Optional Node shim fallback

If you cannot use the Python SDK, you can run the Node shim instead.

```bash
acp-amp setup
cd ~/.acp-amp/shim
npm install
```

## Run

```bash
acp-amp
```

By default the Python SDK driver is used. To force the Node shim:

```bash
acp-amp run --driver node
```

To force the Python SDK explicitly:

```bash
acp-amp run --driver python
```

## Tests

```bash
pip install -e .[test]
pytest
```

## Tests with uv

```bash
uv run pytest
```

## Docs

```bash
pip install -e .[docs]
mkdocs serve
```

## Docs with uv

```bash
uv run mkdocs serve
```

## Use from an ACP client (example: SuperQode)

```yaml
agents:
  amp:
    description: "Amp ACP adapter"
    protocol: acp
    command: acp-amp
    args: []
```

Then connect:

```bash
superqode connect acp amp
```

## Zed example

```json
{
  "agent_servers": {
    "Amp": {
      "command": "acp-amp",
      "args": [],
      "env": {
        "AMP_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

## Notes

- Stdout is reserved for ACP JSON-RPC messages, logs go to stderr
- The Node shim lives in `node-shim/` and is launched automatically
