Reference

reedline CLI & Slash Commands

Master the interactive REPL, multiline editor shortcuts, and built-in slash commands.

The reedline Interactive REPL

CACode leverages the reedline terminal line-editor (the same engine powering NuShell) for a rich CLI experience.

Keyboard Shortcuts:

  • Ctrl + Enter / Alt + Enter: Insert newline for multiline prompts.
  • Ctrl + R: Interactive reverse history search.
  • Ctrl + L: Clear terminal screen while preserving context.
  • Tab: Autocomplete file paths, slash commands, and Git branch names.

Built-in Slash Commands:

Command Description
/plan <task> Formulate a detailed multi-step execution plan without writing code
/review Review uncommitted Git changes against security and performance gates
/test [target] Run project test suites, capture errors, and auto-fix failures
/diff Display unified colored diff of changes made during the active session
/compact Compress conversation history to reclaim context window space
/model <name> Switch active LLM model or provider mid-session
/undo Revert the last batch of file modifications using Git stash snapshot
/clear Reset conversation memory and start a fresh session
/help Display all available commands and tool status