> [!CAUTION] > Merging this PR will automatically publish to **PyPI** and create a **GitHub release**. For the full release process, see [`.github/RELEASING.md`](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md). --- _Release notes preview: keep this section in sync with the package `CHANGELOG.md`. The published GitHub release body is extracted from the merged `CHANGELOG.md` by `release.yml`, not from this PR description._ --- ## [0.1.42](https://github.com/langchain-ai/deepagents/compare/deepagents-code==0.1.41...deepagents-code==0.1.42) (2026-07-17) ### Features - Plugins are now generally available. ([#4797](https://github.com/langchain-ai/deepagents/issues/4797)) - Added search to the plugin list and now summarize plugin changes after reloads. ([#4765](https://github.com/langchain-ai/deepagents/issues/4765), [#4767](https://github.com/langchain-ai/deepagents/issues/4767)) - Added Kimi K3 to the OpenRouter model selector. ([#4803](https://github.com/langchain-ai/deepagents/issues/4803)) - Added hidden `connect` and `reconnect` keywords for `/restart`. ([#4807](https://github.com/langchain-ai/deepagents/issues/4807)) - Debug Console thread IDs can now be clicked to copy, with an added LangSmith link. ([#4760](https://github.com/langchain-ai/deepagents/issues/4760)) - Added auto-approve (YOLO) mode to trace metadata. ([#4764](https://github.com/langchain-ai/deepagents/issues/4764)) ### Bug Fixes - Improved plugin marketplace loading and onboarding, including asynchronous marketplace additions and polish for empty marketplace states. ([#4766](https://github.com/langchain-ai/deepagents/issues/4766), [#4759](https://github.com/langchain-ai/deepagents/issues/4759)) - Clarified plugin component discovery and reload status. ([#4774](https://github.com/langchain-ai/deepagents/issues/4774)) - Avoided blocking MCP OAuth token refresh. ([#4770](https://github.com/langchain-ai/deepagents/issues/4770)) - Restored keyboard focus for marketplace details. ([#4763](https://github.com/langchain-ai/deepagents/issues/4763)) - Dismissed the startup tip when submitting an initial prompt with `-m`. ([#4779](https://github.com/langchain-ai/deepagents/issues/4779)) _End release notes preview._ --- > [!NOTE] > A **New Contributors** section is appended to the GitHub release notes automatically at publish time (see [Release Pipeline](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md#release-pipeline), step 2). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: langchain-oss-automated-triage[bot] <248757908+langchain-oss-automated-triage[bot]@users.noreply.github.com>
Deep Agents ACP integration
This directory contains an Agent Client Protocol (ACP) connector that allows you to run a Python Deep Agent 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!
Tip
Want a ready-made coding agent instead of wiring up your own? The
deepagents-codepackage (thedcodeterminal coding agent) can expose its prebuilt coding agent as an ACP server with a single command — no custom agent code required. See Use the prebuilt Deep Agents Code agent (dcode --acp) below. The rest of this guide covers running a bare/general Deep Agent, which does not include thedcodecoding agent.
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 --group examples
Rename the .env.example file to .env and add your Anthropic API key. You may also optionally set up tracing for your Deep Agent using LangSmith by populating the other env vars in the example file:
ANTHROPIC_API_KEY=""
# Set up LangSmith tracing for your Deep Agent (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 Deep Agent thread:
And that's it! You can now use the Deep Agent in Zed to interact with your project.
If you need to upgrade your version of Deep Agents, pull the latest changes and re-sync:
git pull && uv sync --group examples
Or for specific packages:
uv lock --upgrade-package langchain_anthropic # for example
Launch a custom Deep Agent 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" .
Use the prebuilt Deep Agents Code agent (dcode --acp)
If you don't need a custom agent, deepagents-code — the dcode terminal coding agent — can run its prebuilt coding agent as an ACP server over stdio. This ships the full dcode coding agent (filesystem tools, shell, MCP support, and subagents), unlike the bare/general Deep Agent used elsewhere in this guide.
Install deepagents-code together with the ACP dependencies:
uv tool install -U deepagents-code --with deepagents-acp
Then point your ACP-compatible editor at dcode --acp. For Zed, add this to your settings.json:
{
"agent_servers": {
"Deep Agents Code": {
"type": "custom",
"command": "dcode",
"args": ["--acp"]
}
}
}
Select a model by passing --model (in provider:model-name form) to the command:
{
"agent_servers": {
"Deep Agents Code": {
"type": "custom",
"command": "dcode",
"args": ["--acp", "--model", "anthropic:claude-sonnet-4-5"]
}
}
}
dcode reads provider API keys from the environment (e.g. ANTHROPIC_API_KEY), the same way it does in the terminal. Run dcode --help to see the other flags supported in ACP mode, such as --mcp-config and --no-mcp.
Model Switching
The ACP adapter supports dynamic model switching using Session Config Options. This allows users to switch between different LLM models mid-session without losing conversation history.
Quick Example
from deepagents_acp.server import AgentServerACP, AgentSessionContext
# Define available models
models = [
{"value": "anthropic:claude-opus-4-6", "name": "Claude Opus 4"},
{"value": "anthropic:claude-sonnet-4", "name": "Claude Sonnet 4"},
{"value": "openai:gpt-4-turbo", "name": "GPT-4 Turbo"},
]
# Create an agent factory that uses the model from context
def build_agent(context: AgentSessionContext):
model = context.model
# Pass model string directly - it handles provider:model-name format
return create_deep_agent(
model=model,
checkpointer=checkpointer,
backend=create_backend,
)
# Pass models to the server
server = AgentServerACP(agent=build_agent, models=models)
You can see a full example here with LangChain's model profile feature.
Resources
- LangChain Academy — Comprehensive, free courses on LangChain libraries and products, made by the LangChain team.
- Code of Conduct — community guidelines and standards

