UNOUNOCODE

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.

IN ONE LINE--resume continues, --fork branches, undo puts files back.
session a1f3 · one line per message, appended as it happens meta --resume adds here --fork a1f3: a new session, the original untouched UNDO STACK 3 edit src/api.ts2 write src/api.test.ts1 edit README.md /undo pops the top
Resume grows the line; fork starts a new one from a copy; undo walks back the file snapshots.

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, edit or apply_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 --resume

Try 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 --all

A crash mid-task

A session cut off mid-tool-call resumes cleanly: the unfinished calls are marked interrupted.

uno --resume
DESIGN DECISION · D4, M16, M17

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