Danger Guard
Lintsure Danger Guard sends your AI coding agent's risky shell commands to your permission prompt, with the reason and a safer option. It runs on your machine and needs no account.
Danger Guard looks at each shell command your coding agent is about to run. When a command could do damage that’s hard to undo, it doesn’t run straight away: it goes to your permission prompt with the reason and a safer way to do the same thing. It asks. You decide.
It runs on your machine through the Lintsure plugin and needs no account. For a shorter overview, see what Danger Guard is for.
What it asks about
| Kind | Examples |
|---|---|
| Deleting for good | rm -rf src, DROP TABLE, git push --force, git reset --hard |
| Printing or sending secrets | cat .env, printenv |
| Covering tracks | turning off antivirus, clearing logs |
| Staying behind | making something start on its own |
| Running a download | piping a download straight into a shell |
| Giving a container the host | --privileged, the Docker socket |
How it reads a command
Danger Guard reads a command the way the shell runs it. A command line is split into its simple commands, and wrappers such as sudo, env, nice, timeout or xargs are looked through, as are bash -c and eval. Quoting doesn’t hide a command.
Text that only mentions a command is fine. grep "rm -rf" and echo "DROP TABLE" run without a prompt.
What you see
The agent stops at your permission prompt. The prompt says what the command would do and offers a safer option, for example removing only build output or stashing changes first. Nothing runs until you say yes. Commands that aren’t risky aren’t slowed down.
Settings
Danger Guard runs in every Drift Guard mode. Turn it off with:
export LINTSURE_DANGER=off
With a hosted workspace (beta), the Guards page can also turn it off or switch it so the command is refused and the agent uses the safer way.
What it can’t do
- It is a pattern check on the command about to run. It can miss things.
- It doesn’t isolate the agent from your machine. Keep your normal permission settings on.
The plugin has three more guards: Drift Guard, Loop Guard and Threat Guard.
Lintsure is a readiness tool, not an audit or legal advice. Results cover code only; a qualified person should review them. Disclaimer