Slash commands and automation
This page documents slash-command and automation surfaces that complement the agent/task runtime.
Source anchors
| Semantic alias | Source | Approximate location | String or symbol | Meaning |
|---|---|---|---|---|
| PluginSlashCommandSchema | cli.js | line ~185, byte 0x1104d7 | slash command name | Plugin schema surface for command files becoming slash commands. |
| SkillSlashDispatch | cli.js | line ~185, byte 0x11234e | via Skill tool or slash command | Skill dispatch can be triggered by slash commands. |
| SkillShellExecutionPolicy | cli.js | line ~185, byte 0x11a8f2 | Disable inline shell execution in skills and custom slash commands | Policy boundary for slash-command shell execution. |
| SlashCommandKeybindings | cli.js | line ~605, byte 0x39074f | command:help, command:compact | Keybinding action can execute slash commands. |
| PermissionsSlashCommandHint | cli.js | line ~791, byte 0x43b2a9 | /permissions to manage | Runtime UX string pointing to permission slash command. |
| DoctorSlashDiagnosticSurface | cli.js | line ~605, byte 0x38fcfe | /doctor diagnostics screen | Slash/UI diagnostic surface. |
| AutoModeCommand | cli.js | line ~19550, byte 0xdccb56 | H.command("auto-mode") | Automation/classifier inspection command. |
| AutoModeConsentDebug | cli.js | line ~188, byte 0x127250 | [auto-mode] hasAutoModeOptIn= | Auto-mode consent/config debug string. |
Automation surfaces
| Surface | Runtime role |
|---|---|
| Slash command files | Plugin/schema strings state command name becomes slash command name, e.g. about → /plugin:about. |
| Skill dispatch | Skills can be dispatched through the Skill tool or slash command. |
| Inline shell policy | Managed policy can disable inline shell execution in skills/custom slash commands. |
| Keybindings | Keybinding actions can execute command names such as command:help and command:compact. |
| Permission UX | /permissions manages working-directory/tool permission state. |
| Doctor UX | /doctor is a diagnostic screen in the interactive UI. |
auto-mode | Command for inspecting classifier defaults/config and critiquing custom rules. |
Slash-command path
flowchart TD Plugin[Plugin command metadata/files] --> Slash[Slash command] Skill[Skill metadata] --> Slash Keybinding[Keybinding action] --> Slash Slash --> Runtime[Interactive session runtime] Runtime --> Tools[Tool/permission paths] Policy[disableSkillShellExecution] --> SlashAuto-mode
auto-mode is registered as a top-level command when the feature is not disabled. It exposes subcommands for defaults/config inspection and an AI critique path for custom rules. Nearby debug strings show opt-in logic from user/local/flag/policy values.
Related docs
Created and maintained by Yingting Huang.