CORE CONCEPTS
Sessions and undo
Every conversation is saved as it happens, one line per message. Every file change is snapshotted before it is made. So you can come back to any conversation, branch it, or put your files back.
--resume continues, --fork branches, undo puts files back.Commands
uno sessions # this folder's sessions: id, age, messages, first prompt
uno --resume # continue the newest
uno --resume a1f3 -p "now add docs" # continue a given one, as a one-shot run
uno --fork a1f3 -p "try it with a cache instead" # branch, original unchanged
uno undo # put back the newest file change
uno undo --all # put back every change of the newest session
uno undo --force # even if something else changed the file since
In the chat: /sessions, /resume, /fork, /undo, /undo all.
What undo covers, and what it does not
- Covered: every change made with
write,editorapply_patch, including changes to long-term memory. - Not covered: files changed by shell commands (
sed -i,mv, a code generator). Uno tells the model to change files with its file tools for this reason. If a command changed a file since, undo stops and names--force. - Safe with your own edits: if you changed the file after Uno did, undo refuses rather than overwrite your work.
Use cases
Pick up tomorrow
Close the terminal. Tomorrow, the whole conversation is still there.
uno --resumeTry two approaches
Fork once for each idea, compare the diffs, keep the better one.
uno --fork a1f3 -p "use a trie instead"Bad idea, roll back
The refactor went sideways. Undo the whole session's file changes in one go.
uno undo --allA crash mid-task
A session cut off mid-tool-call resumes cleanly: the unfinished calls are marked interrupted.
uno --resumeSessions are plain append-only JSONL, one message per line with an id and parent id. Resume is "read the lines", fork is "copy the file", and a crash loses at most one half-written line. Undo uses a snapshot before each file-tool change rather than a shadow git repo: cheap, always on, and honest about what it cannot cover.