What it does
dcg is a safety check that sits in front of AI coding assistants such as Claude Code, Codex, Gemini CLI, Copilot and Cursor. When the assistant tries to run a command that could destroy work, like deleting folders or wiping uncommitted changes, dcg blocks it and suggests a safer option.
Out of the box it covers risky file and Git commands. Optional rule packs add protection for databases, cloud accounts, Docker and more. It also tries to tell the difference between a command being run and the same words just appearing as text.
Who it's for
Developers who let AI coding agents run commands on their computer.
Can I use it without coding?
With some setup. A one-line installer in the terminal sets it up and connects it to the AI tools it finds. New to this? Start here.
Can I run it?
- Cost
- FreeNothing to pay or sign up for.
- Runs on
- Linux, Mac, Windows
- Computer
- An ordinary computer is fine
- Privacy
- Runs on your own device: your data stays with you
- API key
- Not needed
Try it
- Run the quick install script from the README in a terminal.
- It detects your AI coding tools and sets up the guard for each one automatically.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?
Before you install
- Only download from the official GitHub page. Copies with similar names exist for many popular projects.
- No standard license listed. Check the GitHub page before using it for business.
- More on staying safe