ESLint for AI Agents ā Score, diagnose, and auto-fix your CLAUDE.md and agent workspace files
npm install agentlinterESLint for AI Agents ā Score, diagnose, and auto-fix your CLAUDE.md and agent workspace files.
``bash`
npx agentlinter
AgentLinter scans your AI agent workspace (CLAUDE.md, AGENTS.md, SOUL.md, etc.) and scores it across 5 dimensions:
| Category | Weight | What it checks |
|----------|--------|----------------|
| Structure | 20% | File organization, heading hierarchy, section separation |
| Clarity | 25% | Instruction quality, vague language, actionability |
| Completeness | 20% | Required elements (identity, tools, boundaries, memory) |
| Security | 20% | Secret exposure, injection defense, permission boundaries |
| Consistency | 15% | Cross-file references, naming, language mixing |
`bashScore current directory
npx agentlinter
Example Output
`
š AgentLinter v0.1.0
š Scanning workspace: ./my-agentš Overall Score: 87/100
Structure āāāāāāāāāā 80
Clarity āāāāāāāāāā 90
Completeness āāāāāāāāāā 85
Security āāāāāāāāāā 95
Consistency āāāāāāāāāā 75
š 2 warning(s), 3 info(s)
ā ļø WARN CLAUDE.md:14
Secret detected: API key pattern (sk-...)
ā ļø WARN TOOLS.md missing
Referenced in CLAUDE.md but file not found
š” 2 issue(s) have suggested fixes. Run
agentlinter fix --auto to apply.
`Share Your Score
Use
--share to upload your report and get a shareable link:`bash
$ npx agentlinter --shareš Share your score: https://agentlinter.com/r/abc123
`Supported Files
AgentLinter recognizes common agent workspace files:
-
CLAUDE.md / AGENTS.md ā Main agent instructions
- SOUL.md ā Personality/persona
- IDENTITY.md ā Name, origin
- USER.md ā User context
- TOOLS.md ā Tool documentation
- SECURITY.md ā Security rules
- And more...Privacy
- No file content is uploaded ā only scores, category breakdowns, and diagnostic messages
- File names are sent (for the "Files Scanned" section)
- A hashed machine ID is used for score history (no PII)
- Use
--no-share` (default) to keep everything local- Website: agentlinter.com
- GitHub: github.com/seojoonkim/agentlinter
MIT