A linter for your agent instructions. Checks AGENTS.md, CLAUDE.md and codex.md against the actual repo.
Severity: error
A file or directory the file points agents to does not exist (suggests where it went).
AMC002 path-missing (error)
The file mentions a path in inline code (or as the file argument of `node`, `python`, `pytest`)
that is not in the repo. Agents go looking for it, fail, and guess.
The finding suggests where it went: first the git history (a rename or move, including whole
directories), then the one existing file or directory with the same or a very similar name.
Paths are looked up next to the instruction file, then in each parent directory up to the root.
What it stays silent on: globs, placeholders, URLs, absolute and `~/` paths, `path/to/...`,
anything .gitignore covers or that exists on disk (dist/, .env), `node_modules`, extensionless
names whose parent directory does not exist (probably an API route, not a file), and paths after
"never", "avoid", "e.g.", "for example", package specifiers such as `three@0.160.0/examples/`, and
paths written relative to a subfolder (`main.tsx` when only `src/main.tsx` exists).
Links and `@` imports are checked by AMC005.
Fix: correct the path, or remove the reference.
Suppress a deliberate case with `<!-- amc-ignore-next-line -->`.
AGENTS.md:
# Layout
Handlers live in `src/routes/users.ts`.
In the repo: src/routes/user.ts: ``.
Finding:
AGENTS.md:3:19 error AMC002 `src/routes/users.ts` does not exist
fix: Did you mean `src/routes/user.ts`?
Follow the fix: line of the finding, or see the end of the text above.
<!-- amc-ignore-next-line --> on the line before it.--rule AMC002=off, or { "rules": { "AMC002": "off" } } in .agentmdcaregiver.json.--rule AMC002=warn.