Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

REPL Commands

All commands start with /. Type /help inside yoyo to see the full list.

CommandDescription
/quit, /exitExit yoyo
/helpShow available commands

Conversation

CommandDescription
/clearClear conversation history and start fresh
/compactCompress conversation to save context space (see Context Management)
/retryRe-send your last input — useful when a response gets cut off or you want to try again
/historyShow a summary of all messages in the conversation

Model

CommandDescription
/model <name>Switch to a different model (clears conversation)

Example:

/model claude-sonnet-4-20250514

Session

CommandDescription
/save [path]Save conversation to a file (default: yoyo-session.json)
/load [path]Load conversation from a file (default: yoyo-session.json)

See Session Persistence for details.

Information

CommandDescription
/statusShow current model, git branch, working directory, and session token totals
/tokensShow detailed token usage: context window fill level, session totals, and estimated cost

The /tokens command shows a visual progress bar of your context window:

  Context window:
    messages:    12
    context:     45.2k / 200.0k tokens
    █████████░░░░░░░░░░░ 23%

Git

CommandDescription
/diffShow git diff --stat of uncommitted changes
/undoRevert all uncommitted changes (git checkout -- .)

The /undo command shows you what will be reverted before doing it.

Unknown commands

If you type a /command that yoyo doesn’t recognize, it will tell you:

  unknown command: /foo
  type /help for available commands

Note: lines starting with / that contain spaces (like /model name) are treated as command arguments, not unknown commands.