~ / doctor

Rig Doctor

How heavy and how safe is your agent setup? Get your context tax (tokens loaded every turn, by source), a guardrail score out of 5, your archetype and percentile against 17.0k real public rigs, and concrete fixes with ready-to-paste guardrail snippets. Same method as every rig page. Free.

Pasted files never leave your browser. Values that look like keys are ignored, but strip real secrets anyway.

We fetch only agent config at standard paths (CLAUDE.md, AGENTS.md, .claude/settings.json, .mcp.json, skill/agent frontmatter, Kiro .kiro/steering, settings/mcp.json, hooks and agents) from raw.githubusercontent.com, with size caps and timeouts. Env values, headers and anything secret-looking are redacted before analysis; nothing is stored. Repos with an .agentrigs-ignore file are skipped.

How the Doctor scores
  • Context tax = always-loaded instructions (characters ÷ 4 of your primary rules file plus @imports) + skill and subagent metadata (name + description ÷ 4, +8 each) + an estimate of each MCP server's tool schemas (measured sizes for ~30 popular servers, 2,500 tokens for unknown ones). Index median: 2.3k. Details.
  • Guardrails (one point each): blocks destructive commands · protects secrets · PreToolUse hook · no YOLO mode · sandbox or ask-first rules. Details.
  • Guardrail Quality 0–100 (Guardrails v2, Oct 2026): tests your deny/ask rules and hook against 22 dangerous command variants (incl. known bypasses), checks Read+Edit protection of 6 secret path types, statically grades your PreToolUse hook script (never runs it), penalises broad allows, and looks for explicit safety rules in CLAUDE.md/AGENTS.md. Rubric.
  • Kiro: steering files with inclusion: always (the default) + AGENTS.md count as instructions; auto steering counts its name + description; fileMatch/manual steering and specs cost nothing per turn. Disabled servers in .kiro/settings/mcp.json are skipped. Custom-agent permissions rules (and legacy toolsSettings/allowedTools) count as deny/ask rules; PreToolUse hooks count as screening hooks. Full mapping.
  • Repo mode reads root-level agent files (plus @imports, skill and subagent frontmatter). Rig pages also add nested CLAUDE.md files from subfolders, so they can show a higher instructions number for the same repo.
  • Percentiles compare you with every indexed rig: "leaner than" counts rigs with a higher tax, "safer than" rigs with a lower guardrail score.
copied ✓