$
$ rm -rf ./regrets 2>/dev/null $ history -c && history -w $ echo "what have I done" | /dev/null
$
...
Every keystroke is a commitment.
Every command, an irreversible act
written into the ledger of your shell history.
 
But what if it wasn't?
 
undo.sh is the space between action and consequence.
A temporal buffer where every rm, every mv,
every chmod exists in a state of quantum
superposition -- both executed and not-executed --
until you decide which timeline to collapse.
 
Think of it as git for your entire filesystem.
Not version control. Reality control.
 
Every action you take forks the timeline.
Every undo collapses it back.
The question is not whether you can undo.
The question is how far back you dare to go.
 
Your filesystem is a directed acyclic graph
of decisions. Each node is a state.
Each edge is a command. And undo.sh
lets you walk backward along any edge,
to any node, at any time.
 
No snapshots. No diffs. No journals.
Just pure temporal reversal.
$ git reset --hard HEAD~47 $ find / -name "*.bak" -delete
$
...
init fork feature/new-reality hotfix merge experiment (undone) revert branch: undo HEAD
init ─ the first commit. the original action.
fork ─ where the timeline splits. two realities diverge.
merge ─ realities collapse. one state survives.
experiment ─ the branch that was undone. it exists only as a ghost.
revert ─ walking backward through the graph. choosing a different edge.
HEAD ─ you are here. the present moment. still reversible.
$ sudo rm -rf /usr/share/memories
$
...
If you can undo anything,
does anything matter?
 
If every action is provisional,
is any action real?
 
The power to reverse time
is the power to deny consequence.
And without consequence,
there is no meaning.
 
We built this because we were afraid.
Afraid of the permanence of rm.
Afraid of the finality of drop table.
Afraid of the silence after kill -9.
 
But there is one thing
that cannot be undone.
 
$ undo --all
error: cannot undo the original action
the first keystroke has no parent commit.
there is no state before the beginning.
 
You cannot undo the choice to begin.
$
 
logout
 
Connection to undo.sh closed.
Session duration: the length of a regret.
Commands executed: all of them.
Commands undone: not enough.