Slash commands
Commands
Section titled “Commands”| Command | Input | What it does |
|---|---|---|
/exit |
none | Exit Kent. During active work, Kent detaches while the server runs independently. |
/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, /logout |
none | Manage provider connections, including sign-in and environment references. |
/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 an existing session’s title. Blank input clears it. Outer whitespace is trimmed. |
/thinking <low|medium|high|xhigh|max|ultra> |
optional single value | Set Thinking. 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 | Inspect config, Git, runtime and model details. Config lists contributing global, shared and private files in precedence order, plus environment/CLI overrides. |
/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 | Create a worktree. 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 leave |
none | Schedule a return to the main workspace. |
/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. Uses the empty session or starts a fresh child session. |
/init <instructions> |
optional free-form text | Run repository initialization. Uses the empty session or starts a fresh child session. |
/prompt:<name> |
optional trailing arguments | Run a server-owned custom prompt command. |
File-backed prompt commands
Section titled “File-backed prompt commands”Custom prompt commands come from Markdown files on the connected server.
The effective roots, in descending precedence, are:
<workspace>/.kent/prompts<workspace>/.kent/commands<persistence-root>/prompts<persistence-root>/commands<persistence-root>/.generated/prompts<persistence-root>/.generated/commands
If the exact $ARGUMENTS token appears in the body, Kent replaces every occurrence with trimmed trailing arguments. Otherwise, Kent appends non-empty trailing arguments after one blank line.