A linter for your agent instructions. Checks AGENTS.md, CLAUDE.md and codex.md against the actual repo.
A linter for your agent instructions. It checks AGENTS.md, CLAUDE.md and codex.md against the actual repo: dead commands, renamed paths, contradicting instructions. Zero runtime dependencies, offline and deterministic. It does not call an LLM, use the network, or execute the commands in your file.
Agents do follow instruction files, so every stale line wastes tokens and sends the agent in the wrong direction, in every session. This tool finds those lines.
file -> claims -> rules -> findings
It reads the file, extracts every claim it can verify (commands, paths, imports, directives), and checks each one against your file tree, package.json scripts, pyproject.toml, lockfiles and git history. Each finding has an exact line and column, the offending text, and a concrete suggestion.
Only the instruction files you wrote for the repo are checked. Skills installed by AI coding agents (.claude/skills/, .agent/skills/, .agents/skills/) and agent folders (.codex/, .cursor/, .gemini/) are skipped by default. Run with --include-skills, or name a skill’s path, to check them. See Skipped files.
npx agent-md-caregiver
AGENTS.md
7:10 error `npm run test:unit`: no such script "test:unit" in package.json AMC001
> `npm run test:unit`
fix: Did you mean `npm run test`?
11:26 error `src/routes/users.ts` does not exist AMC002
> `src/routes/users.ts`
fix: Renamed to `src/routes/user.ts` in git history. Replace the path.
1 file checked: 2 error(s), 0 warning(s), 0 info.
The exit code is 1, so it works in CI.
AMC000 to AMC011.agentmdcaregiver.json, precedence, ignore markers--strictSource and issues: github.com/fsystemweb/agent-md-caregiver. MIT.