Type / in the SparrowCodes CLI and you get a list of commands. Most people use two of them. Here are the rest, starting with the ones that save the most time.
/rewind: go back when the agent goes the wrong way
Sometimes you see three steps in that the agent misunderstood you. /rewind, or Esc twice, lists your own messages, newest first. Pick one and the session goes back to just before it: the later messages go, and so do the file changes they made. Your old prompt lands back in the box so you can reword it.
For a single step, /undo rolls back your last message and the files it changed, and /redo brings it back.
/sessions: pick up where you left off
/sessions (or /resume) lists your past sessions so you can continue one, with its full history. Close the terminal at night, open it in the morning, and carry on. /new starts a fresh session.
A session cut off by a restart waits for you instead of carrying on in the background, and the CLI warns you when two sessions are working in the same folder.
/usage and /context: know where you stand
/usage shows how much of your plan is left in the 5-hour and weekly windows, and when each one resets. On the free plan it shows how many of the day's requests you have used.
/context shows how full the model's context window is. When it gets close, /compact condenses the older part of the session to make room, so long sessions keep working.
Every command
| Command | What it does |
|---|---|
/model | Choose the model: Sparrow Auto, Claude, GPT and the rest |
/agent | Switch agent, such as Build or Plan (shift+tab cycles) |
/rewind | Go back to an earlier message and restore files (Esc Esc) |
/undo, /redo | Roll back your last message and its file changes, or bring it back |
/sessions | Continue a past session (also /resume) |
/new | Start a new session |
/usage | Plan usage and when the limits reset |
/context | How full the context window is |
/compact | Condense older context to free space |
/export | Save this chat as Markdown (/export [file]) |
/permissions | See and remove always-allow rules |
/mcp | MCP servers: status, connect, disconnect |
/connect | Sign in with your SparrowCodes API key |
/editor | Write your prompt in your own editor |
/help | Every command and shortcut |
Get the latest version
npm i -g sparrowcodesNew to it? Start on the free plan with 50 requests a day, no card. The CLI page has the install script for macOS, Linux and Windows.