A linter for your agent instructions. Checks AGENTS.md, CLAUDE.md and codex.md against the actual repo.
agent-md-caregiver [paths...] [options]
With no paths, the tool finds AGENTS.md, CLAUDE.md and codex.md in the repo, including nested ones. A directory path checks the instruction files inside it. Agent skill folders are skipped unless you pass --include-skills or name them as a path; see Skipped files. agent-md-caregiver --help prints the same information; a test keeps this page in sync with it.
| Flag | Meaning |
|---|---|
--root <dir> |
Repo root (default: current directory). |
--format <name> |
pretty (default), json, github, sarif or agent. See below. |
--max-lines <n> |
Line budget for instruction files (default: 150). |
--rule <id>=<level> |
Override a rule: off, info, warn or error. Repeatable. |
--strict |
Warnings fail the run too. |
--include-skills |
Also check agent skill and tool folders (.claude/skills/, .codex/, …), which are skipped by default. |
--init |
Print the recommended AGENTS.md skeleton (writes nothing). |
--write |
With --init: create AGENTS.md at the root if it does not exist. The only write path. |
--explain <id> |
Show what a rule checks and how to fix it. |
--docs |
Print the documentation URL (offline, writes nothing). |
--no-color |
Disable colors (NO_COLOR is also respected). |
-v, --version |
Print the version. |
-h, --help |
Show help. |
| Code | Meaning |
|---|---|
0 |
Clean. Info findings never fail the run. |
1 |
Findings at or above the threshold: errors; with --strict, warnings too. |
2 |
Usage or internal error (bad flag, invalid config, unknown rule). |
| Format | Use it for |
|---|---|
pretty |
Reading in a terminal. Colors only on a TTY. |
json |
Scripts and agents. Versioned, deterministic. See the JSON schema. |
github |
GitHub Actions annotations on the pull request. |
sarif |
SARIF 2.1.0, for code scanning upload. |
agent |
The review handoff: findings plus what the rules could not decide, for your coding agent. Exit code still comes from the rules only. |