Type undo _ to take back the last change OpenCues made; redo _ re-applies it. On by default; turn off with undo-mode: off in ~/.cues/OPENCUES.md.
One undo _ reverts one action, everything it changed together.
you type
you get
The fill and the request that produced it are both removed. Every kind of change is covered:
| The change | What undo does |
|---|---|
| text OpenCues inserted: a fill, a rewrite, a cycle | removes it; a burst of cycles (volume stepped six times) counts as one change, so one undo returns to where the burst started |
a settings change (voice mode off _) | restores the prior value; a provider switch restores the provider and its paired model together |
| a volume or brightness set | restores the level read just before the change |
| a saved identity field or note | removes it, through the same validation as the original write |
Changes survive sending a message: volume 40 _, send, then undo _ in the next message still restores your volume. Add a count to go deeper: undo 3 _.
Undo never guesses.
A reverted piece of text must still be findable, exactly once, in your text. If you edited it away, or the same words now appear twice, that part is skipped and reported, never approximated. A setting or a volume level is only restored if it still holds what the change wrote: if you hand-edited the file or another app moved the volume since, undo leaves it alone. When nothing at all can be undone you get an inline [OpenCues: nothing to undo] note; one backspace clears it.
The text half of a message you already sent is also out of reach: undo says so and reverts the rest of that change. And external effects of a script cannot be reversed: a script that called an API has called it. The text it inserted still reverts, and the report says which half happened.
The trigger is understood, not matched against the English word.
| You type | Effect |
|---|---|
| deshacer _ | undo |
| 元に戻して _ | undo |
| annuler les trois derniers _ | undo 3, the count normalised from the words |
| undo my last commit _ | not an OpenCues undo: requests about things outside your text (git, deploys) go to the normal lookup instead |
Every host: Claude Code, OpenCode, Gemini CLI, the shell, and the browser extension.