Slash Commands
Press Tab to autocomplete a command, and Enter to autocomplete and send. Press Tab again when command matches fully to queue the command. This allows chains like "commit" -> [Tab] -> "/compact" -> [Tab] -> "/prompts:open_pr" -> [Tab].
| Command | Input | What it does |
|---|---|---|
/exit |
none | Exit Kent. During active work, Kent detaches while the server continues the run. |
/new |
none | Start a new session without stopping active work in the current session. |
/resume |
none | Open the session picker without stopping active work in the current session. |
/login |
none | Open auth options. |
/compact <instructions> |
optional free-form text | Compact the current context. Trailing text is passed through as additional compaction instructions. Active non-workflow goals continue in the resumed context. |
/name <title> |
optional free-form text | Set the session title. Empty input resets. |
/thinking <low|medium|high|xhigh|max|ultra> |
optional single value | Set the thinking level. Empty input shows the current level. |
/fast [on|off|status] |
optional single value | Toggle or inspect Fast mode; |
/supervisor [on|off] |
optional single value | Toggle supervisor invocation. |
/autocompaction [on|off] |
optional single value | Toggle auto-compaction. |
/status |
none | Open a page with detailed information about the config, git, runtime, and model. |
/goal [pause|resume|clear|<objective>] |
optional action or objective | Set or manage the current session goal (ralph-loop). Empty input opens the goal page. |
/ps [kill|inline|logs] <id> |
optional action + id | Open the background-process picker, or manage a specific background shell. |
/wt |
none | Open the Worktrees page. |
/wt create |
none | Open the create-worktree dialog; new branches require a non-empty base ref. |
/wt switch <target> |
required selector | Schedule entry into a worktree by id, branch, display name, or path. |
/wt delete [<target>] |
optional selector | Delete a worktree. |
/copy |
none | Copy the latest durable model final answer to the system clipboard. |
/back |
none | Return to the parent session, if present, with the child’s latest durable final answer prefilled. |
/review <what to review> |
optional free-form text | Trigger Kent’s native code review. It reuses an empty session; otherwise it starts a fresh child session. |
/init <instructions> |
optional free-form text | Run repository initialization. It reuses an empty session; otherwise it starts a fresh child session. |
/prompt:<name> |
optional free-form text | Run a custom Markdown prompt (see prompts). |
Kent supports markdown file-backed custom prompt commands.
- If the prompt body contains the exact token
$ARGUMENTS, Kent replaces every occurrence with the trailing input. - Otherwise, if trailing input was provided, Kent appends it to the end of the prompt body.
To add a custom prompt, create a Markdown file in one of these directories (descending priority):
<workspace>/.kent/prompts<workspace>/.kent/commands~/.kent/prompts~/.kent/commands
The command id is derived from the filename as prompt:<normalized_base_name>. Duplicate command ids are deduplicated by first match, so repo-scoped commands override global commands.