Course · Cursor · The CLI, headless & CI
The CLI's own slash commands
The interactive TUI has its own set of built-in slash commands - and this is a different list from the / picker in the editor. In the editor, / opens a picker over your subagents, skills, and custom commands. In the CLI, / runs commands that control the session itself. The reference lists about three dozen of them (as of September 2026 - slash-command reference); this page groups the ones you’ll lean on, with the reference’s own wording where it is short:
- Modes -
/plan [prompt],/ask, and/debug [prompt]switch the session’s posture: the same Agent, Ask, Plan, and Debug surface as the editor’s mode picker, driven from the terminal (Agent is the default posture; the reference documents switches to the other three, not back). - Model and spend -
/model [filter]selects a model;/max-modetoggles Max Mode on legacy request-based plans (the reference’s own description; Max Mode is the legacy-plan context expansion, per the Max Mode documentation, not a feature of current usage-based plans). - Context and session -
/summarizesummarizes the conversation to reduce context (/compressis an alias);/clearstarts a new chat session (/new,/new-chat, and/newchatare all aliases of it, so a tutorial that lists/new-chatas a separate command is listing an alias);/resumeopens recent chats and resumes one;/rewindjumps back to a previous message;/forkforks the current chat into a new session. - Control surfaces -
/run-everything [on|off|status]toggles Run Everything - the run mode where “every tool call runs automatically”, per the run modes documentation - or shows its status (/auto-runis an alias);/sandboxconfigures sandbox mode and network access;/mcp [list|list-tools] [identifier]manages MCP servers (Cursor’s mechanism for plugging in external tools) and lists their tools;/pluginmanages plugins and marketplaces. - Housekeeping -
/help [command]shows help or one command’s details;/configconfigures CLI settings interactively;/updateupdates the CLI,/logsshows the debug log path,/aboutprints version, system, and account info, and/quitexits.
The set is version-sensitive in both directions: new commands arrive flagged as rolling out (/goal was, at the time of writing), names move, and aliases collect. Type / in your installed CLI or read the reference before you lean on a command your muscle memory brought over from the editor.
Two boundaries keep this page honest. First, these commands configure an interactive session; they are not a substitute for a sandbox, a disposable runner, or least-privilege credentials. A headless -p run should use documented flags and an explicit output format instead - the containment is the environment, not the command set. Second, these exist only in the interactive TUI: a headless run isn’t a session you type / into, it’s a single shot. The slash commands are for when you’re sitting in the terminal agent driving it live.
Which is the point at which the interactive surface runs out and the automated one takes over. Put the single-shot command on a runner and budgetcli (the course’s illustrative personal-finance API) gets a reviewer that never forgets to show up. Next: wiring it into CI.