> slash commands
Slash commands are typed inside a running session to control the CLI itself rather than prompt the model: manage context, inspect usage, and reach settings. They run instantly and never cost a model call. Type /help (or /?) to list them all; the ones below are the everyday set.
// slash commands
5 commands// faq
How do I check how many tokens my session has used?
Run /stats to see token usage — including cached tokens, which are cheaper — plus session duration and per-model breakdowns. The counts are cumulative for the session, so run /compress or start a fresh session to reset the working context.
What does /compress do and when should I use it?
/compress replaces the full conversation with a model-generated summary to free up context space, useful when /stats shows the window filling or the agent starts forgetting earlier turns. It is lossy, so re-attach any exact detail you still need with @ afterward.
How do I undo changes the agent made to my files?
If checkpointing is enabled, run /restore to list snapshots taken before each tool ran, or /restore <id> to roll files back to that point. Checkpointing is off by default and only covers AI-made edits, not your manual changes or ! shell command effects — enable it before risky work.
How do I copy the agent's last answer to my clipboard?
Use /copy, which puts the most recent output on your system clipboard. On Linux it needs a clipboard tool such as xclip or wl-copy installed. Use /clear to wipe the visible screen without ending the session or losing context.