Skip to content

The REPL

Start the REPL with:

Terminal window
cyclops

The REPL keeps the full conversation history across turns. The model sees everything said earlier in the session, so you can refer back to prior context naturally.

KeyAction
EnterSubmit message
Alt+EnterInsert a newline (for multi-line messages)
Shift+TabToggle between auto and review tool approval mode
Ctrl+OExpand or collapse tool output
Ctrl+CCancel the current generation
Ctrl+C twiceExit
Ctrl+DExit (on empty input)
CommandDescription
/helpList all available commands
/clearWipe history and clear the screen
/compactSummarize history via the LLM to save context space
/model [name]Switch model interactively or by name
/modeToggle between auto and review tool approval
/mcpManage MCP servers
/save [name]Save the current session to disk
/load <name>Load a previously saved session
/sessionsList all saved sessions
/costShow token usage and estimated cost for the session
/exitQuit

Prefix any input with ! to run it as a shell command. The output appears inline in the REPL:

> ! git log --oneline -5
> ! npm test
> ! ls -la src/

This is useful for checking results without leaving the session.

Pass these before your message for one-shot runs:

Terminal window
cyclops [OPTIONS] [PROMPT]
Options:
-m, --model TEXT Model to use (overrides config)
--stream/--no-stream Toggle streaming output
--cwd TEXT Working directory (default: current dir)

Example:

Terminal window
cyclops --model gpt-4o --no-stream "summarise this file" < notes.txt