Undo

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.

Undo

What one undo takes back

One undo _ reverts one action, everything it changed together.

you type

the capital of japan is Tokyo undo _

you get

the capital of japan is

The fill and the request that produced it are both removed. Every kind of change is covered:

The changeWhat undo does
text OpenCues inserted: a fill, a rewrite, a cycleremoves 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 setrestores the level read just before the change
a saved identity field or noteremoves 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 _.

When it refuses

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.

Any language

The trigger is understood, not matched against the English word.

You typeEffect
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

Where it works

Every host: Claude Code, OpenCode, Gemini CLI, the shell, and the browser extension.