Agents make mess faster than people clean up
The agent knows what it wrote and gives it a lifespan as it writes; you add your own with a right-click. Whatever is in leaves on time.
FileTomb — the trash bin & lifespan guard for AI coding agents
Leftovers leave when they expire; deleted files come back for seven days.
Windows 10 and 11, MIT licensed
FileTomb (formerly Obituary) — CLI stays obit, 100% compatible with 1.x
With the delete guard on, rm -rf, git clean and Remove-Item become the equivalent obit command, and find -delete or xargs rm are stopped too.
$rm -rf build$$
FileTombdenies the delete, offers the equivalentobit resurrectThe agent knows what it wrote and gives it a lifespan as it writes; you add your own with a right-click. Whatever is in leaves on time.
the agent reads debug.log
FileTomb: "debug.log" was buried as #5 (buried 2026-11-11T09:20:00+08:00, restorable until 2026-11-18T09:20:00+08:00). `obit resurrect 5` restores it.
Needed again within seven days? The agent is told the grave number.
# the guard denies it; rm never runsFileTomb's delete guard is on: `'C:/work/obit.exe' rm -rf build` provides restorable deletion; `obit resurrect` restores graveyard entries.# the equivalent command# in the graveyard, purged after 7 daysID BURIED PURGE SIZE PATH
#2 2026-11-11 00:36 in 7d 23 B C:\work\build# back as it was#2 resurrected C:\work\buildThe delete guard stops that one delete and offers the equivalent; one command puts it back.
$ OUT=; obit rm -rf "$OUT"/
rm: it is dangerous to operate recursively on 'C:/Program Files/Git/' (same as '/')
With OUT empty, Git Bash turned / into its install folder; obit rm checked the real path and refused.
| The agent | FileTomb |
|---|---|
rm -rf build | With the delete guard on, denied with obit rm -rf build offered instead; it goes to the graveyard and can come back. |
obit mark debug.log 2d | Buried in two days, restorable as it was for seven more. |
obit mktemp 1d | A day later the whole scratch folder buries itself. |
| reads a file that was already buried | Is told the grave number on the spot; obit resurrect puts it back. |
From registering to burial, then resurrection or purge: every step is visible, and you can change your mind until it expires.
The agent registers it, or you add it with a right-click.
obit add debug.log 2hUntil then, see what is left, extend it, or spare it.
obit listobit extendExtendobit spareSpareWhen due it moves to a graveyard on the same drive, as it was; kept 7 days by default.
obit graveyardBack where it was, never overwriting.
obit resurrect 3Only after retention is it really deleted.
obit purgeA column per day; each file sits on the day it is buried or cremated. Drag it to a later day to extend it, or click a day header to select the whole day for batch actions.
Things still in place with a lifespan; extend or spare them any time before they expire.
obit init --agent …Windows 10 / 11, macOS and Linux (x64 and ARM64).
FileTomb (formerly Obituary) — CLI stays obit, 100% compatible with 1.x
Send this sentence to the agent you use (Claude Code, Codex, Cursor…). It stops wherever a decision is yours.
Read https://filetomb.woodfish.site/agent-install.md and follow it to install FileTomb and connect it to yourself.
Then restart the agent. The logs and screenshots it writes get a lifespan from it, are buried when due and stay restorable for seven days; with the delete guard on, its rm -rf becomes a restorable obit rm -rf.
Issues and pull requests are welcome. Best of all is an issue that brings its fix: find a problem, fix it, and your avatar shows up here. How to contribute

1135603207
Chinese-speaking users chat here: scan the code or search the group number in QQ.