Update CLI commands to use latest versions for Amp, Claude, and Gemini executors (#140)

This commit is contained in:
Alex Netsch
2025-07-11 18:22:52 +01:00
committed by GitHub
parent f3a6c3f267
commit 2454739d6b
3 changed files with 3 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ Task title: {}"#,
// Use shell command for cross-platform compatibility // Use shell command for cross-platform compatibility
let (shell_cmd, shell_arg) = get_shell_command(); let (shell_cmd, shell_arg) = get_shell_command();
// --format=jsonl is deprecated in latest versions of Amp CLI
let amp_command = "npx @sourcegraph/amp@0.0.1752148945-gd8844f --format=jsonl"; let amp_command = "npx @sourcegraph/amp@0.0.1752148945-gd8844f --format=jsonl";
let mut command = Command::new(shell_cmd); let mut command = Command::new(shell_cmd);

View File

@@ -509,7 +509,7 @@ impl Executor for ClaudeFollowupExecutor {
let (shell_cmd, shell_arg) = get_shell_command(); let (shell_cmd, shell_arg) = get_shell_command();
// Pass prompt via stdin instead of command line to avoid shell escaping issues // Pass prompt via stdin instead of command line to avoid shell escaping issues
let claude_command = format!( let claude_command = format!(
"npx -y @anthropic-ai/claude-code -p --dangerously-skip-permissions --verbose --output-format=stream-json --resume={}", "npx -y @anthropic-ai/claude-code@latest -p --dangerously-skip-permissions --verbose --output-format=stream-json --resume={}",
self.session_id self.session_id
); );

View File

@@ -620,7 +620,7 @@ You are continuing work on the above task. The execution history shows what has
comprehensive_prompt: &str, comprehensive_prompt: &str,
) -> Result<AsyncGroupChild, ExecutorError> { ) -> Result<AsyncGroupChild, ExecutorError> {
let (shell_cmd, shell_arg) = get_shell_command(); let (shell_cmd, shell_arg) = get_shell_command();
let gemini_command = "npx @google/gemini-cli --yolo"; let gemini_command = "npx @google/gemini-cli@latest --yolo";
tracing::info!( tracing::info!(
"Spawning Gemini followup execution for attempt {} with resume context ({} chars)", "Spawning Gemini followup execution for attempt {} with resume context ({} chars)",