The agent Interactive mode

Interactive mode

Without -p in a terminal, saetta code opens pi's terminal UI, ported to C: differential rendering, an editor with "/" commands and "@" file completion, markdown with highlighted code, tool views with word diffs for edits, bash output shown as it runs, and selectors for the model, settings, thinking level and session tree.

/tree: a session with two branches from the first answer, the current one highlighted

The editor

Enter sends. Shift+Enter (or a trailing \) starts a new line. While the agent works, Enter queues a steering message, delivered at the next step of the current turn, and Option+Enter queues a follow-up, delivered when the turn ends. Option+Up brings queued messages back into the editor.

  • / opens the command list, filtered as you type.
  • @ completes file names in the project.
  • !command runs a shell command and adds its output to the context; !!command runs it without adding it.
  • Ctrl+G edits the message in an external editor (externalEditor in settings.json, else $VISUAL or $EDITOR).
  • Ctrl+V pastes from the clipboard.

The footer shows the folder as ~/..., the git branch and status, the time of the last turn, and the model's full name and quantization.

Commands

commandwhat it does
/settingsopen the settings menu
/modelswitch model or pack, download a pack, add or edit OpenAI-compatible models
/scoped-modelschoose the models Ctrl+P cycles through
/thinkingset the thinking level
/themechoose the color theme, with a live preview
/newstart a new session
/resumeopen another session
/treemove through the session tree and switch branches
/forkstart a new session from an earlier user message
/cloneduplicate the session at the current position
/compactcompact the session context now
/nameset the session's display name
/sessionshow the session's info and stats
/exportwrite the session as HTML (default) or JSONL
/importload a JSONL session, keeping its id and working directory
/shareupload the session as a secret GitHub gist
/copycopy the last answer to the clipboard
/trustsave this project's trust decision
/reloadreload keybindings, skills, themes and context files
/mcpmanage MCP servers: sign in, reconnect, enable or disable, change exposure
/monitorshow the engine's live statistics
/changelogshow the release notes
/hotkeysshow all keyboard shortcuts
/quitquit Saetta Code

Skills add one command each, /skill:name; see Context and skills.

Keys

This is the list /hotkeys shows, with pi's default bindings on macOS.

keyaction
Up, Down, Left (Ctrl+B), Right (Ctrl+F)move the cursor, browse history
Option+Left, Ctrl+Left, Option+B / Option+Right, Ctrl+Right, Option+Fmove by word
Home, Ctrl+Astart of line
End, Ctrl+Eend of line
Ctrl+]jump forward to a character
Ctrl+Option+]jump backward to a character
Page Up / Page Downscroll by page

Editing

keyaction
Entersend the message
Shift+Enter, Ctrl+Jnew line
Ctrl+W, Option+Backspacedelete the word before the cursor
Option+D, Option+Deletedelete the word after the cursor
Ctrl+Udelete to the start of the line
Ctrl+Kdelete to the end of the line
Ctrl+Ypaste the most recently deleted text
Option+Ycycle through deleted text after pasting
Ctrl+-undo

Other

keyaction
Tabpath completion, accept autocomplete
Escapecancel autocomplete, stop the turn
Ctrl+Cclear the editor (first), exit (second)
Ctrl+Dexit (when the editor is empty)
Ctrl+Zsuspend to the background
Shift+Tabcycle the thinking level
Ctrl+P / Shift+Ctrl+Pcycle models
Ctrl+Lopen the model selector
Ctrl+Oexpand or collapse tool output
Ctrl+Tshow or hide thinking blocks
Ctrl+Gedit the message in an external editor
Ctrl+Xcopy the selection or the last answer
Option+Enterqueue a follow-up message
Option+Uprestore queued messages
Ctrl+Vpaste from the clipboard

Escape twice with an empty editor opens /tree (doubleEscapeAction in settings.json: tree, fork or none).

Fullscreen

The UI runs fullscreen, with scrolling, mouse selection and its own scrollbar. Selecting text copies it; with fullscreenCopyOnSelect set to false in settings.json, Ctrl+X copies the selection instead. Ctrl+X copies the last answer when nothing is selected, as /copy does.

Edit this page on GitHub