Skip to content

Claude Code ​

Ask the agent to use obit bury when removing a file. In graveyard mode you can bring it back with obit resurrect during the retention period. Ask for a workspace with obit mktemp 1d and its temporary files get a one-day lifespan.

Connect Obituary ​

Run this in the project you want to connect:

sh
obit init --agent claude --mcp --guard-rm

Default configuration locations:

  • .claude/settings.json
  • CLAUDE.md
  • .mcp.json

Use Claude Code 2.1.139 or later. When the delete guard recognizes a shell delete, Claude sees the equivalent obit command. The file goes to the graveyard when Claude runs that command.

Check the connection ​

Restart the agent and ask it to call obit_list. An empty list is a successful response too. To inspect the configuration on disk, run:

sh
obit init --agent claude --show

Pause or disconnect ​

To pause callbacks, start the agent with OBIT_DISABLED=1. Explicit MCP calls still work.

To uninstall this integration, run the command below and restart the agent. Also remove any entries you added by hand. Files in the graveyard stay there.

sh
obit init --agent claude --uninstall
Need to install Obituary first?

Download and review the script before you run it.

powershell
irm https://raw.githubusercontent.com/woodfishhhh/obituary/main/packaging/install.ps1 -OutFile install.ps1
.\install.ps1
bash
curl -fsSL https://raw.githubusercontent.com/woodfishhhh/obituary/main/install.sh -o install.sh
bash install.sh

:::

MIT