Skip to content

TUI slash commands ​

Built-in terminal commands, grouped by source module. Type /help <command> in the TUI for live availability; some commands require daemon methods or UI hooks. Aliases accept the same arguments as their command. — means no arguments or aliases.

Project-defined prompt commands are covered in file slash commands. See the TUI guide for keyboard shortcuts and client setup.

Regenerate from the repository root with bun clients/tui/scripts/generate-commands-doc.ts.

approvals ​

CommandAliasesArgumentsDescription
/approvals——list pending approvals and the standing policy
/approve—[n] [once|session|agent|global]approve a pending request
/deny—[n]deny a pending request

blueprints ​

CommandAliasesArgumentsDescription
/blueprints—[bundle-id filter]browse portable automation blueprints
/blueprint—[help|list|inspect|validate|preview|activate] …inspect, validate, preview, or activate a portable blueprint

context ​

CommandAliasesArgumentsDescription
/context/ctx—show what fills the focused session's context window

copy ​

CommandAliasesArgumentsDescription
/copy—[prompt | code [n]]Copy the last reply, a fenced code block, or the last user prompt

core ​

CommandAliasesArgumentsDescription
/help/?[command]list commands, or explain one
/quit/exit—leave the client (the daemon keeps running)
/clear——clear the transcript and the terminal scrollback
/clear-history——forget remembered prompts (↑ recall) and clear saved prompt history
/mode—[queue|steer|redirect|interrupt]how a prompt submitted during a run is handled
/theme—[dark|light|auto]switch the color theme (auto follows the terminal background)
/editor——edit the draft in $EDITOR (also Ctrl+G)
/reconnect——drop the control-plane socket and dial again
/debug—[count]show the last protocol frames

cron ​

CommandAliasesArgumentsDescription
/cron—[list [--failing] [--json] | pause|resume|run <id|name> | remove <id|name>]list, pause, resume, trigger, or remove scheduled jobs

diagnostics ​

CommandAliasesArgumentsDescription
/status——daemon status and health
/usage——token and quota usage
/cost—[range] [--by day|provider|model|session]spend breakdown
/logs—[count] [level]tail the daemon log

fork ​

CommandAliasesArgumentsDescription
/fork——branch this session (opens a Tern split when available)

hermes ​

CommandAliasesArgumentsDescription
/commands—[command]browse commands advertised by the daemon
/compress/compact[focus instructions…]compact the current session context
/heartbeat/hb[every <interval> <prompt> | status | pause | resume | clear]schedule this agent's recurring check-in; results reach your paired Telegram chat and HEARTBEAT_OK replies are suppressed
/bg—<prompt> | start <prompt> | list [status] | status <id> | result <id> | cancel <id>start and manage background tasks
/btw—<question>ask a quick side question without changing the main turn
/agents——list agents known to Lemon
/tasks—[count]list active and recent subagent tasks

model ​

CommandAliasesArgumentsDescription
/model—[id]show, pick or set the session model
/think/reasoning[off|minimal|low|medium|high|xhigh|auto]set the reasoning effort for this session
/toolpolicy/tools<full_access|minimal_core|read_only|safe_mode|…>set the tool-policy profile for this session

omp ​

CommandAliasesArgumentsDescription
/omp—[run <prompt> | status]watch, steer and start omp delegate sessions (alt+m opens the panel)

plan ​

CommandAliasesArgumentsDescription
/plan—[request…]toggle plan mode (agent plans read-only, then asks to execute)

profiles ​

CommandAliasesArgumentsDescription
/profiles——browse profiles and open their canonical chats
/profile—[help|list|current|show|open|chat|create|clone|rename|export|delete] …open, chat with, or manage a Lemon profile

run ​

CommandAliasesArgumentsDescription
/abort/stop—stop the run in flight
/queue/q[prompt]queue a prompt, or show prompts waiting for the current run
/steer—<prompt>send guidance into the active run
/redirect—<prompt>replace the active run's pending direction
/retry—[--force]retry the last failed or aborted turn (history-only rewind, then resend)
/runs—[count | runId]list active and recent runs, or show a run timeline
/goal—<set <text> | status | pause | resume | clear>standing objective for this session

session ​

CommandAliasesArgumentsDescription
/sessions—[query…] [--pinned|--unpinned] [--archived|--active] [--agent <id>] [--limit <n>]browse or safely search durable sessions (also Ctrl+X)
/session—[help|current|show|search|open|resume|title|pin|unpin|archive|unarchive|preview|export|prune|delete|new|reset] …inspect, resume, annotate, export, or safely remove sessions
/name—<title…> | --clearname the current session for later search and resume
/reset——reset the current session and clear its visible transcript
/resume—[key] [count]replay a session's stored history into the transcript
/history—[count]summarize recent messages without replaying them

session-tree ​

CommandAliasesArgumentsDescription
/tree—[label <entryId> <text> | unlabel <entryId>]browse this session's message tree: switch branch, label entries, fork from one
/rewind—[--files]rewind before an earlier prompt after an exact preview and confirmation

skills ​

CommandAliasesArgumentsDescription
/skills—[search]browse and import official Hermes skills

views ​

CommandAliasesArgumentsDescription
/palette—[query]search commands, local skills and prompt templates
/tasktree——show or hide the live subagent tree
/output——browse complete tool output receipts
/diff——inspect the latest edit diff without card truncation

Prompt history ​

The ↑ / ↓ prompt recall persists across sessions in ~/.lemon/tui-history/history.sqlite3 (SQLite, mode 0600, private 0700 directory). Transactions retain at most 100 prompts and 256 KiB of encoded prompt content; SQLite pages and its temporary rollback journal need additional disk space.

  • /clear-history forgets remembered prompts, clears saved rows and removes legacy sources.
  • Set prompt_history = false under [tui] in user or project config to stop saving and loading history. Existing history remains until /clear-history.

Only submitted prompts are saved; discarded drafts stay in memory for this session. Prompts may contain secrets. See TUI prompt history for storage bounds, migration, concurrent clear semantics and backup considerations.

Configurable keybindings ​

Set quoted action IDs under [tui.keys] in ~/.lemon/config.toml or the project .lemon/config.toml. Values replace the defaults: a key string, an array of keys, or [] / "none" to unbind. See TUI configuration. Overlays own their keys; picker-local shortcuts are not configurable here.

Action IDDefault keysDescription
lemon.picker.modelctrl+oPick a model
lemon.picker.thinkingshift+tabPick the session thinking level
lemon.sessions.switchctrl+xSwitch session
lemon.editor.externalctrl+gEdit the draft in $EDITOR
lemon.transcript.clearctrl+lClear the transcript
lemon.queue.focusctrl+qEdit the queued prompts
lemon.transcript.toggleLatestctrl+rExpand/collapse the latest tool card or thinking block
lemon.transcript.cycleDetailctrl+tCycle detail for every card: collapsed → expanded → default
lemon.palette.openctrl+pSearch commands, skills and prompts
lemon.tasks.togglealt+aShow/hide live subagent tree
lemon.omp.togglealt+mShow/hide omp delegate sessions
lemon.tools.togglealt+oCollapse/expand all tool output
lemon.tools.diffalt+dInspect the latest edit diff
lemon.clipboard.copyLastalt+shift+cCopy the last assistant reply
lemon.plan.toggleunboundToggle plan mode
lemon.model.cycleunboundCycle to the next model
tui.editor.cursorUpupMove cursor up
tui.editor.cursorDowndownMove cursor down
tui.editor.cursorLeftleft, ctrl+bMove cursor left
tui.editor.cursorRightright, ctrl+fMove cursor right
tui.editor.cursorWordLeftalt+left, ctrl+left, alt+bMove cursor word left
tui.editor.cursorWordRightalt+right, ctrl+right, alt+fMove cursor word right
tui.editor.cursorLineStarthome, ctrl+aMove to line start
tui.editor.cursorLineEndend, ctrl+eMove to line end
tui.editor.jumpForwardctrl+]Jump forward to character
tui.editor.jumpBackwardctrl+alt+]Jump backward to character
tui.editor.pageUppageUpPage up
tui.editor.pageDownpageDownPage down
tui.editor.deleteCharBackwardbackspaceDelete character backward
tui.editor.deleteCharForwarddelete, ctrl+dDelete character forward
tui.editor.deleteWordBackwardctrl+w, alt+backspace, ctrl+backspace, super+alt+backspaceDelete word backward
tui.editor.deleteWordForwardalt+delete, alt+d, ctrl+delete, super+alt+delete, super+alt+dDelete word forward
tui.editor.deleteToLineStartctrl+uDelete to line start
tui.editor.deleteToLineEndctrl+kDelete to line end
tui.editor.yankctrl+yYank
tui.editor.yankPopalt+yYank pop
tui.editor.undoctrl+-, ctrl+_Undo
tui.editor.spellingSuggestionsctrl+.Show spelling replacements
tui.input.newLineshift+enter, ctrl+jInsert newline
tui.input.submitenterSubmit input
tui.input.tabtabTab / autocomplete
tui.input.copyctrl+cCopy selection
tui.select.upupMove selection up
tui.select.downdownMove selection down
tui.select.pageUppageUpSelection page up
tui.select.pageDownpageDownSelection page down
tui.select.confirmenterConfirm selection
tui.select.cancelescape, ctrl+cCancel selection

Released under the MIT License.