Show HN: Badge that shows how well your codebase fits in an LLM's context window

2026-02-27T16:54:59.000Z·★ 100·1 min read
GitHub badge showing codebase token counts vs LLM context window sizes — helps developers assess AI coding tool compatibility.

A GitHub badge that visualizes how much of a codebase fits within popular LLM context windows, helping developers understand AI coding tool compatibility.

What It Does

The tool (nanoclaw/repo-tokens) calculates token counts for codebases and generates a badge showing fit percentages for different LLM context windows. This helps developers quickly assess whether their project is small enough for AI tools to process entirely.

Why It Matters

Technical Approach

The tool walks the repository, tokenizes files (excluding common non-code paths), and generates percentage fit scores for popular model context sizes.


Source: GitHub

↗ Original source
← Previous: ‘Starkiller’ Phishing Service Proxies Real Login Pages, MFANext: We gave terabytes of CI logs to an LLM →
Comments0