Skip to content

Keybindings and slash commands

Shell keybindings

With shell integration loaded in zsh, bash (4.0+), or fish:

Key Behavior
? Opens inline asksh when the prompt buffer is empty, ?, *, or * ?; otherwise inserts ?
Alt+? Opens asksh on any buffer, passing the current line (minus trailing ?) via --buffer

TUI keybindings

Input and navigation

Key Behavior
Enter Sends your prompt; when input is empty, runs the suggested command (or arms/confirms danger confirmation), or exits if no suggestion is pending; in error state, retries
Tab Accepts the top /command autocomplete match; when input is empty, inserts the suggested command onto your shell prompt without running it
s When input is empty and the suggested command is rated medium or high danger, dry-runs it in the ephemeral sandbox
r When in error state with empty input, retries the last stream
Shift+Enter / Ctrl+J Inserts a newline in the input box
Up / Down Moves across lines, or recalls prior prompts at the top or bottom line
Left / Right Moves cursor horizontally
Home / Ctrl+A Moves cursor to start of line
End / Ctrl+E Moves cursor to end of line
Ctrl+U Deletes from cursor to start of line
Ctrl+K Deletes from cursor to end of line
Ctrl+W Deletes previous word
Esc Cancels confirmation, pickers, plan review, streaming, or running tools; exits when idle
Ctrl+C Interrupts active stream or kills running tool process group; exits immediately when idle

Permission prompt

Key Behavior
Up / k, Down / j Moves selection
Enter Confirms selected decision
Esc Cancels (denies)

Available choices depend on the tool:

  • For edit_file and write_file: Allow, Allow this file for this session, Always allow (global ~/.config/asksh/permissions.toml), Deny.
  • For other tools: Allow, Always allow in this workspace (or Always allow in this directory outside a repository, omitted in $HOME), Always allow (global), Deny.

Model picker and plan review

View Key Behavior
Model picker (/model) Up/k, Down/j, Enter, Esc Selects a profile from [[models]] and persists model = ... to config.toml
Plan review Up/k, Down/j Selects a step
Plan review Space Toggles skip on a pending or skipped step
Plan review Enter Executes the selected pending step (or next pending step) and its verify_command
Plan review Esc Discards the plan

Slash commands

Type / in the TUI input box to see up to four matching completions and press Tab to accept the top match:

Command Description
/help Shows built-in commands, keybindings, and discovered skills
/new Archives the current session, clears state, and starts a new session
/model [name] Switches the active model (disables routing for the session and saves to config.toml), or opens the picker when name is omitted
/target [uri] Shows the active target URI, or switches to local, ssh://, docker://, or k8s:// and resets session file approvals
/diff [path] Shows unified diffs for one file or all snapshotted files modified in this session
/undo [path] Restores one file or all snapshotted files from this session
/fix [context] Looks up the last failed recorded shell command for this repo/directory and diagnoses it
/sessions Lists up to 20 recent unarchived sessions
/resume [id] Resumes the given session ID (or most recent other session)
/fork Forks the current session into a new session ID
/export [md\|sh] Exports the current session as Markdown (md, default) or a shell script (sh)
/save-runbook <name> Saves suggested commands and successful shell commands as a RUNBOOK.md file
/remember <key>=<value> Saves a procedural memory entry to project (or global) memory.toml
/cost Prints token counts and estimated USD cost for this session and all sessions
/<skill> [args] Invokes a discovered SKILL.md skill