Rewind, resume and check your usage: the SparrowCodes CLI commands worth knowing

The SparrowCodes CLI 0.2 added /rewind, /sessions, /usage, /context, /export, /permissions and /mcp. What each one does, and the few you will use every day.

· 4 min read · SparrowCodes team

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

CommandWhat it does
/modelChoose the model: Sparrow Auto, Claude, GPT and the rest
/agentSwitch agent, such as Build or Plan (shift+tab cycles)
/rewindGo back to an earlier message and restore files (Esc Esc)
/undo, /redoRoll back your last message and its file changes, or bring it back
/sessionsContinue a past session (also /resume)
/newStart a new session
/usagePlan usage and when the limits reset
/contextHow full the context window is
/compactCondense older context to free space
/exportSave this chat as Markdown (/export [file])
/permissionsSee and remove always-allow rules
/mcpMCP servers: status, connect, disconnect
/connectSign in with your SparrowCodes API key
/editorWrite your prompt in your own editor
/helpEvery command and shortcut
SparrowCodes CLI 0.2.0-beta.4.

Get the latest version

terminal
npm i -g sparrowcodes

New 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.

Rewind, resume and check your usage: the SparrowCodes CLI commands worth knowing · SparrowCodes