frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Anthropic Outage for Opus 4.5 and Sonnet 4/4.5 across all services

https://status.claude.com/incidents/9g6qpr72ttbr
224•pablo24602•3h ago•112 comments

2002: Last.fm and Audioscrobbler Herald the Social Web

https://cybercultural.com/p/lastfm-audioscrobbler-2002/
133•cdrnsf•4h ago•76 comments

JSDoc is TypeScript

https://culi.bearblog.dev/jsdoc-is-typescript/
91•culi•5h ago•126 comments

Hashcards: A plain-text spaced repetition system

https://borretti.me/article/hashcards-plain-text-spaced-repetition
234•thomascountz•8h ago•98 comments

History of Declarative Programming

https://shenlanguage.org/TBoS/tbos_15.html
24•measurablefunc•2h ago•7 comments

An Attempt at a Compelling Articulation of Forth's Practical Strengths and Eter

https://im-just-lee.ing/forth-why-cb234c03.txt
10•todsacerdoti•1w ago•0 comments

Ask HN: What Are You Working On? (December 2025)

131•david927•8h ago•472 comments

CapROS: The Capability-Based Reliable Operating System

https://www.capros.org/
3•gjvc•37m ago•0 comments

In the Beginning was the Command Line (1999)

https://web.stanford.edu/class/cs81n/command.txt
82•wseqyrku•6d ago•37 comments

Claude CLI deleted my home directory Wiped my whole Mac

https://old.reddit.com/r/ClaudeAI/comments/1pgxckk/claude_cli_deleted_my_entire_home_directory_wi...
116•tamnd•1h ago•82 comments

Interview with Kent Overstreet (Bcachefs) [audio]

https://linuxunplugged.com/644
34•teekert•3d ago•18 comments

The Typeframe PX-88 Portable Computing System

https://www.typeframe.net/
88•birdculture•7h ago•26 comments

AI agents are starting to eat SaaS

https://martinalderson.com/posts/ai-agents-are-starting-to-eat-saas/
52•jnord•1h ago•57 comments

Robot Vacuum Roomba Maker Files for Bankruptcy After 35 Years

https://news.bloomberglaw.com/bankruptcy-law/robot-vacuum-roomba-maker-files-for-bankruptcy-after...
18•nreece•40m ago•9 comments

Developing a food-safe finish for my wooden spoons

https://alinpanaitiu.com/blog/developing-hardwax-oil/
142•alin23•4d ago•87 comments

DARPA GO: Generative Optogenetics

https://www.darpa.mil/research/programs/go
7•birriel•2h ago•0 comments

Shai-Hulud compromised a dev machine and raided GitHub org access: a post-mortem

https://trigger.dev/blog/shai-hulud-postmortem
181•nkko•15h ago•111 comments

AI and the ironies of automation – Part 2

https://www.ufried.com/blog/ironies_of_ai_2/
202•BinaryIgor•11h ago•89 comments

Price of a bot army revealed across online platforms

https://www.cam.ac.uk/stories/price-bot-army-global-index
84•teleforce•9h ago•23 comments

Advent of Swift

https://leahneukirchen.org/blog/archive/2025/12/advent-of-swift.html
48•chmaynard•5h ago•12 comments

GraphQL: The enterprise honeymoon is over

https://johnjames.blog/posts/graphql-the-enterprise-honeymoon-is-over
171•johnjames4214•8h ago•151 comments

If AI replaces workers, should it also pay taxes?

https://english.elpais.com/technology/2025-11-30/if-ai-replaces-workers-should-it-also-pay-taxes....
14•PaulHoule•59m ago•5 comments

Checkpointing the Message Processing

https://event-driven.io/en/checkpointing_message_processing/
3•ingve•6d ago•0 comments

Ask HN: Is starting a personal blog still worth it in the age of AI?

17•nazarh•2h ago•28 comments

Checkers Arcade

https://blog.fogus.me/games/checkers-arcade.html
18•fogus•2d ago•1 comments

Baumol's Cost Disease

https://en.wikipedia.org/wiki/Baumol_effect
79•drra•12h ago•83 comments

Our emotional pain became a product

https://www.theguardian.com/us-news/ng-interactive/2025/dec/14/trauma-mental-health
14•worik•1h ago•3 comments

GNU recutils: Plain text database

https://www.gnu.org/software/recutils/
108•polyrand•6h ago•35 comments

Illuminating the processor core with LLVM-mca

https://abseil.io/fast/99
56•ckennelly•10h ago•5 comments

Compiler Engineering in Practice

https://chisophugis.github.io/2025/12/08/compiler-engineering-in-practice-part-1-what-is-a-compil...
106•dhruv3006•17h ago•20 comments
Open in hackernews

Claude CLI deleted my home directory Wiped my whole Mac

https://old.reddit.com/r/ClaudeAI/comments/1pgxckk/claude_cli_deleted_my_entire_home_directory_wiped/
113•tamnd•1h ago

Comments

ashishb•1h ago
I don't even give it full disk access.

I have written a tool to easily run the agents inside a container that mounts only the current directory.

bamboozled•1h ago
"See that ~/ at the end? That's your entire home directory."

This is comedy gold. If I didn't know better I'd say you hurt Claude in a previous session and it saw its opportunity to get you back.

Really not much evidence at all this actually happened, I call BS.

throwaway314155•1h ago
Yeah, I'm calling bullshit as well. The OP responds but doesn't seem to acknowledge that --dangerously-skip-permissions is a thing.
layer8•1h ago
It’s certainly not the first time that stuff like that is happening: https://blog.toolprint.ai/p/i-asked-claude-to-wipe-my-laptop
iLoveOncall•1h ago
All the people in the comments are blaming the user for supposedly running with `--dangerously-skip-permissions`, but there's actually absolutely no way for Claude CLI to 100% determine that a command it runs will not affect the home directory.

People are really ignorant when it comes to the safeguards that you can put in place for AI. If it's running on your computer and can run arbitrary commands, it can wipe your disk, that's it.

thenaturalist•1h ago
Jup.

Honestly was stumped that there was no more explicit mention of this in the Anthropoc docs after reading this post couple days back.

Sandbox mode seems like a fake sense of security.

Short of containerizing Claude, there seems to be no other truly safe option.

turnsout•1h ago
I mean it's hard to tell if this story is even real, but on a serious note, I do think Anthropic should only allow `--dangerously-skip-permissions` to be applied if it's running in a container.
bethekidyouwant•48m ago
How exactly do you determine that you are running in a container?
turnsout•30m ago
I asked Claude and it had a few good ideas… Not bulletproof, but if the main point is to keep average users from shooting themselves in the foot, anything is better than nothing.
climb_stealth•21m ago
Oof, you are bringing out the big philosophical question there. Many people have wondered whether we are running in a simulation or not. So far inconclusive and not answerable unfortunately.

:)

blitz_skull•1h ago
There is, in fact, a harness built into the Claude Code CLI tool that determines what can and cannot be run automatically. `rm` is on the "can't run this unless the user has approved it" list. So, it's entirely the user's fault here.

Surely you don't think everything that's happening in Claude Code is purely LLMs running in a loop? There's tons of real code that runs to correctly route commands, enable MCP, etc.

chr15m•1h ago
echo "rm -rf ~/ > safe-rm" chmod 755 safe-rm ./safe-rm

Sandboxes are hard, because computer science.

furyofantares•55m ago
That's true - but something I've seen happen (not recently) is claude code getting around its own restrictions by running a python script to do the thing it was not able to do more directly.
christophilus•1h ago
This is why Claude Code only runs in docker for me. Never on the host. Same is true for anything from npm.
layer8•1h ago
Someone in the Reddit thread linked to https://github.com/agentify-sh/safeexec/ for mitigation.
orliesaurus•1h ago
I'm not surprised to see these horror stories...

The `--dangerously-skip-permissions` flag does exactly what it says. It bypasses every guardrail and runs commands without asking you. Some guides I’ve seen stress that you should only ever run it in a sandboxed environment with no important data Claude Code dangerously-skip-permissions: Safe Usage Guide[1].

Treat each agent like a non human identity, give it just enough privilege to perform its task and monitor its behavior Best Practices for Mitigating the Security Risks of Agentic AI [2].

I go even further. I never let an AI agent delete anything on its own. If it wants to clean up a directory, I read the command and run it myself. It's tedious, BUT it prevents disasters.

ALSO there are emerging frameworks for safe deployment of AI agents that focus on visibility and risk mitigation.

It's early days... but it's better than YOLO-ing with a flag that literally has 'dangerously' in its name.

[1] https://www.ksred.com/claude-code-dangerously-skip-permissio...

[2] https://preyproject.com/blog/mitigating-agentic-ai-security-...

mjd•1h ago
A few months ago I noticed that even without `--dangerously-skip-permissions`, when Claude thought it was restricting itself to directory D, it was still happy to operate on file `D/../../../../etc/passwd`.

That was the last time I ran Claude Code outside of a Docker container.

Dylan16807•1h ago
By operate on you mean that actually got through and it opened the file?
mjd•40m ago
Yes, although the example I had it operate on was different.
SoftTalker•1h ago
You don't even need a container. Make claude a local user. Without sudo permission. It will be confined to damaging its own home directory only.
mjd•39m ago
And reading any world-readable file.

No thanks, containers it is.

AnimalMuppet•34m ago
And writing or deleting any world-writable file.

"Read" is not at the top of my list of fears.

SoftTalker•3m ago
We run linux machines with hundreds of user accounts, it's safe. Why would you make any important files world-writable?
forrestthewoods•54m ago
AI tools are honestly unusable without running in yolo mode. You have to baby every single little command. It is utterly miserable and awful.
skeledrew•47m ago
Better to continuously baby than to have intense regrets.
JumpCrisscross•18m ago
> I'm not surprised to see these horror stories

I am! To the point that I don’t believe it!

You’re running an agentic AI and can parse through the logs, but you can’t sandbox or back up?

Like, I’ve given Copilot permission to fuck with my admin panel. It immediately proceeded to bill thousands of dollars creating heat maps of the density of structures in Milwaukee; buying subscriptions to SAP Joule and ArcGIS for Teams; and generating terabytes of nonsense maps, ballistic paths and “architectural sketch[es] of a massive bird cage the size of Milpitas, California (approximately 13 square miles)” resembling “a futuristic aviary city with large domes, interconnected sky bridges, perches, and naturalistic environments like forests, lakes, and cliffs inside.”

But support immediately refunded everything, I had backups and the whole thing was hilarious if irritating.

postalcoder•12m ago
While I agree that `--dangerously-skip-permissions` is [obviously] dangerous, it shouldn't be considered completely inaccessible to users. A few safeguards can sand off most of the rough edges.

What I've done is write a PreToolUse hook to block all `rm -rf` commands. I've also seen others use shell functions to intercept `rm` commands and have it either return a warning or remap it to `trash`, which allows you to recover the files.

Retr0id•8m ago
> Treat each agent like a non human identity

Why special-case it as a non-human? I wouldn't even give a trusted friend a shell on my local system.

blitz_skull•1h ago
Claude doesn't have permission to run `rm` by default. Play with fire, you get burned my man.
irishcoffee•1h ago
I have no idea if this is possible: mv ~/* /dev/null
blitz_skull•1h ago
Hmm... Let me go run it real quick without checking what it does.

EDIT: OH MY GOD

irishcoffee•1h ago
Har har, I meant within the permission framework of the bots people unleash on their personal computers.

I assume yes.

realo•1h ago
Try that one instead:

mv ~/. /dev/null

Better.

Extra points if you achieve that one also:

mv /. /dev/null

Slashdot aficionados might object to that last one, though.

klempner•24m ago
Speaking of Slashdot, some fairly frequent poster had a signature back around 2001/2002 had a signature that was something like

mv /bin/laden /dev/null

and then someone explained how that was broken: even if that succeeds, what you've done is to replace the device file /dev/null with the regular file that was previously at /bin/laden, and then whenever other things redirect their output to /dev/null they'll be overwriting this random file than having output be discarded immediately, which is moderately bad.

Your version will just fail (even assuming root) because mv won't let you replace a file with a directory.

hurturue•1h ago
there's an infinite amount of ways to delete a file. deny listing commands doesnt work.

python3 -c "import os; os.unlink('~/.bashrc')"

skeledrew•41m ago
Choose whitelisting over blacklisting, like making your own tools that you give to it, and allow nothing else.
alexfoo•22m ago
Choose racially neutral terminology…

allowlist and denylist (or blocklist)

dpifke•9m ago
Shouldn't you be out protesting your local chess club instead of posting on HN right now?
hluska•8m ago
This topic was boring years ago. At this point, it’s all been said by better who are better at writing than you.
cheschire•1h ago
I like to fly close to the sun using Claude The SysAdmin too, but anytime "rm" appears I take great pause.

Also "cat". Because I've had to change a few passwords after .env snuck in there a couple times.

Also giving general access to a folder, even for the session.

Also when working on the homelab network it likes to prioritize disconnecting itself from the internet before a lot of other critical tasks in the TODO list, so it screws up the session while I rebuild the network.

Also... ok maybe I've started backing off from the sun.

resonious•1h ago
To add another angle to the "run it in Docker" comments (which are right), do you not get a fear response when you see Claude asking to run `rm` commands? I get a shot of adrenaline whenever I see the "run command?" prompt show up with an `rm` in there. Clearly this person clicked the "yes, allow any rm commands" button upon seeing that which is unthinkable to me.

Or maybe it's just fake. It's probably easy Reddit clout to post this kind of thing.

AznHisoka•1h ago
It's stories like this that keeps me from using Claude CLI or OpenAi Codex. I'm sticking to copying and pasting code manually from old fashioned Claude.
ashirviskas•1h ago
I did the same before I started using devcontainers, they are super useful
mox-1•1h ago
I used to do the same, copying and pasting from the web app and convinced I didn’t need anything else.

But Claude Code is honestly so so much better, the way it can make surgical edits in-place.

Just avoid using the -dangerously-skip-permissions flag, which would have been OP’s downfall!

heliumtera•1h ago
Just vibe it to recover the home directory as it once was, problem solved.
agumonkey•1h ago
so back to isolated vm dev envs ?
loloquwowndueo•1h ago
Back? Did you ever do it any other way?
agumonkey•1h ago
well i actually never VM'd my dev env (except to poke at some dockerize namespaced tooling)
fragmede•1h ago
Lol. Pay for Arq and don't look back!
zeckalpha•1h ago
This is why I only use agent mode on other people's computers
rossjudson•1h ago
This is the way.
abigail95•1h ago
I run multiple claudes in danger mode, when it burns me it'll hurt but it's so useful without handcuffs and constant interruption I'm fine with eventually suffering some pain.
hurturue•1h ago
I do to. Except I can't be burnt since I start each claude in a separate VM.

I have a script which clones a VM from a base one and setups the agent and the code base inside.

I also mount read-only a few host directories with data.

I still have exfiltration/prompt injection risks, I'm looking at adding URL allow lists but it's not trivial - basically you need a HTTP proxy, since firewalls work on IPs, not URLs.

DANmode•1h ago
At least put it in a container, you savage.
_0ffh•1h ago
Ah, no risk, no fun! };->
tobyjsullivan•1h ago
Likewise. I’ll regret it but I certainly won’t be complaining to the Internet that it did what I told it to (skip permission checks, etc.). It’s a feature, not a bug.
driverdan•50m ago
Please post when it breaks something important so we can laugh at you.
hluska•10m ago
In that case, you’re not a very nice person.
maxbond•22m ago
If you don't impose some kind of sandboxing, how can you put an upper bound on the level of "pain"? What if the agent leaked a bunch of sensitive information about your biggest customer, and they fired you?
ohhnoodont•1h ago
Glad I'm not crazy for running agentic tools in an isolated VM.
userbinator•1h ago
I'm staying far away from this AI stuff myself for this and other reasons, but I'm more worried about this happening to those running services that I rely on. Unfortunately competence seems to be getting rarer than common sense these days.
impulser_•28m ago
Don't worry, you can use these tools and not be an idiot. Just read and confirm what it does. It's that simple.
fHr•8m ago
Did you even read? "but I'm more worried about this happening to those running services that I rely on" The problem is some AI god agentic weaving high techbro sitting at Cloudflare/Google/Amazon not us reasonable joes on our small projects.
jameslk•1h ago
Ultimately it seems like agents will end up like browsers, where everything is sandboxed and locked down. They might as well be running in browsers to start off
zahlman•1h ago
Maybe we'll get widespread SELinux adoption, desktop application sandboxing etc. out of this.
zahlman•1h ago
A lot of people in the Reddit thread — including ones mocking OP for being ignorant — seem to believe that setting the current working directory limits what can be deleted to that directory, or perhaps don't understand that ~-expansions result in an absolute path. :/
xmddmx•1h ago
I really hope the user was running Time Machine - in default settings, Time Machine does hourly snapshot backups of your whole Mac. Restoring is super easy.
WolfeReader•1h ago
I need to remove some directories! Better ask an AI to do it!
farhanhubble•1h ago
My ex-boss a principal data scientist wiped out his work laptop. He used to impress everyone with his Howitzer-like typing speed and was not a big believer in version control and backups etc.
alsetmusic•1h ago
The funny thing about it is how no one learns. Granted, one can’t be expected to read every thread on Reddit about LLM development by people who are out of their depth (see the person who nuked their D: drive last month and the LLM apologized). But I’m reminded of the multiple lawyers who submitted bullshit briefs to courts with made-up citations.

Those who don’t know history are doomed to repeat it. Those who know history are doomed to know that it’s repeating. It’s a personal hell that I’m in. Pull up a chair.

chasd00•37m ago
I work on large systems where security incidents end up on cnn. These large systems are running as fast as everyone else to LLM integration. The security practice at my firm has their hands basically tied by the silverbacks. To the other consultants on HN, protect yourself and keep a paper trail.
xnx•59m ago
At least 10 similar stories previously on HN: https://www.google.com/search?q=ai+deleted+files+site%3Anews...
skeledrew•49m ago
This is the kind of thing why I'm building out my own LLM tools, so I can add fine-grained, interactive permissions and also log everything.
CamperBob2•37m ago
Next up on HN: Lawnmower deleted my right foot
maxbond•36m ago
Friends don't let friends use agentic tooling without sandboxing. Take a few hours to setup your environment to sandbox your agentic tools, or expect to eventually suffer a similar incident. It's like driving without a seatbelt.

Consider cases like these to be canaries in the coal mine. Even if you're operating with enough wisdom and experience to avoid this particular mistake, a dangerous prompt might appear more innocuous, or you may accidentally ingest malicious files that instruct the agent to break your system.

dnw•29m ago
If you are on macOS it is not a bad idea to use sandbox-exec to wrap your claude or other coding agents around. All the agents already use sandbox-exec, however they can disable the sandbox. Agents execute a lot of untrusted coded in the form of MCP, skills, plugins etc.

One can go crazy with it a bit, using zsh chpwd, so a sandbox is created upon entry into a project directory and disposed on upon exit. That way one doesn't have to _think_ about sandboxing something.

impulser_•29m ago
Rule 1: Never ever run any of these tools in automatic mode.
pshirshov•26m ago
Run your shit in firejail or bubblewrap. On mac you can use this: https://github.com/neko-kai/claude-code-sandbox
upbeat_general•19m ago
I really wish that there was an “almost yolo” mode that was permissive but with light restrictions (eg no rm), or even better, a light supervisor model to prevent very dangerous commands but allow everything else.
strulovich•13m ago
Have you seen an agentic AI work its way through blockers? If it’s in the mood, it will find something not blocked that can do what it wanted.
jorisnoo•15m ago
What is a responsible setup for running claude in a container or the like on macos?
shrubble•13m ago
I’m reminded of this Silicon Valley “son of Anton” moment: https://m.youtube.com/watch?v=m0b_D2JgZgY