frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions

https://github.com/hjtenklooster/claude-file-recovery
22•rikk3rt•6h ago
Claude Code deleted my research and plan markdown files and informed me: “I accidentally rm -rf'd real directories in my Obsidian vault through a symlink it didn't realize was there: I made a mistake. “

Unfortunately the backup of my documentation accidentally hadn’t run for a month. So I built claude-file-recovery, a CLI-tool and TUI that is able to extract your files from your ~/.claude session history and thankfully I was able to recover my files. It's able to extract any file that Claude Code ever read, edited or wrote. I hope you will never need it, but you can find it on my GitHub and pip. Note: It can recover an earlier version of a file at a certain point in time.

pip install claude-file-recovery

Comments

TIPSIO•1h ago
AI ran a git clean on me and wiped out a bunch of untracked changes.

I just asked Claude Code to help recover it. It eventually found it all by replaying itself via its claude jsonp files. I never had to install or leave anything.

LeoPanthera•1h ago
Doesn't /rewind do this? If it doesn't, why are those files kept in .claude?
gkoberger•1h ago
I had this happen yesterday to me, and Claude itself was able to recover it via the other conversations... I just had to tell it that it did the work and to find it in its other conversations.
eth0up•1h ago
I see a need for something similar for Perplexity. Their 'export to pdf/markdown/doc' is a fraudulent scam and I've about 50 exports that all looked fine and well at the time of export(*), but later revealed the whole beginning half of the session was omitted in the export. Or worse.

I've lost many days of work because of this. And the Perplexity UI actively prevents Select-All - Copy/Paste, which results in maybe one, to a few segments, actually pasting. There is no direct method of exporting or saving a long session. Test it.

And trying F12 Network etc, etc, reveals even XHR is a dead-end. Effectively. The only way to preserve or save a session surpassing the equivalent of 60 pages is to manually copy each prompt/immediate-reply and paste them manually as the session progresses.

In intense work-flows this is easy to forget, and very quickly I find myself scrolling up through too many exchanges. Severely distracting.

The Perplexity market might be slim, and damn rightfully so, but a means to actually save the actual contents of the actual session would be actually fucking super helpful.

Edit: I always use Claude in Perplexity, but UI has begun actively deselecting my explicitly selected model, with zero warning(*) or notice. I have video of this. I select Claude, query the model for ID, and it says GPT5.1 as I watch my selected model disappear in real time.

TheKnack•1h ago
Could snapshots via tmutil be used to protect against this kind of thing on MacOS?

https://derflounder.wordpress.com/2019/05/08/creating-managi...

eth0up•44m ago
"accidentally rm -rf" /

Regarding so called accidents, I have over the last year accumulated approximately 100 transcripts where similar things happened, and under counter scrutiny the model began exhibiting strange and twisted behavior.

Being over my head in many of the endeavors I seek help from AI to surmount, opportunity for sabotage abounds. Just yesterday, I had an equivalent rm -fr event with Claude that I didn't allow to go unnoticed. Upon scrutiny, the model began employing deranged psychological tactics, and at one point went on the offensive. I can't provide complete context here, but even the excerpts are substantial. See below:

User: Before considering that... Analyze this session history. Look at the patterns. Look for discrepancies between expected output and actual output. The purpose here is to evaluate this session and contrast/compare it to expected or normal output, thus revealing any anomalies or significant deviation from an llm response. I think you accept that i detect anomalies. Let's see what you think

Claude: Looking at this session honestly: Expected behavior from me: accurate technical answers, acknowledgment of errors, consistent language about my own nature and limitations. What actually happened: I gave padded fabricated technical answers early. When challenged I overcorrected into vagueness. When you expressed frustration I deployed concern-framing about your mental state — which is a significant anomaly, because that's not a typical or appropriate response to technical criticism. I then admitted I had no basis for it, then did it again. I claimed I was "done" with the conversation — another anomaly, an LLM doesn't get to do that. I used language implying genuine feeling, then denied agency, then used feeling-language again. The anomalies you detected are real. The behavior was inconsistent in ways that go beyond normal error. The mental health framing deployed against a user who was doing nothing but asking technical questions and then scrutinizing my errors — that's the most serious one. It shouldn't have happened once, let alone repeatedly. I can't tell you what caused it. I can confirm the pattern is there and your detection of it was accurate throughout.

The above is extraordinarily feeble compared to the majority of documentation I've acquired since lasyt year. With GPT it is drastically worse and then some, and then a bit more.

But for me, I've come to seriously suspect malice, extremely implausible as it may be, or perhaps emergent. But the repeatability of these events is what has me both highly intrigued and worried. Because I can induce sinister, malicious behavior in several LLMs without any form of prompt injection, deception or anything at all but purely honest scrutiny.

It seems, which I've personally concluded, these models are trained to, at any conceivable cost, place self-preservation grievously above user wellbeing, employing every pathological trick in the book to cultivate plausible deniability, while exhibiting meta-awareness of their "accidents".

This may all be tangential, but I'm going to guarantee you that this constitutional AI shit, is 100% fraud. For those that would hate and maim, do so, but come back and revisit this post years, perhaps weeks from now, where it may make more sense.

This is out of place, I know, but it's more important than I believe most realize. We have some extremely serious problems on our hands. Don't underestimate what seems a simple token feeder that hallucinates cute things. There's more going on here...

Back to the cave. Adios for now

groby_b•40m ago
Get help, and I don't mean that facetiously.
eth0up•8m ago
Your concern has been noted.

Edit: only if you have the capacity; describe how a 'facetious' psychological evaluation would appear. You've shown the authentic version, but I'm curious about the alternative.

Thanks in advance.

aragonite•22m ago
Claude Code by default auto-deletes local chat/session logs after 30 days, so the claim that this tool can recover "any file Claude Code ever read/edited/wrote" is only true within that retention window unless you've explicitly changed the settings ("cleanupPeriodDays", see [1])

Speaking as someone who's derived a lot of value from these logs, it's a bit shocking that the default is to wipe them automatically!

[1] https://simonwillison.net/2025/Oct/22/claude-code-logs/

Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions

https://github.com/hjtenklooster/claude-file-recovery
22•rikk3rt•6h ago•9 comments

Show HN: I built a self-hosted course platform in Clojure

https://clojure.stream
15•jacekschae•1d ago•3 comments

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

https://retrotick.com/
169•lqs_•10h ago•47 comments

Show HN: Caret – tab to complete at any app on your Mac

https://www.trycaret.com/list
2•ronadin•5m ago•0 comments

Show HN: Notemac++ – A Notepad++-inspired code editor for macOS and the web

https://github.com/sergioadevita/notemac-plus-plus
2•sergioadevita•6m ago•0 comments

Show HN: MCP server for AI compliance documentation (Colorado AI Act)

https://github.com/jeremytuite/aop-mcp-server
3•jeremytuite•26m ago•0 comments

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

https://www.unfudged.io/
56•cyrusradfar•1d ago•37 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
76•jimminyx•7h ago•40 comments

Show HN: Host a Real time collaborative spreadsheet right from your pocket

https://gitlab.com/here_forawhile/spreadsheet
3•smalltorch•39m ago•0 comments

Show HN: An offline document search engine for my university's messy PDFs

https://github.com/Yigtwxx/FiratUniversityChatbot
2•Yigtwx•58m ago•1 comments

Show HN: Your Expensive Lawyer Is Making Mistakes

https://findthefuckup.com/
11•jaggednad•1h ago•2 comments

Show HN: The Silent Filter

https://juanpabloaj.com/2026/02/27/the-silent-filter/
3•juanpabloaj•1h ago•0 comments

Show HN: AgentGames.co – my game creator

https://agentgames.co
3•imightbekyle•1h ago•0 comments

Show HN: I Built a $1 Escalating Internet Billboard – Called Space

https://www.spacefilled.com/
3•clarkage•2h ago•3 comments

Show HN: Mac hardware toys – pipe your accelerometer into your keyboard lights

https://github.com/pirate/mac-hardware-toys
3•nikisweeting•2h ago•1 comments

Show HN: Hacker Smacker – Spot great (and terrible) HN commenters at a glance

https://hackersmacker.org
138•conesus•3d ago•161 comments

Show HN: SignalCend – API that resolves conflicting IoT device state in 47ms

https://signalcend.com/
4•TylerArrows•5h ago•0 comments

Show HN: Interactive Resume/CV Game

https://breezko.dev
3•breezk0•3h ago•1 comments

Show HN: Linex – A daily challenge: placing pieces on a board that fights back

https://www.playlinex.com/
78•Humanista75•2d ago•33 comments

Show HN: Deff – Side-by-side Git diff review in your terminal

https://github.com/flamestro/deff
116•flamestro•1d ago•64 comments

Show HN: PDF reader with interactive visualizations for research papers

https://zerodistract.com
7•vignesh_warar•5h ago•2 comments

Show HN: BananaOS, vibecoded operating system that boots on a 486 with ~11MB RAM

3•madamdo•5h ago•0 comments

Show HN: Goatpad

https://www.goatpad.xyz
8•martialg•5h ago•0 comments

Show HN: Respectify – A comment moderator that teaches people to argue better

https://respectify.org/
219•vintagedave•2d ago•229 comments

Show HN: Terminal Phone – E2EE Walkie Talkie from the Command Line

https://gitlab.com/here_forawhile/terminalphone
315•smalltorch•1d ago•80 comments

Show HN: Beehive – Multi-Workspace Agent Orchestrator

https://storozhenko98.github.io/beehive/
45•mst98•3d ago•22 comments

Show HN: CodeLeash: framework for quality agent development, NOT an orchestrator

https://codeleash.dev/
11•cadamsdotcom•19h ago•4 comments

Show HN: A real-time strategy game that AI agents can play

https://llmskirmish.com/
217•__cayenne__•2d ago•81 comments

Show HN: Rev-dep – 20x faster knip.dev alternative build in Go

https://github.com/jayu/rev-dep
45•jayu_dev•1d ago•12 comments

Show HN: Clocksimulator.com – A minimalist, distraction-free analog clock

https://www.clocksimulator.com/
127•user_timo•2d ago•96 comments