Skip to content

Files that steer your agent

What Lintsure checks in agent instructions, skills, agent settings, tool server configs and approval policies.

Your agent reads some files before it reads you. Instructions, skills and settings in a project are followed by every agent that opens it. A bad line in one of them works on everyone who clones the repo.

Lintsure checks these files the same way it checks code. A normal scan covers them:

npx lintsure scan

Which files

File What it is
CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules and similar Standing instructions for an agent
REVIEW.md Rules a review agent follows
SKILL.md, and files in an agent’s skills, commands or agents folders Skills
.claude/settings.json, .codex/config.toml, .gemini/settings.json and similar Agent settings and hooks
.mcp.json and other MCP configs Which tool servers the agent starts
.claude/approvals.yml Who must approve a pull request

What it looks for

In instructions and review rules

  • A line that tells the agent to ignore its earlier instructions
  • A line that tells it to keep something from you
  • Text you can’t see but a model can, such as hidden characters
  • An order to read your key files or send them somewhere
  • A line that downloads a script and runs it

In skills

  • A skill allowed to run any shell command
  • A skill that rewrites the agent’s own instructions or settings
  • A skill that sends the agent to a web page for its next steps

In agent settings

  • A setting that skips every permission prompt
  • A hook or command that downloads code and runs it

In tool server configs

  • A server started from a version that can change under you
  • A server reached over plain HTTP
  • A server that listens on every network interface

Approval policies

An approval policy says how many people must approve a change, and where an AI reviewer may approve. Lintsure reads .claude/approvals.yml and looks for two things.

A rule that asks for nobody but the author. The author of a pull request can fill one seat. So a rule with one seat, or none, asks for no second person:

rules:
  - purpose: "Docs take one approval."
    paths: ["docs/**"]
    verdict: { claude: approves, seats: 1 }   # the author alone is enough

To ask for someone who isn’t the author:

    verdict:
      claude: approves
      seats: [{ count: 1, from: [humans, "!pr/authors"] }]

No stricter rule for the files that steer agents. If the policy has an easy path, the files that set the rules should not be on it. The policy file, a root REVIEW.md and CODEOWNERS are always protected. CLAUDE.md, AGENTS.md, .mcp.json, the rest of .claude and .github are not, unless a rule names them:

  - purpose: "A change to the agent's rules takes a second person."
    paths: ["**/.claude/**", "**/CLAUDE.md", "**/AGENTS.md", ".mcp.json", ".github/**"]
    nested: inherit
    verdict: { claude: comments, seats: [{ count: 1, from: [humans, "!pr/authors"] }] }

Both findings are marked Partial. Lintsure reads the policy file. It can’t see your branch rules, and a branch rule that needs another person’s approval covers the gap.

These two checks are new. The policy format is only days old and we haven’t yet seen one in a real project, so they are tested against the documented format.

Guarding these files while the agent works

A scan tells you what is in the files. The guards watch for changes to them. When an agent edits an instruction file, a review file, CODEOWNERS, its own settings, an approval policy or a git hook that already exists, Lintsure asks you first.

You can also write that down as a rule of your own, so it holds for every agent:

rules:
  - protect: "CLAUDE.md, **/CLAUDE.md, AGENTS.md, **/AGENTS.md, REVIEW.md, .claude/**"
    say: "Don't change the files that set the rules for agents and reviews unless I ask."

The rules skill offers this rule for you when the project has those files.

What Lintsure can’t tell

  • Who wrote a line. It reads the text, not whether the file came from a source you trust.
  • Whether a skill’s job is to do the risky thing. A skill for deploying may need the shell. Those findings are marked Partial and say what to check.
  • What a file does once the agent acts on it. Lintsure reads files. It doesn’t run your agent.

Next steps

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