Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit a00e9d6

Browse files
author
Jobdori
committed
Merge jobdori/final-slash-commands: reach 141 slash spec parity
2 parents 742f2a1 + bd9c145 commit a00e9d6

File tree

1 file changed

+43
-1
lines changed
  • rust/crates/commands/src

1 file changed

+43
-1
lines changed

rust/crates/commands/src/lib.rs

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,48 @@ const SLASH_COMMAND_SPECS: &[SlashCommandSpec] = &[
997997
argument_hint: Some("<count> <prompt>"),
998998
resume_supported: false,
999999
},
1000+
SlashCommandSpec {
1001+
name: "agent",
1002+
aliases: &[],
1003+
summary: "Manage sub-agents and spawned sessions",
1004+
argument_hint: Some("[list|spawn|kill]"),
1005+
resume_supported: true,
1006+
},
1007+
SlashCommandSpec {
1008+
name: "subagent",
1009+
aliases: &[],
1010+
summary: "Control active subagent execution",
1011+
argument_hint: Some("[list|steer <target> <msg>|kill <id>]"),
1012+
resume_supported: true,
1013+
},
1014+
SlashCommandSpec {
1015+
name: "reasoning",
1016+
aliases: &[],
1017+
summary: "Toggle extended reasoning mode",
1018+
argument_hint: Some("[on|off|stream]"),
1019+
resume_supported: true,
1020+
},
1021+
SlashCommandSpec {
1022+
name: "budget",
1023+
aliases: &[],
1024+
summary: "Show or set token budget limits",
1025+
argument_hint: Some("[show|set <limit>]"),
1026+
resume_supported: true,
1027+
},
1028+
SlashCommandSpec {
1029+
name: "rate-limit",
1030+
aliases: &[],
1031+
summary: "Configure API rate limiting",
1032+
argument_hint: Some("[status|set <rpm>]"),
1033+
resume_supported: true,
1034+
},
1035+
SlashCommandSpec {
1036+
name: "metrics",
1037+
aliases: &[],
1038+
summary: "Show performance and usage metrics",
1039+
argument_hint: None,
1040+
resume_supported: true,
1041+
},
10001042
];
10011043

10021044
#[derive(Debug, Clone, PartialEq, Eq)]
@@ -3643,7 +3685,7 @@ mod tests {
36433685
assert!(help.contains("aliases: /plugins, /marketplace"));
36443686
assert!(help.contains("/agents [list|help]"));
36453687
assert!(help.contains("/skills [list|install <path>|help]"));
3646-
assert_eq!(slash_command_specs().len(), 135);
3688+
assert_eq!(slash_command_specs().len(), 141);
36473689
assert!(resume_supported_slash_commands().len() >= 39);
36483690
}
36493691

0 commit comments

Comments
 (0)