audit_instruction_bloat
Audit CLAUDE.md, AGENTS.md, and rule files for 30-turn token cost, code-fence bloat, and duplicate instructions, then rank expensive sections to trim prompt overhead.
Instructions
Audit CLAUDE.md, AGENTS.md, .cursorrules, .windsurfrules, and optional .mcp.json sections for 30-turn cumulative token cost, embedded code-fence bloat, and cross-file duplicate instructions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_instruction_bloat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional array of { path, content } objects for custom rule or MCP config files. | |
| turns | No | Session turn count used for cumulative section ranking (default: 30). | |
| mcpJson | No | Optional .mcp.json string included alongside instruction files for unified static-prefix ranking. | |
| modelId | No | Reference LLM pricing tier ID. | claude_sonnet_4_5 |
| agentsMd | No | Raw markdown content of AGENTS.md. | |
| claudeMd | No | Raw markdown content of CLAUDE.md. | |
| cursorRules | No | Raw content of .cursorrules. | |
| windsurfRules | No | Raw content of .windsurfrules. | |
| sessionsPerMonth | No | Monthly session count used for savings projections. |