Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/agent-client-protocol/src/acp_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,38 @@ impl AcpAgent {
}
}

/// Create an ACP agent for the Claude Agent adapter.
/// Just runs `npx -y @agentclientprotocol/claude-agent-acp@latest`.
#[must_use]
pub fn claude_agent() -> Self {
Self::from_str("npx -y @agentclientprotocol/claude-agent-acp@latest")
.expect("valid bash command")
}

/// Create an ACP agent for the Codex adapter.
/// Just runs `npx -y @agentclientprotocol/codex-acp@latest`.
#[must_use]
pub fn codex() -> Self {
Self::from_str("npx -y @agentclientprotocol/codex-acp@latest").expect("valid bash command")
}

/// Create an ACP agent for Zed Industries' Claude Code tool.
/// Just runs `npx -y @zed-industries/claude-code-acp@latest`.
#[deprecated(
since = "1.2.0",
note = "the package moved to @agentclientprotocol/claude-agent-acp; use `AcpAgent::claude_agent()` instead"
)]
#[must_use]
pub fn zed_claude_code() -> Self {
Self::from_str("npx -y @zed-industries/claude-code-acp@latest").expect("valid bash command")
}

/// Create an ACP agent for Zed Industries' Codex tool.
/// Just runs `npx -y @zed-industries/codex-acp@latest`.
#[deprecated(
since = "1.2.0",
note = "the package moved to @agentclientprotocol/codex-acp; use `AcpAgent::codex()` instead"
)]
#[must_use]
pub fn zed_codex() -> Self {
Self::from_str("npx -y @zed-industries/codex-acp@latest").expect("valid bash command")
Expand Down