Obituary is a recycle bin tool designed specifically for AI agents, aimed at solving the cleanup challenges caused by agents rapidly producing large numbers of temporary files (such as debug scripts, logs, screenshots, test results, etc.), and preventing agents from accidentally deleting important data.
Purpose
- Provide lifecycle management for files produced by agents, with automatic cleanup upon expiry.
- Provide a safety net for deletion operations: deleted files enter the "graveyard", retained for 7 days by default, during which they can be restored.
- Intercept agents' dangerous deletion commands (such as rm -rf and git clean) and replace them with the safe obit command.
Main capabilities
- Lifecycle management: Agents can use obit mark to set a lifespan for files they write; users can use the right-click menu (Windows Explorer, macOS Finder Quick Actions, Linux Nautilus/Dolphin scripts) to set 1 day, 7 days, 30 days, or immediate burial for files or folders.
- Deletion protection: When enabled, agents' rm -rf, git clean, Remove-Item, and other commands are intercepted, and users are prompted to use the equivalent obit command, so files enter the graveyard instead of being permanently deleted. It also checks the real disk path and refuses to delete drive roots, system directories, and user profiles.
- Graveyard and restoration: All buried files are retained for 7 days by default and can be restored to their original location via obit resurrect, without overwriting existing files. A maximum graveyard capacity can be set, and when exceeded, the oldest records are cleared first.
- File identity tracking: Files are tracked via volume serial number and 128-bit file ID, so they can still be identified even if renamed or moved, avoiding accidental operations.
- Automatic registration: Disabled by default; when enabled, files can be automatically registered by rules (such as .playwright-mcp/, test-results/, *.log, *.bak, etc.) or based on writes observed by hooks, with three modes: tiered, fully automatic, and ask. Dependencies, build outputs, caches, and Git-tracked files are not automatically registered.
- Session-end tidying: Before an agent stops, it lists files created in the current session that have not been classified, prompting to set a lifecycle for them or bury them, while preserving deliverables.
- Docker container management: A lifecycle can be set for containers, stopping them upon expiry and deleting them after the retention period; a burial time can also be set for Docker volumes.
- Folder policOverview: Set policies for folders (such as Downloads) via obit watch, and files that land in them are buried after a specified time.
- Tray and mini window: The Windows tray icon shows recent burial records and can pause automatic cleanup; the mini window provides interfaces for expiring, graveyard, pending, settings, and logs, and supports batch operations.
- Multilingual: The command line, tray, mini window, and Explorer menu support English and Simplified Chinese.
Usage
- Installation: Supports Windows 10/11, macOS, and Linux (x64 and ARM64). You can send a single sentence to an agent to have it install and connect automatically, or refer to the installation guide to install manually.
- Initialization: Run obit init to add Obituary to the agent instructions (OBIT.md, Agent Skill, optional MCP) and register hooks.
- Common commands: obit add <file> <time> sets the lifecycle; obit bury buries immediately; obit resurrect <id> restores; obit list views the list; obit graveyard views the graveyard; obit config modifies the configuration.
- Agent integration: Supports Claude Code and Codex, connected via hooks and Agent Skill; the MCP server is optional.
Applicable scenarios
- Scenarios where multiple AI agents (such as Claude Code, Codex, DeepSeek, WorkBuddy) are used for development and projects tend to accumulate temporary files.
- Scenarios where there is concern that an agent executing commands such as rm -rf may mistakenly delete important data.
- Scenarios where temporary artifacts such as debug scripts, logs, and screenshots need to be cleaned up automatically while retaining recovery capability.
Limitations
- Automatic registration is disabled by default and must be enabled in settings.
- Dependencies, build outputs, caches, and Git-tracked files are not automatically registered.
- Docker volumes are not automatically registered; only explicitly marked or buried volumes are handled, and images or networks are not deleted.
- The mini window currently supports Windows, macOS, and Ubuntu 24.04 amd64.
- The interface languages of the command line, tray, and others support English and Simplified Chinese; hook and MCP protocol text remain in English.
- Specific charging, pricing, and other information are not yet provided.