feat(commands): reach upstream slash command parity — 135 → 141 specs

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.
This commit is contained in:
Jobdori
2026-04-03 19:55:12 +09:00
parent 742f2a12f9
commit bd9c145ea1

View File

@@ -997,6 +997,48 @@ const SLASH_COMMAND_SPECS: &[SlashCommandSpec] = &[
argument_hint: Some("<count> <prompt>"),
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 <target> <msg>|kill <id>]"),
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 <limit>]"),
resume_supported: true,
},
SlashCommandSpec {
name: "rate-limit",
aliases: &[],
summary: "Configure API rate limiting",
argument_hint: Some("[status|set <rpm>]"),
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 <path>|help]"));
assert_eq!(slash_command_specs().len(), 135);
assert_eq!(slash_command_specs().len(), 141);
assert!(resume_supported_slash_commands().len() >= 39);
}