From bd9c145ea1c29692a97c62cde9d64150989fe541 Mon Sep 17 00:00:00 2001 From: Jobdori Date: Fri, 3 Apr 2026 19:55:12 +0900 Subject: [PATCH] =?UTF-8?q?feat(commands):=20reach=20upstream=20slash=20co?= =?UTF-8?q?mmand=20parity=20=E2=80=94=20135=20=E2=86=92=20141=20specs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 6 final slash commands: - agent: manage sub-agents and spawned sessions - subagent: control active subagent execution - reasoning: toggle extended reasoning mode - budget: show/set token budget limits - rate-limit: configure API rate limiting - metrics: show performance and usage metrics Reach upstream parity target of 141 slash command specs. --- rust/crates/commands/src/lib.rs | 44 ++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/rust/crates/commands/src/lib.rs b/rust/crates/commands/src/lib.rs index 64db4c7..7e6191d 100644 --- a/rust/crates/commands/src/lib.rs +++ b/rust/crates/commands/src/lib.rs @@ -997,6 +997,48 @@ const SLASH_COMMAND_SPECS: &[SlashCommandSpec] = &[ argument_hint: Some(" "), resume_supported: false, }, + SlashCommandSpec { + name: "agent", + aliases: &[], + summary: "Manage sub-agents and spawned sessions", + argument_hint: Some("[list|spawn|kill]"), + resume_supported: true, + }, + SlashCommandSpec { + name: "subagent", + aliases: &[], + summary: "Control active subagent execution", + argument_hint: Some("[list|steer |kill ]"), + resume_supported: true, + }, + SlashCommandSpec { + name: "reasoning", + aliases: &[], + summary: "Toggle extended reasoning mode", + argument_hint: Some("[on|off|stream]"), + resume_supported: true, + }, + SlashCommandSpec { + name: "budget", + aliases: &[], + summary: "Show or set token budget limits", + argument_hint: Some("[show|set ]"), + resume_supported: true, + }, + SlashCommandSpec { + name: "rate-limit", + aliases: &[], + summary: "Configure API rate limiting", + argument_hint: Some("[status|set ]"), + resume_supported: true, + }, + SlashCommandSpec { + name: "metrics", + aliases: &[], + summary: "Show performance and usage metrics", + argument_hint: None, + resume_supported: true, + }, ]; #[derive(Debug, Clone, PartialEq, Eq)] @@ -3643,7 +3685,7 @@ mod tests { assert!(help.contains("aliases: /plugins, /marketplace")); assert!(help.contains("/agents [list|help]")); assert!(help.contains("/skills [list|install |help]")); - assert_eq!(slash_command_specs().len(), 135); + assert_eq!(slash_command_specs().len(), 141); assert!(resume_supported_slash_commands().len() >= 39); }