Skip to content

Guards that run while your agent works

The Lintsure plugin adds four guards to a coding session. Each one is a pattern check that runs on your machine and gives the same answer every time. No AI model decides anything.

Drift Guard →

Before or after each edit

Checks each edit against the rules you wrote and against the code that is really in your project: imports of missing files, calls to functions that don't exist, test tampering and more.

How Drift Guard works →

Danger Guard →

Before each shell command

Sends risky commands to your permission prompt with the reason and a safer option. It asks. You decide.

  • Deletingrm -rf src, DROP TABLE, git push --force, git reset --hard
  • Printing or sending secretscat .env, printenv
  • Covering tracksturning off antivirus, clearing logs
  • Staying behindmaking something start on its own
  • Running a downloadpiping a download into a shell
  • Giving a container the host--privileged, the Docker socket

It reads commands the way the shell runs them, so quoting, sudo, bash -c and eval don't hide them. Text that only mentions a command, like grep "rm -rf", passes.

Loop Guard →

After each tool call

Tells the agent, once, when it has made the same call five times with no code change in between: the same failing command, or the same file read again. The agent changes approach. An edit resets the count.

Turn it off with LINTSURE_LOOP=off.

Threat Guard →

Before shell commands and edits

Asks you before the agent pulls in known AI attack tooling or infrastructure named in public advisories.

Also in a session

Three more things the plugin does alongside the guards.

Session start and each prompt

Memory

Puts your rules back in front of the agent after a reset or when a long conversation is compacted, kept short. With a workspace it also brings back your team's decisions and open findings.

When the agent stops

End-of-task scan

One local scan of the files the session changed, against the six built-in rule packs. Findings that depend on context come with what to check first.

Whenever a guard catches something

Activity log

Each catch and decision is written to .lintsure/activity.jsonl: the rule, the file, the line and what happened. Never code or secrets.

What they don't do

Lintsure reports what its checks found. It is not an audit, a certification or legal advice.

  • The guards are pattern checks on what the agent is about to do. They can miss things.
  • They don't isolate the agent from your machine. Keep your normal permission settings.
  • The end-of-task scan reads source files only. It doesn't test a running app or check your dependencies for known vulnerabilities.

Add the plugin to Claude Code

In Claude Code
/plugin marketplace add lintsure/plugin
/plugin install lintsure@lintsure

That's all. It runs on your machine, needs no account and sends nothing to lintsure.com. A hosted workspace is optional. The same guards run in Cursor, Gemini CLI and Codex through adapters in the plugin's repo.