Module: Rubino::Commands::BuiltIns

Defined in:
lib/rubino/commands/built_ins.rb

Overview

Single source of truth for built-in slash command names + descriptions. Referenced by the CLI UI for tab-completion and by the Executor for ‘/help` and the unknown-command “Available” list (so both stay in sync —previously `/help` omitted /quit and /mode, L7).

Constant Summary collapse

DESCRIPTIONS =

Ordered: name => one-line description shown by ‘/help`.

{
  "/status" => "Overview: model, mode, session, memory, background work",
  "/sessions" => "List recent sessions; resume, show, or delete one (--all lifts the cap)",
  "/new" => "Start a fresh session (the current one is left intact)",
  "/clear" => "Alias for /new — start a fresh session",
  "/probe" => "Ask an ephemeral side-question (not saved); tip: start a line with '? '",
  "/queued" => "Queue a message to run after the current turn (Alt+Enter does the same)",
  "/branch" => "Fork the current session into a new one and switch into it",
  "/compact" => "Compact the context now: older turns become a summary",
  "/export" => "Write the session transcript as markdown (/export [path])",
  "/memory" => "Inspect/search/forget what the agent remembers (show ID, backend, --all)",
  "/agents" => "List background subagents; steer/probe a running one, or view output",
  "/tasks" => "Alias for /agents",
  "/reply" => "Answer a subagent that is blocked waiting on you (ask_parent)",
  "/jobs" => "List the background job queue (status counts); /jobs <id> for detail",
  "/skills" => "List skills; activate one ('none' clears), or enable/disable NAME",
  "/mcp" => "List MCP servers and their tools; restart or disable one",
  "/add-dir" => "Add an extra allowed workspace directory (write/edit can reach it)",
  "/dirs" => "List the current workspace roots",
  "/config" => "Read or set configuration (/config <key> [value]; 'show' = full view)",
  "/model" => "Show or switch the model for this session (/model <name>)",
  "/mode" => "Show or switch mode (default | plan | yolo)",
  "/reasoning" => "Show or switch how reasoning is shown (hidden | collapsed | full)",
  "/think" => "Show or switch thinking effort (off | low | medium | high)",
  "/commands" => "List custom commands (and how to make them)",
  "/help" => "Show this help",
  "/paste" => "Attach an image from the clipboard",
  "/clear-images" => "Drop pending image attachments",
  "/exit" => "End session",
  "/quit" => "End session"
}.freeze
NAMES =
DESCRIPTIONS.keys.freeze