A raidz2 repair in about an hour for $11: Zed's agent wrote the Rust
A power failure during a long write left a raidz2 cluster with corrupted metadata. The writer had a repair plan; Zed's agent mode, running Claude 4, wrote, tested and debugged the program in about an hour.
Done withZedSpotted· by HN user survirtual· Nov 4, 2026
Result Also built a full ZFS management layer along the way
“By the end of about an hour, I had my complete fix plus an entire ZFS management layer in Rust. It did cost $11, but that is a drop in the bucket for time saved.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
Power instability during a heavy, long-running write left a raidz2 cluster with problems resembling defective drives and corrupted metadata all over them. The writer came up with a repair strategy and, since Rust is easier for them than shell scripting, had Zed’s agent mode write the code, using Claude 4 on their own API tokens.
How it went
It wrote the entire program, tested it and debugged it, with the writer steering it away from some bad assumptions. By the end of about an hour they had the complete fix plus an entire ZFS management layer in Rust. It cost $11, which the writer calls a drop in the bucket for the time saved.
Try it yourself with Zed
I'm repairing [a corrupted ZFS/raidz pool] after [a power failure during a write]. Write me a [Rust] program that can detect and fix the corruption, test it against [a safe copy of the data] first, and walk me through any assumptions you make so I can correct them before we touch the real drives.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
Wanting Claude's help with Haiku software and OS issues, they spent $30 of Claude API credit on a USB UAC 2 audio driver for Focusrite Scarlett devices. Haiku's AI policy keeps it from going upstream.
Copy-pasting others' TLA+ specs risked missing attribution. Claude built a small Rust package manager that renames modules to avoid collisions. It took about 30 minutes of fighting, but it worked.
Testing an MFA change usually means setting up a TOTP device by hand. A custom Claude agent drove Playwright instead, wrote a tiny Python TOTP generator, and verified login still worked, for $5.69 in tokens.
A $5-a-month product, then $20, then a rewrite at $10 and $50 a month. A day after launch came a $360 payment: a Yearly option on the $50 plan, with a discount, that Claude had added without them realizing.
Harvest's ~$100/yr Solo time-tracking plan went up 2.5x for a more restricted plan, or $20,000/yr to keep the old one. With their data downloaded, Claude vibecoded a fully-featured clone in one evening.
Copilot and Cursor kept writing proud-looking code that didn't work. Kiro wrote requirements, a design doc and a task list for sign-off first, then built a Rust downloader that worked great.