AgentKit Doctor
Find out why your coding agent ignores its instructions, then fix it in one command.
Your agent ignores AGENTS.md. A Cursor rule never fires. Copilot skips your instructions. The cause is usually small: a wrong file name or extension, frontmatter on line 2, a CLAUDE.md that never imports AGENTS.md, a hook in the wrong shape. AgentKit Doctor finds those problems, explains each one in plain English with a link to the guide behind it, and fixes the ones with one right answer.
What it checks
| Tool | What it catches |
|---|---|
| AGENTS.md | misnamed agents.md or AGENT.md, empty files, a chain over Codex's 32 KiB default, AGENTS.override.md or WARP.md hiding it |
| Claude Code | CLAUDE.md that doesn't import AGENTS.md, CLAUDE.local.md switching it off, files over 200 lines, @imports to missing files, personal files not in .gitignore |
| settings.json and hooks | invalid JSON, committed bypassPermissions, Bash(*)-style allow rules, no deny rule for .env, hook entries in the wrong shape, unknown events, missing or non-executable scripts |
| .claude/rules | .mdc files and Cursor fields Claude ignores, frontmatter not on line 1, look-alike folders, dead paths: patterns, rules over 40,000 characters |
| Cursor | .md files in .cursor/rules, legacy .cursorrules, bad alwaysApply, rules that never apply, rules over 500 lines, hooks.json without "version": 1 |
| GitHub Copilot | instructions in the wrong place, missing .instructions.md suffix, missing or root-only applyTo, excludeAgent, .prompt.md files to move to skills, copilot-setup-steps.yml job name, timeout, runners and permissions |
| Gemini, Windsurf, Cline, Roo, Continue, OpenCode, aider | missing imports, legacy files, size limits, bad triggers, ignored files, deprecated settings, V1/V2 field mixes, read: paths that don't exist |
| Across all of them | secret-looking values (masked), instructions that name the wrong package manager or test runner, near-duplicate files, no runnable test command and no stop rule |
What --fix changes
- Renames files the tools skip:
agents.mdtoAGENTS.md,.cursor/rules/*.mdto.mdc, Copilot files to.instructions.mdor the right folder - Migrates
.cursorrulesto a Cursor.mdcrule, Cursor rules in.claude/rulesto Claude Code format, and Copilot prompt files toSKILL.md(the original is kept) - Repairs strict JSON, hook shapes,
"version": 1, frontmatter,alwaysApply,applyToglobs, the setup-steps timeout and.gitignoreentries - Adds
@AGENTS.mdto CLAUDE.md, a Commands section built from your real package.json, pyproject.toml, Makefile, Cargo.toml or go.mod (read, never run), and a short stop rule, only when you have none - Opt-in
--hardentightens Claude Code permissions: removes committed bypassPermissions, moves risky allow rules to ask, denies.envreads, force-push,reset --hardandrm -rf
It never deletes your text, never writes outside the repo, never follows symlinks and never touches files in your home folder. Each run writes a Markdown report.
What it looks like
Real output on the demo repo that ships in the ZIP (shortened).
$ python3 agentkit_doctor.py
AgentKit Doctor 1.0.0 /tmp/demo-repo
Tools detected: Claude Code, Cursor, GitHub Copilot
ERROR AKD101 agents.md
Tools look for the exact name AGENTS.md, so Codex, Cursor, Copilot
and others skip this file.
fix: rename agents.md to AGENTS.md
guide: https://agentkitco.com/blog/agents-md-not-working/
ERROR AKD205 CLAUDE.md
@docs/claude-extra.md points to a file that doesn't exist, so that
part of your instructions silently never loads.
guide: https://agentkitco.com/blog/claude-md-not-working/
...
12 errors, 12 warnings, 2 notes. 18 can be fixed with --fix.
4 more with --fix --harden (permission changes).
$ python3 agentkit_doctor.py --fix
...
Before: 12 errors, 12 warnings, 2 notes. After: 5 errors, 5 warnings, 1 notes.
Report: .agentkit-doctor/report-20261130-113705.md
Undo: python3 agentkit_doctor.py --undo 20261130-113705
Every file in the ZIP
agentkit-doctor/ ├── agentkit_doctor.py the tool (one file, Python 3.8+, stdlib only) ├── README.md install, every option, CI example, limits ├── CHECKS.md all 63 checks with the guide for each ├── LICENSE.md Personal or Team license ├── CHANGELOG.md ├── examples/make_messy_repo.py builds a demo repo full of common mistakes └── tests/test_doctor.py 76 automated tests
What this is not
- Not a linter for your code: it checks the files that configure your coding agent.
- Not enforcement: instruction files are guidance, and agents can still ignore them.
- It doesn't auto-fix judgment calls (secrets, contradictory rules, oversized files). It explains them and links the guide.
- Vendor rules change. Checks were reviewed against vendor docs and our guides on 2026-11-30; 1.x updates are free.
- No fake stats, reviews or promised time savings.
Run it
unzip agentkit-doctor.zip
cd your-repo
python3 ../agentkit-doctor/agentkit_doctor.py # scan, change nothing
python3 ../agentkit-doctor/agentkit_doctor.py --fix --dry-run # preview the repairs
python3 ../agentkit-doctor/agentkit_doctor.py --fix # apply them (backed up)
python3 ../agentkit-doctor/agentkit_doctor.py --undo # put everything back
On Windows use py instead of python3. --json and --strict make it easy to run in CI.
Licenses
Personal is $19 via the Buy button: one developer, any repos they work on. A Team license (up to 25 developers; commit it into shared repos and CI) is $49: email [email protected]. Gumroad team checkout is not set up yet.
Honest notes
Every check comes from our troubleshooting guides and the vendors' own docs, reviewed on 2026-11-30. Written with AI assistance, tested with 76 automated tests. There are no customer reviews yet and we won't invent any. Not affiliated with Anthropic, Cursor (Anysphere), GitHub, Microsoft, OpenAI, Google or the other tools named.
Questions
Which tools does it check?
AGENTS.md (Codex, Cursor, Copilot, Zed, Junie and others), Claude Code (CLAUDE.md, settings.json, hooks, .claude/rules), Cursor (rules, hooks.json, .cursorrules), GitHub Copilot (instructions, prompt files, copilot-setup-steps.yml), Gemini CLI, Windsurf/Devin, Cline, Roo Code, Continue, OpenCode 2 and aider. 63 checks in total; CHECKS.md in the ZIP lists them all.
Will it break my repo?
It only applies fixes with one clear right answer, refuses symlinks and paths outside the repo, and copies every file it touches to .agentkit-doctor/backups first. --dry-run shows the changes before they happen and --undo restores the originals byte for byte. Permission changes only happen with --harden. Review the diff before you commit, as with any tool.
Does it upload my code?
No. It makes no network calls and has no telemetry. It reads the folder you point it at and nothing else (plus a few files in your home folder only if you pass --include-user, and it never changes those).
What do I need to run it?
Python 3.8 or newer. It is one file that uses only the standard library, so there is nothing to pip install. It runs on macOS, Linux and Windows.
How is it different from your free checkers?
Each free download covers one tool, and most only report. AgentKit Doctor checks every tool together, including conflicts between them, and fixes what it safely can with backups and undo.
Will it make my agent follow its instructions?
It removes the setup reasons an agent can't see or load them: wrong names, wrong folders, broken frontmatter, invalid JSON, files over size limits. It can't make an agent obey; nothing can guarantee that.
Is there a team license?
Personal is $19: one developer, any repos they work on. A Team license (up to 25 developers, and you may commit the tool into shared repos and CI) is $49: email [email protected]. Gumroad team checkout is not set up yet.
Can I get a refund?
30-day money-back guarantee: if it doesn't help, email [email protected] for a full refund.
Related guides
Free first
Every check links to a free guide that explains the fix by hand. Start with AGENTS.md not working, try the AGENTS.md generator, or browse free agent skills.