unf is a local-first background daemon that monitors text file saves within specified directories and automatically records snapshots. File contents are stored in an object store, while metadata is managed via SQLite. The tool skips binary files and respects .gitignore files if present.
Local File Snapshot Tool unf Released to Protect Against AI Agent Misoperations
This article is a translation. Read the Japanese original
The CLI follows the git interface, providing commands such as unf log, unf diff, and unf restore. The installation also includes a Tauri-based desktop UI, enabling users to browse files chronologically while monitoring activity levels via a histogram.
On the technical side, it utilizes FSEvents on macOS and inotify on Linux, using BLAKE3 hashes to detect duplicates upon changes. It employs a two-process architecture: a core daemon and a sentinel watchdog managed by launchd (macOS) or systemd (Linux) that restarts the daemon and restores consistency in the event of a crash.
The author stated that one of the design goals is to prevent permanent destruction caused by an AI agent's erroneous rm -rf. All CLI output is sent to stdout; for example, the author suggests a workflow where a user could run unf diff --at 1h | pbcopy to pass the diffs from the last hour to an AI for review.
Sources: Show HN: Unfucked - version all changes (by any tool) - local-first/source avail (HN 137pt, 91 comments) (HN Search (backfill), 2026-02-27)