agentsfile
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentsfileCheck whether AGENTS.md and CLAUDE.md match this repo's files and scripts."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agentsfile
Agent instruction files rot quietly. This checks them against the repo they describe.
AGENTS.md and CLAUDE.md tell coding agents how a repo works: which files matter, which commands to run, how the project is laid out. Repos move faster than their instruction files. A renamed directory, a deleted script, a guide that was never more than a stub, and the agent following the file wastes its run or invents what the file got wrong. Nothing fails loudly, because nothing ever checked the file against the repo.
agentsfile does that check. It reads the AGENTS.md and CLAUDE.md at a repo root, extracts the backticked paths and the npm, yarn, and pnpm script references, and verifies each one against the actual file tree and the actual package.json. Every finding carries the file, the line, and the exact text it came from. The output is deterministic: sorted findings, no timestamps, the same repo always producing the same report.
What it checks
rule | severity | what it means |
| high | Neither AGENTS.md nor CLAUDE.md exists at the repo root. |
| medium | A backticked span that looks like a relative path does not exist in the repo, as a file or as a directory. |
| medium | A referenced script ( |
| low | An agent file exists but is empty or under 5 lines long. |
| info | There is no package.json at the repo root (or it does not parse), so script references were not checked. |
Verdict rules:
VALID: no medium or high findings. Low and info findings can be present. Exit code 0.
DRIFT: at least one medium or high finding. The agent files disagree with the repo. Exit code 1.
MISSING: neither AGENTS.md nor CLAUDE.md exists at the repo root. Exit code 1.
Usage errors exit with code 2. A reader that closes the output pipe early makes the process exit 141, never 0.
Script reference details: npm run <name> checks <name> directly. The conventional shorthands npm test and npm start (plus stop and restart) map to the script of the same name. For yarn and pnpm, <manager> <name> and <manager> run <name> check <name>, and the package managers' own builtin subcommands (install, add, publish, and friends) are never treated as scripts.
Related MCP server: prumo
Usage
CLI
# Check the current repo
npx @reneturcios/agentsfile check
# Check another repo, machine readable
npx @reneturcios/agentsfile check ~/src/my-repo --json
# Print the version
npx @reneturcios/agentsfile --versionExample output:
agentsfile check .: DRIFT
files: 2, findings: 2 (high: 0, medium: 2, low: 0, info: 0)
summary: 2 agent file(s) checked; 2 finding(s): 0 high, 2 medium, 0 low, 0 info. Verdict: DRIFT.
AGENTS.md:
[MEDIUM] line 4 PATH-MISSING `src/gone.ts` Referenced path does not exist in the repo: src/gone.ts
[MEDIUM] line 5 SCRIPT-MISSING `npm run deploy` Script referenced but not defined in package.json scripts: deploy
DRIFT: at least one medium or high finding; the agent files disagree with the repo.With --json the full report is printed as JSON: tool, version, target, verdict, counts (files, findings, and per-severity totals), the findings array, and a one-line summary. Checking needs no credentials and no network, and nothing in the target repo is executed.
The target may also be a single agent instruction file instead of a directory; its own directory is then treated as the repo root and only that file is checked.
MCP server
npx @reneturcios/agentsfile mcpAdd to your MCP client config:
{
"mcpServers": {
"agentsfile": {
"command": "npx",
"args": ["-y", "@reneturcios/agentsfile", "mcp"]
}
}
}Tool: check_agents_file(path) returns the full check report for the repo (or single file) at path, as JSON.
Limits, stated plainly
Only AGENTS.md and CLAUDE.md at the repo root are read. Nested agent files in subdirectories are not checked in this version.
Only two kinds of reference are checked: backticked spans, and npm, yarn, and pnpm script patterns. Commands shown in fenced code blocks are found by the script patterns, but paths in fenced blocks without backticks are not checked, and neither are links, prose mentions, or commands from other toolchains (make, cargo, go, and so on).
Path detection is a heuristic, stated honestly: a backticked span counts as a path if it has no spaces, does not start with http, and either contains a slash or ends in a dotted segment that looks like a file extension from a known list (plus a small set of known dotfiles such as
.env). Tokens containing characters such as@,:,*,=, or quotes are never treated as paths, so scoped package names and action references are not flagged. The flip side is real: an unusual file name can be missed, and an odd token that happens to look like a path can be flagged. Findings always quote the exact span so a human can judge in one glance.The check is existence only. A path that exists is not checked for being the right file, and a script that exists is not checked for doing what the guide claims it does.
The stub rule is a line count (under 5 lines), not a quality judgment. A short file that is genuinely complete will still be reported at low severity, which never changes the verdict on its own.
This server cannot be deployed
Maintenance
Related MCP Connectors
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
Checks CLAUDE.md, AGENTS.md or a system prompt for 12 safeguards unattended agents need.
MEOK AGENTS.md Linter MCP — validates the cross-vendor coding-agent spec (Cursor / Claude Code /
Static linter for CLAUDE.md-style agent constitution files: 10 operational-guardrail checks.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceValidates AGENTS.md files against the cross-vendor coding-agent spec, detecting security smells and consistency issues.MIT- AlicenseAqualityAmaintenanceChecks the context files a coding agent reads (CLAUDE.md, AGENTS.md, SKILL.md, .cursor/rules) against the git index of a repository, and reports wrong letter case, broken links, missing paths, commands nothing defines and agent configuration that points at nothing. Two more tools report which sections drifted from the code and what each file costs; zero dependencies, stdio, Node 18 or newer.505MIT
- AlicenseNot gradedqualityCmaintenanceEnables any MCP client to detect Claude Code configuration that is silently ignored, such as agent files that fail to load, unknown frontmatter fields, parent-folder settings, conflicting MCP server entries and drift since a baseline. Exposes read-only tools that return findings with exact edits, the fix prompt, and explanations of each check, without modifying any files.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceExposes tools that scan a repository's manifests, CI workflows and layout to generate truthful AGENTS.md/CLAUDE.md agent instructions, then audit those docs for drift such as dead commands, undocumented scripts and CI mismatches. Enables agents to keep their own onboarding documentation accurate and CI-verifiable instead of hand-written and rotting.1MIT