ctxlint
v0.30.0Lint AI agent context files (CLAUDE.md, AGENTS.md, etc.) against your actual codebase
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ctxlint_audit
Audit AI agent context files (CLAUDE.md, AGENTS.md, etc.) in the project. Checks for stale references, invalid commands, redundant content, contradictions, frontmatter issues, and token waste. Scoped to context-file checks only; MCP-config and session-level checks are exposed as separate tools.
| Parameter | Type | Description |
|---|---|---|
checks | array | Which context-file checks to run. Defaults to all. |
projectPath | string | Path to the project root. Defaults to current working directory. |
ctxlint_validate_path
Check if a file path referenced in a context file actually exists in the project. Returns the file status and suggests corrections if the path is invalid.
| Parameter | Type | Description |
|---|---|---|
path * | string | The file path to validate |
projectPath | string | Project root. Defaults to cwd. |
ctxlint_token_report
Get a token count breakdown for all context files in the project. Shows per-file and aggregate token usage, plus estimated waste from redundant content.
| Parameter | Type | Description |
|---|---|---|
projectPath | string | Project root. Defaults to cwd. |
ctxlint_fix
Run the selected context-file checks and apply every auto-fix they emit, writing the context files in place. Today only the paths check emits fixes: a broken file path is rewritten to its git-rename target or a close fuzzy match. Returns a summary of what was fixed. Pass dryRun: true to preview what would be fixed without writing any files.
| Parameter | Type | Description |
|---|---|---|
checks | array | Which context-file checks to run before fixing. Defaults to all. |
dryRun | boolean | If true, simulate fixes and report what would change without writing any files. Returns accurate counts. |
projectPath | string | Path to the project root. Defaults to current working directory. |
ctxlint_mcp_audit
Lint MCP server configuration files in a project. Checks for schema errors, hardcoded secrets, deprecated transports, wrong env var syntax, URL issues, and cross-client inconsistencies.
| Parameter | Type | Description |
|---|---|---|
checks | array | Specific MCP checks to run (default: all mcp-* checks). |
includeGlobal | boolean | Also scan global/user-level MCP configs. |
projectPath | string | Path to the project root. Defaults to current working directory. |
ctxlint_session_audit
Audit AI agent session data for cross-project consistency and session hazards. Checks for missing GitHub secrets, diverged config files and missing workflows across sibling repositories; stale, duplicate or overflowing memory entries; command loops; and, from Claude Code transcripts, shared temp paths, gates claimed clean after failing, edits piling up on the default branch, unresolvable commit SHAs in memory, and large whole-file Reads re-sent as context on later turns.
| Parameter | Type | Description |
|---|---|---|
checks | array | Specific session checks to run (default: all session-* checks). |
projectPath | string | Path to the project root. Defaults to current working directory. |
ctxlint_skill_audit
Audit agent skill and subagent definitions (~/.claude/skills/*/SKILL.md, ~/.claude/agents/*.md). Checks for frontmatter problems, broken file references, trigger collisions, orphaned skill directories, and dead tool restrictions.
| Parameter | Type | Description |
|---|---|---|
checks | array | Specific skill checks to run (default: all skill-* checks). |
projectPath | string | Path to the project root. Defaults to current working directory. |