SlashCommand
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:334
A single registered slash command. run is pure: context in, result out.
Properties
Section titled “Properties”availableDuringRun?
Section titled “availableDuringRun?”
optionalavailableDuringRun?:boolean
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:346
EXT-12 — whether this command may be dispatched WHILE a turn is streaming (“during
inference”). Defaults to false: most commands are idle-only. The read-only / session-toggle
commands (e.g. /approvals, /verbose, /debug, /help, /model) set this so the user
can change the approval mode or inspect state mid-turn without interrupting the run. Commands that
mutate the transcript or thread (/clear) or end the session (/exit) stay idle-only.
description
Section titled “description”description:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:338
One-line description shown by /help.
name:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:336
The name without the leading slash, e.g. help. Matched case-insensitively.
Methods
Section titled “Methods”run(
ctx,args):SlashCommandResult
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:347
Parameters
Section titled “Parameters”string[]