Before or after each edit
Keep your agent to the rules you set
Drift Guard watches each edit and stays quiet until something drifts. Coding agents lose track in long sessions: they forget rules, import packages that don't exist and edit files they shouldn't touch.
Your rules
Each edit is checked against what you wrote down
Code you don't want, files it shouldn't touch and new dependencies. The agent is shown the file, the line and the rule, and asked to go back.
How rules work- 1
export async function getUser(id) { - 2
const user = await db.users.find(id); - 3
console.log("user", user.email); - 4
return user; - 5
}
Drift Guard: personal data written to logs. Rule: "Never log user emails."
The code that exists
Imports, calls and tests that don't add up
Imports of files that don't exist, calls to functions that don't exist, copies of code you already have, a test whose expected value was changed to fit, and lookalike package names.
- 1
import { auth } from "./lib/auth"; - 2
import { put } from "./lib/storage"; - 3
- 4
export async function upload(file) { - 5
return put((await auth()).id, file); - 6
}
No file at ./lib/storage. Did you mean ./lib/s3?
Three modes
Guide, strict or quiet
Guide is the default: a short note and the agent carries on. Strict refuses edits that break a rule before they happen. Quiet records each catch for your team instead.
- 1
mode: guide - 2
rules: - 3
- deps: true - 4
say: "Ask me before adding dependencies." - 5
- protect: "migrations/**" - 6
say: "Don't edit migrations that already ran."
What it can't do
- It checks what the agent writes, not what it intends.
- It only holds the agent to rules that are written down.
- It is a pattern check and can miss things. Keep your normal permission settings.
Lintsure is a readiness tool, not an audit, a certification or legal advice.
Add the plugin to Claude Code
/plugin marketplace add lintsure/plugin/plugin install lintsure@lintsureThat'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.