AgentLint 2026 Empirical Report · 4,533 Open-Source Repositories

    We audited 4,533 real GitHub repos' CLAUDE.md & AGENTS.md files.

    Most advice on writing CLAUDE.md and AGENTS.md is guesswork. We indexed 4,533 public repositories — 13,386 rule files, 5,964 commands, 739 hooks, and 3,732 skills — to measure what actually works and what breaks silently.

    4,533
    Repos audited
    3,225
    CLAUDE.md files
    13,386
    Rule files
    132 lines
    Median length
    58%
    Unpinned Actions
    37 repos
    > 40K truncated

    Six Empirical Findings

    FINDING 01132 lines

    Real CLAUDE.md files are 20x longer than toy templates assume

    Across 3,225 repos with measurable CLAUDE.md files, the median length is 132 lines (mean 210, p90 484). Top-star exemplars cluster cleanly in the 60–250 line sweet spot with conditional pointers to deeper docs.

    FINDING 0237 repos

    37 real repositories silently exceed Claude Code's 40,000-char limit

    Claude Code's MAX_MEMORY_CHARACTER_COUNT hard-truncates single entry files at 40,000 characters. Teams append rules at the bottom of giant files that the model never receives.

    FINDING 0358%

    58% of AI-enabled repos leave GitHub Actions on floating tags

    More than half of audited repositories trigger CI workflows with mutable version tags (@v4) instead of commit SHAs — exposing agent-triggered pull requests to supply-chain drift.

    FINDING 04< 1%

    Almost zero repos use Anthropic's Don't / Instead / Because formula

    Bare prohibitions ('Never use X') dominate the corpus, even though Anthropic's own 265 prompt versions converged on pairing negative boundaries with a concrete alternative and reason.

    FINDING 0535+ typos

    Silent hook misconfigurations disable guardrails without error

    Over 35 invented or miscased Claude Code hook names (like preCommit, sessionStart, postEditHook) appear across ~50 repos. Because invalid event keys fail silently, teams believe guardrails are active when they never run.

    FINDING 0654.3%

    TypeScript and Python account for over half of all AI agent harnesses

    TypeScript (33.8%) and Python (20.5%) lead harness adoption, followed by Shell (6.7%), JavaScript (5.7%), Rust (4.7%), and Go (4.6%). Dual CLAUDE.md + AGENTS.md setups are rising fastest among multi-agent teams.

    Language Distribution

    TypeScript + Python account for 54.3% of all indexed AI harnesses.

    TypeScript1,533 (33.8%)
    Python929 (20.5%)
    Shell304 (6.7%)
    JavaScript259 (5.7%)
    Rust211 (4.7%)
    Go210 (4.6%)
    HTML145 (3.2%)
    C#99 (2.2%)
    PHP64 (1.4%)
    Other779 (17.2%)

    Adoption Growth Trajectory

    2026 Q1 alone surpassed the entire pre-2025 historical corpus combined.

    Pre-2025550 repos
    2025 Q1125 repos
    2025 Q2259 repos
    2025 Q3490 repos
    2025 Q4976 repos
    2026 Q11,869 repos

    CLAUDE.md Length Percentiles (3,225 repos)

    p10
    15 lines
    p25
    69 lines
    p50 (Median)
    132 lines
    p75
    254 lines
    p90
    484 lines
    p95
    685 lines

    Harness Maturity Levels (L0–L5)

    Adoption is strongly bimodal: teams either ship a single entry file + basic rules (L1–L2) or build full agent ecosystems with hooks, commands, and subagents (L4–L5).

    L0
    3.2%
    Minimal / empty
    147 repos
    L1
    21.3%
    CLAUDE.md only
    966 repos
    L2
    38.1%
    Entry file + rules
    1,726 repos
    L3
    10.9%
    + commands / skills
    494 repos
    L4–L5
    26.5%
    + agents / hooks / settings
    1,200 repos

    Standout Open-Source Exemplars

    Alongside the 4,533-repo full corpus study, we publish individual six-dimension audit pages and live README scorecards for the top 1,000 clean public repos.

    View all 1,000 published repo audits
    n8n-io/n8n72/100 (B)

    ★ 179,208 · TypeScript · 2 lines · comprehensive

    Most-starred repo in dataset. Uses AGENTS.md format. Practical build output redirection tip (pipe to file, tail for errors). Linear integration and Posthog feature flags mentioned as tooling context.

    vercel/next.js83/100 (A)

    ★ 138,292 · JavaScript · 432 lines · comprehensive

    431-line masterclass in monorepo CLAUDE.md. Covers fast dev loop (watch mode + skip-isolate), test gotchas from real CI failures, skill system for specialized workflows, and context-efficient patterns for AI agents.

    langchain-ai/langchain77/100 (B)

    ★ 129,529 · Python · 254 lines · comprehensive

    253 lines for a massive Python monorepo. Strong emphasis on stable public interfaces with breaking change prevention. Code quality standards with concrete examples including docstring format. CI/CD infrastructure documented for adding new partners.

    electron/electron77/100 (B)

    ★ 120,480 · C++ · 271 lines · comprehensive

    270 lines for a complex Chromium-based project. Excellent patch system documentation with workflow diagrams. PR labeling system with active branch detection. CI artifact reuse for faster patch conflict resolution.

    excalidraw/excalidraw84/100 (A)

    ★ 118,755 · TypeScript · 35 lines · minimalist

    34 lines for a 118K-star repo. Proves that even a minimal CLAUDE.md covering project structure, key commands, and architecture notes adds value. Good starting point for teams adopting CLAUDE.md.

    denoland/deno73/100 (B)

    ★ 106,337 · Rust · 415 lines · comprehensive

    414 lines with table of contents for navigation. Spec test documentation with custom assertion language ([WILDCARD], [UNORDERED_START]). Complete development workflows for adding CLI commands and extensions. Troubleshooting guide.

    oven-sh/bun80/100 (B)

    ★ 88,111 · Zig · 260 lines · comprehensive

    259 lines for a multi-language runtime (Zig/C++/TS). CRITICAL markers for non-obvious rules. Test validation requirement (must fail with system bun, pass with debug). Comprehensive source organization covering vendored deps.

    astral-sh/uv77/100 (B)

    ★ 80,990 · Rust · 19 lines · minimalist

    18-line CLAUDE.md achieving 100% right-altitude content. Every line is an actionable directive using ALWAYS/NEVER/PREFER format. No prose, no filler.

    Ready to benchmark your own repository?

    Run the same 58 evidence-backed checks in 5 seconds.

    Use the zero-upload online scanner right now or install the CLI with npm install -g agentlint-ai && agentlint check.