Show HN: Badge that shows how well your codebase fits in an LLM's context window
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
- Different LLMs have different context windows (8K to 2M+ tokens)
- Knowing your repo size helps choose the right AI coding tool
- Smaller repos that fit in context get better AI assistance
- Useful for deciding whether to restructure for AI-friendliness
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
← Previous: ‘Starkiller’ Phishing Service Proxies Real Login Pages, MFANext: We gave terabytes of CI logs to an LLM →
0