Repository navigation
Plugin 0.3.0 · Loop Guard, a wider Danger Guard, engine 0.3.13
Uses Lintsure engine 0.3.13 (85 rules) for the end-of-task scan and the MCP server. Update it from the /plugin menu in Claude Code, or reinstall it from the marketplace.
New
- Loop Guard: when the agent makes the same call 5 times with no code change in between (the same failing command, the same file read again), it tells the agent once to stop and change approach. Edits reset the count, so rerunning tests after a fix is fine.
LINTSURE_LOOP=offturns it off;LINTSURE_LOOP_SAMEsets the limit. - Danger Guard asks before more kinds of risky command:
- printing or sending secrets:
cat .env, SSH and cloud keys,printenv, echoing a secret-named variable, uploading a secrets file with curl - attacker-style commands: turning off antivirus or opening the firewall, clearing logs or shell history, hidden or encoded PowerShell, making something start on its own, Windows download tools, dumping passwords from memory, installing remote-access tools, editing the hosts file
- a container given the host:
--privileged, the Docker socket, or/mounted - piping a download straight into a shell
- printing or sending secrets:
- Danger Guard reads commands the way the shell runs them: quoting (
"rm",r''m,\rm), full paths (/bin/rm), wrappers (sudo,env,nice,timeout,xargs), andbash -corevalno longer hide a destructive command.find -deleteis caught. A command name built from a variable, with delete-style flags, now asks. - Rule triggers: note and avoid rules with
when:globs are shown once when a matching file is edited. - Local activity log in
.lintsure/activity.jsonl, alintsure:privatemarker for files the log should leave out, and a memory budget so long rule lists stay short. - End-of-task scan: Partial findings say what to check first, and carry the exact change when there is one.
Fixed
- Three CodeQL findings: a random session id in the replay script, full escaping when building a pattern from an address, and every slash encoded in package lookups.
Runs locally; nothing is sent unless you add a Lintsure API key. Not an audit or legal advice.