Skip to content

FileTomb — the trash bin & lifespan guard for AI coding agents

Give AI files a lifespan

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

  • Hover or tap for its lifespan
  • Click to extend
  • Drag to a later day
  1. Out of the boxYour agent gives the debug scripts, logs and screenshots it writes a lifespan; they go to the graveyard when due, restorable for seven days.
  2. When you want moreRight-click files to add them, give your Downloads folder a policy, or turn on automatic registration in Settings.

What an agent deletes goes to the graveyard first

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.

Claude CodeBack where it was$rm -rf build
CodexBack where it was$
Other agentsBack where it was$
FileTombdenies the delete, offers the equivalent
Graveyardkept 7 days by defaultbuild/Restorable for 0 days
Resurrectobit resurrect
Purgeafter retention

Agents pushed us into writing it

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.

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.

Not sure it's still needed? Bury it

Needed again within seven days? The agent is told the grave number.

# the guard denies it; rm never runs
FileTomb'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 days
ID 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\build

Afraid of one rm -rf

The 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 '/')

Afraid the command changes on the way

With OUT empty, Git Bash turned / into its install folder; obit rm checked the real path and refused.

What the agent does, and what FileTomb does next

The agentFileTomb
rm -rf buildWith 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 2dBuried in two days, restorable as it was for seven more.
obit mktemp 1dA day later the whole scratch folder buries itself.
reads a file that was already buriedIs told the grave number on the spot; obit resurrect puts it back.

Three promises

  • Git-tracked files are left aloneFileTomb never registers a file Git tracks on its own; a folder holding one tracked file is skipped whole.
  • Restorable for seven daysBuried things are kept 7 days by default and obit resurrect puts them back as they were (unless you chose recycle mode).
  • You and the agent decide what goes inNothing goes in by itself: only what the agent registers and what you add; automatic registration is yours to turn on.

The life of a file

From registering to burial, then resurrection or purge: every step is visible, and you can change your mind until it expires.

  1. Register

    The agent registers it, or you add it with a right-click.

    obit add debug.log 2h
  2. Expire

    Until then, see what is left, extend it, or spare it.

    obit list
    • obit extendExtend
    • obit spareSpare
  3. Bury

    When due it moves to a graveyard on the same drive, as it was; kept 7 days by default.

    obit graveyard
  4. Resurrect

    Back where it was, never overwriting.

    obit resurrect 3
  5. Purge

    Only after retention is it really deleted.

    obit purge

Resurrect without the command line

Calendar

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

Expiring

Things still in place with a lifespan; extend or spare them any time before they expire.

Connect the agents you use

obit init --agent …

Install

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.

Make FileTomb better with us

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

Stars over time
Stars of the FileTomb repository over time
QR code of the FileTomb QQ group, number 1135603207

QQ group

1135603207

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