{
 "snapshot": "2026-11-06",
 "sample": "Same 5,864 public repos as /data/hooks-onfailure-2026-11.json (>=5 stars, pushed since 2026-10-07, not fork, not archived). Every .claude/agents/*.md at the sampled commit, frontmatter read as YAML. Nothing from the repos was run. Repo names and file contents left out.",
 "live_test": {
  "claude_code_version": "2.1.314",
  "setup": "claude -p --model haiku --effort low --setting-sources project; one subagent runs one Bash command; a PreToolUse hook records the effort field Claude Code passes to hooks",
  "cases": {
   "subagent effort: high": "high",
   "subagent effort: high, CLAUDE_CODE_EFFORT_LEVEL=medium": "medium",
   "no effort, model inherit": "low (session)",
   "no effort, model: sonnet": "low (session); 2.1.317 changed this, not tested"
  }
 },
 "files": {
  "agent_files": 10413,
  "repos_with_agents": [1346, 23.0],
  "frontmatter_readable_by_our_parser": 9317,
  "model": {"set": 57.5, "sonnet": 24.9, "opus": 14.3, "inherit": 6.7, "haiku": 5.2, "full model id": 4.7, "fable": 1.2, "other": 0.4, "unset": 42.5},
  "effort": {"set": 10.3, "high": 4.3, "medium": 3.6, "low": 1.2, "xhigh": 0.8, "max": 0.2},
  "tools_set": 63.9,
  "autoCompactWindow": {"files": 3, "repos": 1},
  "pinned_model_files": 4736,
  "pinned_model_files_without_effort": [3890, 82.1]
 },
 "repos_of_1346": {
  "pins a model": [781, 58.0],
  "pins a model, no effort": [682, 50.7],
  "sets effort": [165, 12.3],
  "no tools list": [417, 31.0],
  "an agent file Claude Code skips silently": [55, 4.1]
 },
 "skipped_files": {
  "total": [196, 1.9],
  "no name": 77,
  "name but no description": 64,
  "YAML does not parse (claude plugin validate)": 30,
  "opening --- not on the first line": 15,
  "invalid name": 10,
  "no frontmatter, treated as documentation (not counted as skipped)": 611
 },
 "note": "Field shares are of the 9,317 files with readable frontmatter; skipped-file shares are of all 10,413. Pairs are [count, percent]. Our YAML parser rejected 470 files; claude plugin validate flagged 30 of them, so the other 440 load in Claude Code."
}
