Agent Client Protocol integration for Deep Agents
Project description
Deep Agents ACP integration
This repo contains an Agent Client Protocol (ACP) connector that allows you to run a Python DeepAgent within a text editor that supports ACP such as Zed.
It includes an example coding agent that uses Anthropic's Claude models to write code with its built-in filesystem tools and shell, but you can also connect any Deep Agent with additional tools or different agent architectures!
Getting started
First, make sure you have Zed and uv installed.
Next, clone this repo:
git clone git@github.com:langchain-ai/deepagents.git
Then, navigate into the newly created folder and run uv sync:
cd deepagents/libs/acp
uv sync --all-groups
Rename the .env.example file to .env and add your Anthropic API key. You may also optionally set up tracing for your DeepAgent using LangSmith by populating the other env vars in the example file:
ANTHROPIC_API_KEY=""
# Set up LangSmith tracing for your DeepAgent (optional)
# LANGSMITH_TRACING=true
# LANGSMITH_API_KEY=""
# LANGSMITH_PROJECT="deepagents-acp"
Finally, add this to your Zed settings.json:
{
"agent_servers": {
"DeepAgents": {
"type": "custom",
"command": "/your/absolute/path/to/deepagents-acp/run_demo_agent.sh"
}
}
}
You must also make sure that the run_demo_agent.sh entrypoint file is executable - this should be the case by default, but if you see permissions issues, run:
chmod +x run_demo_agent.sh
Now, open Zed's Agents Panel (e.g. with CMD + Shift + ?). You should see an option to create a new DeepAgent thread:
And that's it! You can now use the DeepAgent in Zed to interact with your project.
Launch a custom DeepAgent with ACP
uv add deepagents-acp
import asyncio
from acp import run_agent
from deepagents import create_deep_agent
from langgraph.checkpoint.memory import MemorySaver
from deepagents_acp.server import AgentServerACP
async def get_weather(city: str) -> str:
"""Get weather for a given city."""
return f"It's always sunny in {city}!"
async def main() -> None:
agent = create_deep_agent(
tools=[get_weather],
system_prompt="You are a helpful assistant",
checkpointer=MemorySaver(),
)
server = AgentServerACP(agent)
await run_agent(server)
if __name__ == "__main__":
asyncio.run(main())
Launch with Toad
uv tool install -U batrachian-toad --python 3.14
toad acp "python path/to/your_server.py" .
# or
toad acp "uv run python path/to/your_server.py" .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepagents_acp-0.0.4.tar.gz.
File metadata
- Download URL: deepagents_acp-0.0.4.tar.gz
- Upload date:
- Size: 13.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db7250af6a257be19960fd88ddbfa4667500741efac16f5da8ab3e33f8ceda63
|
|
| MD5 |
2756f68059b41d7834a3539db3e70a17
|
|
| BLAKE2b-256 |
6a1ea545ca48441973f91d2b14a8c55160f5070ed1ec6092e080ec8d2f303f7c
|
File details
Details for the file deepagents_acp-0.0.4-py3-none-any.whl.
File metadata
- Download URL: deepagents_acp-0.0.4-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d2bb80a9dd6c229724699f48b8d73385bd8f9691d82b7aef095c977de1db1a6
|
|
| MD5 |
0686f7f32f46e51c75397b34efe3cae9
|
|
| BLAKE2b-256 |
0dc808ad801c9528474ccf9be6084ebf4f23c75e0661c7b10806e5d3ae4e64f8
|