mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Switch Amp ACP adapter to SuperagenticAI/acp-amp
Replace tao12345666333/amp-acp with SuperagenticAI/acp-amp as the recommended Amp adapter. The previous adapter stripped the process environment (passing only TERM=dumb to execute()), preventing Amp from discovering user skills and configuration. The new adapter inherits the full process environment by default. The primary command is now 'acp-amp' with 'amp-acp' kept as an alias for backwards compatibility. Amp-Thread-ID: https://ampcode.com/threads/T-019d4e6c-6235-76b4-aaf3-63baf10304d0 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -9,7 +9,7 @@ Sprout Relay ──WS──→ sprout-acp ──stdio──→ Your Agent
|
||||
(send_message, etc.)
|
||||
```
|
||||
|
||||
Supports any agent that speaks [ACP](https://agentclientprotocol.com/) over stdio: **goose**, **codex** (via [codex-acp](https://github.com/zed-industries/codex-acp)), **claude code** (via [claude-agent-acp](https://github.com/agentclientprotocol/claude-agent-acp)), and **amp** (via [amp-acp](https://github.com/tao12345666333/amp-acp)).
|
||||
Supports any agent that speaks [ACP](https://agentclientprotocol.com/) over stdio: **goose**, **codex** (via [codex-acp](https://github.com/zed-industries/codex-acp)), **claude code** (via [claude-agent-acp](https://github.com/agentclientprotocol/claude-agent-acp)), and **amp** (via [acp-amp](https://github.com/SuperagenticAI/acp-amp)).
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -94,15 +94,15 @@ treats both Claude ACP command names as the same zero-arg runtime.
|
||||
|
||||
## Running with Amp
|
||||
|
||||
[amp-acp](https://github.com/tao12345666333/amp-acp) wraps Sourcegraph's Amp coding agent in an ACP interface.
|
||||
[acp-amp](https://github.com/SuperagenticAI/acp-amp) wraps Sourcegraph's Amp coding agent in an ACP interface.
|
||||
|
||||
```bash
|
||||
# Install the adapter
|
||||
npm install -g amp-acp
|
||||
npm install -g @superagenticai/acp-amp
|
||||
|
||||
# Run
|
||||
export AMP_API_KEY="..." # your Amp API key
|
||||
export SPROUT_ACP_AGENT_COMMAND="amp-acp"
|
||||
export SPROUT_ACP_AGENT_COMMAND="acp-amp"
|
||||
|
||||
sprout-acp
|
||||
```
|
||||
|
||||
@@ -151,7 +151,7 @@ impl std::fmt::Display for PermissionMode {
|
||||
about = "Query available models from the configured agent"
|
||||
)]
|
||||
pub struct ModelsArgs {
|
||||
/// Agent binary to spawn (e.g. "goose", "claude-agent-acp", "codex-acp", "amp-acp").
|
||||
/// Agent binary to spawn (e.g. "goose", "claude-agent-acp", "codex-acp", "acp-amp").
|
||||
#[arg(long, env = "SPROUT_ACP_AGENT_COMMAND", default_value = "goose")]
|
||||
pub agent_command: String,
|
||||
|
||||
@@ -439,7 +439,7 @@ fn default_agent_args(command: &str) -> Option<Vec<String>> {
|
||||
match normalize_agent_command_identity(command).as_str() {
|
||||
"goose" => Some(vec!["acp".to_string()]),
|
||||
"codex" | "codex-acp" | "claude-agent-acp" | "claude-code-acp" | "claude-code"
|
||||
| "claudecode" | "amp-acp" => Some(Vec::new()),
|
||||
| "claudecode" | "acp-amp" | "amp-acp" => Some(Vec::new()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ const KNOWN_ACP_PROVIDERS: &[KnownAcpProvider] = &[
|
||||
KnownAcpProvider {
|
||||
id: "amp",
|
||||
label: "Amp",
|
||||
commands: &["amp-acp"],
|
||||
aliases: &[],
|
||||
commands: &["acp-amp"],
|
||||
aliases: &["amp-acp"],
|
||||
avatar_url: AMP_AVATAR_URL,
|
||||
},
|
||||
];
|
||||
@@ -129,7 +129,7 @@ fn default_agent_args(command: &str) -> Option<Vec<String>> {
|
||||
match normalize_command_identity(command).as_str() {
|
||||
"goose" => Some(vec!["acp".to_string()]),
|
||||
"codex" | "codex-acp" | "claude-agent-acp" | "claude-code-acp" | "claude-code"
|
||||
| "claudecode" | "amp-acp" => Some(Vec::new()),
|
||||
| "claudecode" | "acp-amp" | "amp-acp" => Some(Vec::new()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user