Skip to content

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.

optional availableDuringRun?: 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: 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.

run(ctx, args): SlashCommandResult

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:347

SlashCommandContext

string[]

SlashCommandResult