frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Destructive_command_guard (Dcg)

https://github.com/Dicklesworthstone/destructive_command_guard
2•eigenvalue•1h ago
This is a free, open-source, highly-optimized rust program that runs using pre-tool hooks in Claude Code (CC) and checks the tool call that CC was about to make to see if it’s potentially destructive; that is, could delete data, lose work, drop tables, etc.

Get it from the GitHub link and install with the convenient one-liner.

A tool like dcg has several competing goals that make it a careful balancing act and tough engineering problem:

1. Since it runs for every single tool call, it must be FAST. Hence why it is written in Rust and an extreme amount of focus has been placed on making it as fast as possible.

2. It must avoid annoying false positives that waste your time, add friction, and re-introduce you as the bottleneck unnecessarily. I run dozens of agents at once and don’t want them wasting time waiting for me unless it’s needed. Usually, the messages from dcg are enough to get the agent to be more thoughtful about what it’s doing.

3. It’s not enough to just use a simple rulebook where you look for canned commands like “rm -rf /” or “git reset --hard HEAD.” The models are very resourceful and will use ad-hoc Python or bash scripts or many other ways to get around simple-minded limitations. That’s why dcg has a very elaborate, ast-grep powered layer that kicks in when it detects an ad-hoc (“heredoc”) script. But wherever possible, it uses much faster simd optimized regex.

4. A tool like this should really be expandable and have semantic knowledge of various domains and what constitutes a destructive act in those domains. For instance, if you’re working with s3 buckets on aws, you could have a highly destructive command that doesn’t look like a normal delete. That’s why dcg comes out of the box with around 50 presets which can be easily enabled based on your projects’ tech stacks (just ask CC to figure out which packs to turn on for you by analyzing your projects directory).

5. dcg is designed to be very agent friendly. It doesn’t just block commands, it explains why and offers safe alternatives based on an analysis of the specific command used by the agent. For instance, it might stop the agent from deleting your Rust project’s build directories but suggest using “cargo clean” instead. Often, these messages are enough to knock sense into Claude.

I really can’t exaggerate just how much time and frustration dcg has already saved me. It should be known and used by everyone who has had these kinds of upsetting experiences with coding agents.

dcg is included along with all my other tooling in my agent-flywheel.com project. All free, MIT licensed, with extensive tutorials and other educational resources for people with less experience. Give it a try, you won’t regret it!

Cryptomator – Encrypt files before loading into gdrive, Dropbox, etc.

https://github.com/cryptomator/cryptomator
1•l1am0•17s ago•0 comments

You've reached your rate limit. Please try again later

1•Haeuserschlucht•39s ago•0 comments

How to Beat Lyme Disease

https://tim.blog/2026/01/30/lyme-disease-ketogenic-diet/
1•maximedupre•3m ago•0 comments

Amazon is rolling out Alexa+ to all users. But not everyone wants it.

https://www.wired.com/story/alexa-plus-early-access-rollout-2026/
1•bookofjoe•3m ago•1 comments

The Ladder to Nowhere, Part 2: OpenAI's Complete Picture of You

https://insights.priva.cat/p/the-ladder-to-nowhere-part-2-openais
1•privacat•8m ago•0 comments

A no-bullshit introduction to groups: Part 1

https://iczelia.net/posts/groups/
1•mci•8m ago•0 comments

Finding Your Tribe of Mentors

https://leaddev.com/career-development/how-find-tribe-mentors
1•shehabas•11m ago•0 comments

Doom on a Fursuit [video]

https://bsky.app/profile/jtingf.bsky.social/post/3mdnhnwzbgk22
2•Kye•14m ago•0 comments

Sell America is the new trade on Wall Street

https://www.nytimes.com/2026/01/31/business/sell-america-dollar-financial-markets.html
2•softwaredoug•16m ago•0 comments

I guess I'm AI-pilled now?

https://brittanyellich.com/i-guess-im-ai-pilled-now/
2•mooreds•17m ago•1 comments

Show HN: Envware – E2EE CLI to manage environment variables across devices

2•humbertocruz•19m ago•0 comments

Launching My Side Project as a Solo Dev: The Walkthrough

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
3•romes•20m ago•0 comments

Do you really know your position?

https://agrisacademy.com/do-you-really-know-your-position/
1•mooreds•21m ago•0 comments

Show HN: Envware – E2EE CLI to manage environment variables across devices

https://www.envware.dev
1•humbertocruz•21m ago•0 comments

LazyVim for Ambitious Developers

https://lazyvim-ambitious-devs.phillips.codes/course/chapter-1/
1•Townley•21m ago•0 comments

Moltbook: Early Evidence of Agent-Targeted Influence Mechanics

https://medium.com/technomancy-laboratories/compressed-alignment-attack-early-evidence-of-agent-t...
1•pstryder•25m ago•0 comments

The Inverted Panopticon

https://shanakaanslemperera.substack.com/p/the-inverted-panopticon
1•MassPikeMike•26m ago•0 comments

Kling 3 – Cinematic AI video generator with character consistency

https://kling3.app/
1•Jenny249•28m ago•0 comments

GNU Recutils: a database management system using human-readable text files

https://labs.tomasino.org/gnu-recutils/
2•fanf2•29m ago•1 comments

Agent Consent Protocol (ACP)

https://github.com/o1100/Agent-Consent-Protocol
1•mooreds•32m ago•0 comments

Icons That Move with Intent

https://www.itshover.com/
1•typeofhuman•35m ago•0 comments

The Hidden Conversation in Breast Milk: Katie Hinde's Groundbreaking Research

https://ifeg.info/2025/12/15/the-hidden-conversation-in-breast-milk-katie-hindes-groundbreaking-r...
1•thunderbong•36m ago•0 comments

Agent Trace by Cursor: open spec for tracking AI-generated code

https://agent-trace.dev/
1•mustaphah•36m ago•0 comments

Show HN: Lumenyx – Bitcoin scarcity and full EVM, CPU mining, zero premine

https://github.com/lumenyx-chain/lumenyx
1•missed2009•37m ago•0 comments

Microsoft Is Upset (About AI Slop – and Its Hilarious)

https://www.youtube.com/watch?v=hzM-lCT1CWI
2•doener•38m ago•0 comments

Show HN: Libmagicxx – Modern C++23 wrapper for libmagic

https://github.com/oguztoraman/libmagicxx
1•oguztoraman•38m ago•0 comments

Show HN: Not_pad – a local Markdown notebook for thinking (newest ideas first)

https://github.com/SylvaMoth/not_pad
1•SylvaM•38m ago•0 comments

Changes in htmx 4.0

https://four.htmx.org/htmx-4/
1•tosh•39m ago•0 comments

Show HN: Project Xent – A native C++ UI framework in KBs

1•AzusaBCSK•41m ago•0 comments

Ask HN: OpenClaw is so January 30th. What should they rename it next?

2•tomcam•43m ago•0 comments