frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Unfucked – version every change between commits - local-first

https://www.unfudged.io/
27•cyrusradfar•22h ago
I built unf after I pasted a prompt into the wrong agent terminal and it overwrote hours of hand-edits across a handful of files. Git couldn't help because I hadn't finished/committed my in progress work. I wanted something that recorded every save automatically so I could rewind to any point in time. I wanted to make it difficult for an agent to permanently screw anything up, even with an errant rm -rf

unf is a background daemon that watches directories you choose (via CLI) and snapshots every text file on save. It stores file contents in an object store, tracks metadata in SQLite, and gives you a CLI to query and restore any version. The install includes a UI, as well to explore the history through time.

The tool skips binaries and respects `.gitignore` if one exists. The interface borrows from git so it should feel familiar: unf log, unf diff, unf restore.

I say "UN-EF" vs U.N.F, but that's for y'all to decide: I started by calling the project Unfucked and got unfucked.ai, which if you know me and the messes I get myself into, is a fitting purchase.

The CLI command is `unf` and the Tauri desktop app is titled "Unfudged" (kids safe name).

How it works: https://unfucked.ai/tech (summary below)

The daemon uses FSEvents on macOS and inotify on Linux. When a file changes, `unf` hashes the content with BLAKE3 and checks whether that hash already exists in the object store — if it does, it just records a new metadata entry pointing to the existing blob. If not, it writes the blob and records the entry. Each snapshot is a row in SQLite. Restores read the blob back from the object store and overwrite the file, after taking a safety snapshot of the current state first (so restoring is itself reversible).

There are two processes. The core daemon does the real work of managing FSEvents/inotify subscriptions across multiple watched directories and writing snapshots. A sentinel watchdog supervises it, kept alive and aligned by launchd on macOS and systemd on Linux. If the daemon crashes, the sentinel respawns it and reconciles any drift between what you asked to watch and what's actually being watched. It was hard to build the second daemon because it felt like conceding that the core wasn't solid enough, but I didn't want to ship a tool that demanded perfection to deliver on the product promise, so the sentinel is the safety net.

Fingers crossed, I haven’t seen it crash in over a week of personal usage on my Mac. But, I don't want to trigger "works for me" trauma.

The part I like most: On the UI, I enjoy viewing files through time. You can select a time section and filter your projects on a histogram of activity. That has been invaluable in seeing what the agent was doing.

On the CLI, the commands are composable. Everything outputs to stdout so you can pipe it into whatever you want. I use these regularly and AI agents are better with the tool than I am:

  # What did my config look like before we broke it?
  unf cat nginx.conf --at 1h | nginx -t -c /dev/stdin

  # Grep through a deleted file
  unf cat old-routes.rs --at 2d | grep "pub fn"

  # Count how many lines changed in the last 10 minutes
  unf diff --at 10m | grep '^[+-]' | wc -l

  # Feed the last hour of changes to an AI for review
  unf diff --at 1h | pbcopy

  # Compare two points in time with your own diff tool
  diff <(unf cat app.tsx --at 1h) <(unf cat app.tsx --at 5m)

  # Restore just the .rs files that changed in the last 5 minutes
  unf diff --at 5m --json | jq -r '.changes[].file' | grep '\.rs$' | xargs -I{} unf restore {} --at 5m

  # Watch for changes in real time
  watch -n5 'unf diff --at 30s'
What was new for me: I came to Rust in Nov. 2025 honestly because of HN enthusiasm and some FOMO. No regrets. I enjoy the language enough that I'm now working on custom clippy lints to enforce functional programming practices. This project was also my first Apple-notarized DMG, my first Homebrew tap, and my second Tauri app (first one I've shared).

Install & Usage:

  > brew install cyrusradfar/unf/unfudged
Then unf watch in a directory. unf help covers the details (or ask your agent to coach).

Comments

s0a•21h ago
this seems insanely useful and well thought out. kinda surprised something like it doesn’t already exist. def useful in the age of agents
mplanck•4h ago
Yep, I’ve needed something like this a few times. Even when trying to be careful to commit every step to a feature branch, I’ve still found myself asking for code fixes or updates in a single iteration and kicking myself when I didn’t just commit the damn thing. This will be a nice safety net.
cyrusradfar•2h ago
Thank you! That's great to hear.

I spent a bit of time being baffled nothing existed that does this. Then I realized that, until Agents, the velocity of changes wasn't as quick and errors were rare(er)

datawars•44m ago
Thank you for pointing out a problem that I had (which I do!), solving with Time Machine and trying to make myself commit more requently - and for providing a solution! Looks very cool, too. If I close the terminal I started --watch in, will the watch continue?

Writing this, I wanted to ask if the desktop app includes the CLI, but there it says it on your website :-) Thanks for thinking ahead so far, but then picking us up here and now so we can easily follow along into an unf* future!

Looking forward to try it.

cyrusradfar•32m ago
yes, it worked a lot so once you say watch it watches until you stop it, including through closing terminals, computer power off, etc. It should restart on reboot, but -- test it yourself and tell me if I'm wrong :)

  > unf watch

  # reboot
  > unf list
it should say watching on your directory still, if it stays crashed or something else. ping me at support at v1.co

Just one human, two machines at my home can't replicate all configurations...

rishabhaiover•1h ago
haha the NSFW toggle is crazy
cyrusradfar•1h ago
FINALLY, the only feedback I needed :) I spent far too much time on the Unicorn exploding properly...
OutOfHere•1h ago
No open source code means no use.
cyrusradfar•1h ago
Appreciate that perspective and assumed some folks would feel that way.

I am more interested in testing if folks have the problem and like the shape of the solution, before I try to decide on the model to sustain it. Open Source to me is saying -- "hey do you all want to help me build this?"

I'm not even at the point of knowing if it should exist, so why start asking people to help without that validation.

I work(ed) with OSS projects that have terrible times sustaining themselves and don't default to it bc of that trauma.

Thanks for stopping by.

datawars•37m ago
Well, some kind of transparency would be good indeed. Open source doesn't mean open contribution.
cyrusradfar•29m ago
I'm happy to clean up the source for sharing. I didn't prioritize that for this HN Show but if folks like it, use it, and want to review for whatever reason including security audits -- happy to share.
bananapub•1h ago
why did you make it so complicated? magit has a `magit-wip-mode` that just silently creates refs in git intermittently so you can just use the reflog to get things back.
cyrusradfar•1h ago
This was designed for any file save.

From what I know (correct me) magit-wip-mode hooks into editor saves. UNF hooks into the filesystem.

magit-wip-mode is great if your only risk is your own edits in Emacs. UNF* exists because that's no longer the only risk; agents are rewriting codebases/docs and they don't use Emacs.

mpalmer•1h ago
This is so cool to have made yourself. How would you compare this to the functionality offered by jujutsu? I love the histogram, it was the first sort of thing I wanted out of jujutsu that its UI doesn't make very easy. But with jj the filesystem tracking is built in, which is a huge advantage.
cyrusradfar•59m ago
I'm not a user, but I looked at the site and it looks like jj snapshots when you run a jj command. UNF snapshots continuously.

If an AI agent rewrites 30 files and you haven't touched jj yet, jj has the before-state but none of the intermediate states. UNF* captured every save as it happened, at filesystem level.

jj is a VCS. UNF is a safety net that sits below your VCS.

  - UNF* works alongside git, jj, or no VCS at all
  
  - No workflow change. You don't adopt a new tool, it just runs in the background
  
  - Works on files outside any repo (configs, scratch dirs, notes) as it doesn't require git.
They're complementary, not competing.

W.r.t. to the histogram, this is my fav feature of the app as well. Session segmentation (still definitely not perfect) creates selectable regions to make it easier, too. The algo is in the CLI as well for the Agent recap (rebuilding context) features.

A better streams API is possible for JavaScript

https://blog.cloudflare.com/a-better-web-streams-api/
281•nnx•6h ago•98 comments

Writing a Guide to SDF Fonts

https://www.redblobgames.com/blog/2026-02-26-writing-a-guide-to-sdf-fonts/
22•chunkles•1h ago•1 comments

The Robotic Dexterity Deadlock

https://www.origami-robotics.com/blog/dexterity-deadlocks.html
10•shmublu•14m ago•0 comments

Let's discuss sandbox isolation

https://www.shayon.dev/post/2026/52/lets-discuss-sandbox-isolation/
14•shayonj•1h ago•0 comments

Dan Simmons, author of Hyperion, has died

https://www.dignitymemorial.com/obituaries/longmont-co/daniel-simmons-12758871
191•throw0101a•1h ago•68 comments

Allocating on the Stack

https://go.dev/blog/allocation-optimizations
69•spacey•3h ago•25 comments

We Built Secure, Scalable Agent Sandbox Infrastructure

https://browser-use.com/posts/two-ways-to-sandbox-agents
16•gregpr07•5h ago•3 comments

Modeling cycles of grift with evolutionary game theory

https://www.oranlooney.com/post/grifters-skeptics-marks/
45•ibobev•3d ago•17 comments

Kyber (YC W23) Is Hiring an Enterprise Account Executive

https://www.ycombinator.com/companies/kyber/jobs/59yPaCs-enterprise-account-executive-ae
1•asontha•1h ago

We gave terabytes of CI logs to an LLM

https://www.mendral.com/blog/llms-are-good-at-sql
115•shad42•4h ago•74 comments

Court finds Fourth Amendment doesn’t support broad search of protesters’ devices

https://www.eff.org/deeplinks/2026/02/victory-tenth-circuit-finds-fourth-amendment-doesnt-support...
330•hn_acker•4h ago•50 comments

Get free Claude max 20x for open-source maintainers

https://claude.com/contact-sales/claude-for-oss
290•zhisme•10h ago•142 comments

Show HN: RetroTick – Run classic Windows EXEs in the browser

https://retrotick.com/
148•lqs_•6h ago•41 comments

Show HN: Badge that shows how well your codebase fits in an LLM's context window

https://github.com/qwibitai/nanoclaw/tree/main/repo-tokens
69•jimminyx•4h ago•39 comments

Sprites on the Web

https://www.joshwcomeau.com/animation/sprites/
77•vinhnx•3d ago•15 comments

Rob Grant, creator of Red Dwarf, has died

https://www.beyondthejoke.co.uk/content/17193/red-dwarf-rob-grant
84•nephihaha•39m ago•12 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
144•edent•9h ago•85 comments

Show HN: Unfucked – version every change between commits - local-first

https://www.unfudged.io/
27•cyrusradfar•22h ago•17 comments

Setting up OpenClaw on a cloud VM

https://blog.skypilot.co/openclaw-on-skypilot/
57•hopechong•1h ago•39 comments

Open source calculator firmware DB48X forbids CA/CO use due to age verification

https://github.com/c3d/db48x/commit/7819972b641ac808d46c54d3f5d1df70d706d286
45•iamnothere•4h ago•27 comments

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
2767•qwertox•21h ago•1467 comments

ChatGPT Health fails to recognise medical emergencies – study

https://www.theguardian.com/technology/2026/feb/26/chatgpt-health-fails-recognise-medical-emergen...
156•simonebrunozzi•4h ago•113 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
485•moultano•16h ago•172 comments

An interactive intro to quadtrees

https://growingswe.com/blog/quadtrees
179•evakhoury•3d ago•22 comments

Theory of Constraints: "Blue Light" creating capacity for nothing (2007)

http://theoryofconstraints.blogspot.com/2007/06/toc-stories-2-blue-light-creating.html
18•strongpigeon•2h ago•2 comments

Breaking Free

https://www.forbrukerradet.no/breakingfree/
158•Aissen•10h ago•29 comments

What was the first life restoration of a sauropod?

https://svpow.com/2026/02/02/what-was-the-first-life-restoration-of-a-sauropod/
17•surprisetalk•2d ago•4 comments

Debian Removes Free Pascal Compiler / Lazarus IDE

https://forum.lazarus.freepascal.org/index.php?topic=73405.0
59•mariuz•2d ago•29 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
228•jsomers•2d ago•156 comments

Compact disc story (1998)

https://www.researchgate.net/publication/294484774_Compact_disc_story
47•pipeline_peak•16h ago•17 comments