Skip to content

Plugin and agent adapters

What the Lintsure plugin adds to a Claude Code session, its settings, and how the same guards run in Cursor, Codex and Gemini CLI.

The Lintsure plugin brings your rules and the guards into a coding session. It runs on your machine and needs no account.

The quickest way, for Claude Code, Cursor, Codex and Gemini CLI, is one command from your project’s folder. It shows what it will write before it writes anything:

npx lintsure plugin

Or install it from inside Claude Code with:

/plugin marketplace add lintsure/plugin
/plugin install lintsure@lintsure

What it adds to a session

Piece What it does When it runs
Drift Guard Checks each edit against .lintsure/rules.yml and the code that exists Before or after each edit
Danger Guard Sends risky commands to your permission prompt with a safer option Before each shell command
Loop Guard Tells a stuck agent, once, to change approach After each tool call
Threat Guard Asks before the agent pulls in known AI attack tooling Before shell commands and edits
Memory Puts your rules, decisions and open findings back in front of the agent after a reset or compaction, kept short Session start and each prompt
End-of-task scan One local scan of the files the session changed, against the six built-in rule packs When the agent stops
Activity log Writes each catch and decision to .lintsure/activity.jsonl: rule, file, line and outcome, never code or secrets Whenever a guard catches something
MCP server scan, plan_checks, explain_rule, explain_framework, classify When the agent calls it
Skills lintsure-check, lintsure-prelaunch, lintsure-triage, lintsure-rules, lintsure-drift-guard When Claude decides they apply

The guards are pattern checks, not an AI model: fast, and the same answer every time. They’re seatbelts, not a sandbox.

Settings

Set these as environment variables before you start the agent.

Variable Default What it does
LINTSURE_HOOK on off turns off the end-of-task scan
LINTSURE_ACTIVITY on off stops writing .lintsure/activity.jsonl
LINTSURE_MEMORY_CHARS 3500 How long Memory may get before lists are shortened
LINTSURE_DANGER on off turns off Danger Guard
LINTSURE_LOOP on off turns off Loop Guard
LINTSURE_LOOP_SAME 5 How many identical calls count as stuck
LINTSURE_THREAT on off turns off Threat Guard
LINTSURE_API_KEY none Connects the hosted workspace (beta). Without it, nothing goes to lintsure.com

Cursor, Codex and Gemini CLI

The same guards run in other agents through small adapters, so every agent checks the same things:

Agent Adapter
Cursor cursor/hooks.json
Codex codex/hooks.json
Gemini CLI gemini/hooks.json

The adapters and the steps to switch them on are in the plugin repository. The skills are standard SKILL.md folders; from a clone of the repo, node scripts/install-skills.mjs copies them to every agent it finds, and --uninstall removes only the folders it wrote.

For the MCP server alone, npx lintsure setup adds it to Claude Code, Cursor, VS Code and Gemini CLI. See Install.

What it doesn’t do

  • The guards are pattern checks on what the agent is about to do. They can miss things and they aren’t a sandbox: 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.

Lintsure is a readiness tool, not an audit or legal advice. Results cover code only; a qualified person should review them. Disclaimer