Skip to content

Commit 310fb64

Browse files
committed
removes slash command
1 parent 6306019 commit 310fb64

File tree

4 files changed

+3
-243
lines changed

4 files changed

+3
-243
lines changed

crates/chat-cli/src/cli/chat/cli/delegate.rs

Lines changed: 0 additions & 210 deletions
This file was deleted.

crates/chat-cli/src/cli/chat/cli/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ pub mod checkpoint;
33
pub mod clear;
44
pub mod compact;
55
pub mod context;
6-
pub mod delegate;
76
pub mod editor;
87
pub mod experiment;
98
pub mod hooks;
@@ -26,7 +25,6 @@ use clap::Parser;
2625
use clear::ClearArgs;
2726
use compact::CompactArgs;
2827
use context::ContextSubcommand;
29-
use delegate::DelegateArgs;
3028
use editor::EditorArgs;
3129
use experiment::ExperimentArgs;
3230
use hooks::HooksArgs;
@@ -124,9 +122,6 @@ pub enum SlashCommand {
124122
/// View, manage, and resume to-do lists
125123
#[command(subcommand)]
126124
Todos(TodoSubcommand),
127-
/// Launch and manage asynchronous subagent processes
128-
#[command(subcommand, hide = true)]
129-
Delegate(DelegateArgs),
130125
}
131126

132127
impl SlashCommand {
@@ -195,7 +190,6 @@ impl SlashCommand {
195190
// },
196191
Self::Checkpoint(subcommand) => subcommand.execute(os, session).await,
197192
Self::Todos(subcommand) => subcommand.execute(os, session).await,
198-
Self::Delegate(args) => args.execute(os, session).await,
199193
}
200194
}
201195

@@ -228,7 +222,6 @@ impl SlashCommand {
228222
},
229223
Self::Checkpoint(_) => "checkpoint",
230224
Self::Todos(_) => "todos",
231-
Self::Delegate(_) => "delegate",
232225
}
233226
}
234227

crates/chat-cli/src/cli/experiment/experiment_manager.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,7 @@ static AVAILABLE_EXPERIMENTS: &[Experiment] = &[
115115
description: "Enables launching and managing asynchronous subagent processes",
116116
setting_key: Setting::EnabledDelegate,
117117
enabled: true,
118-
commands: &[
119-
"/delegate",
120-
"/delegate help",
121-
"/delegate status",
122-
"/delegate read",
123-
"/delegate delete",
124-
"/delegate launch",
125-
],
118+
commands: &[],
126119
},
127120
];
128121

docs/experiments.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,27 +109,11 @@ Amazon Q CLI includes experimental features that can be toggled on/off using the
109109
**When enabled:** Use `/tangent` or the keyboard shortcut to create a checkpoint and explore tangential topics. Use the same command to return to your main conversation.
110110

111111
### Delegate
112-
**Command:** `/delegate`
113-
**Keyboard Shortcut:** `Ctrl+D` (customizable via `q settings chat.delegateModeKey x`)
114112
**Description:** Launch and manage asynchronous task processes. Enables running Q chat sessions with specific agents in parallel to the main conversation.
115113
**Usage:**
116-
- `/delegate launch "Fix the bug in main.rs"` - Launch task with default agent
117-
- `/delegate launch --agent coding "Fix the bug in main.rs"` - Launch with specific agent (shows approval dialog)
118-
- `/delegate status` - Show summary of all tasks
119-
- `/delegate status abc12345` - Show status of specific task
120-
- `/delegate read abc12345` - Read output from completed task (triggers LLM analysis)
121-
- `/delegate delete abc12345` - Delete task and its files
122-
- `/delegate list` - List all tasks with timestamps and brief info
114+
Use natural language to ask the model to launch a background task. Once the task is ready, you can then ask the model to check on the result
123115
**Agent Approval Flow:**
124-
When using `--agent`, you'll see an approval dialog:
125-
```
126-
Agent: coding
127-
Description: Coding assistant for software development
128-
Task: Fix the bug in main.rs
129-
Tools: fs_read, fs_write, execute_bash
130-
⚠️ This task will run with trust-all permissions and can execute commands or consume system/cloud resources. Continue? [y/N]:
131-
```
132-
**When enabled:** Use `/delegate` commands or `Ctrl+D` to spawn independent Q processes that work on tasks while you continue your main conversation. Tasks with agents require explicit approval and show agent details. Tasks without agents run with a warning about trust-all permissions. Once delegated, tasks work independently and you can check progress, read results, or delete them as needed.
116+
**When enabled:** Tasks with agents require explicit approval and show agent details. Tasks without agents run with a warning about trust-all permissions. Once delegated, tasks work independently and you can check progress, read results, or delete them as needed.
133117

134118
### TODO Lists
135119
**Tool name**: `todo_list`

0 commit comments

Comments
 (0)