Badge that shows how well your codebase fits in an LLM's context window
Small codebases were always a good thing. With coding agents, there's now a huge advantage to having a codebase small enough that an agent can hold the full thing in context. Repo Tokens is a GitHub Action that counts your codebase's size in tokens (using tiktoken) and updates a badge in your README. The badge color reflects what percentage of an LLM's context window the codebase fills: green for under 30%, yellow for 50-70%, red for 70%+. Context window size is configurable and defaults to 200k (size of Claude models). It's a composite action. Installs tiktoken, runs ~60 lines of inline…
Badge that shows how well your codebase fits in an LLM's context window launched on February 27, 2026 with 88 votes, #416 of 16,627 launches that month and more than 95% of that year's launches.
In plain words
Repo Tokens is a GitHub Action that measures how many tokens your codebase contains using tiktoken and displays the result as a colored badge in your README. The badge shows green if the codebase fits in under 30% of an LLM's context window, yellow for 50-70%, and red for 70% or more, with the context window size configurable and defaulting to 200,000 tokens. It is designed for developers working with coding agents who benefit from keeping their entire codebase within an LLM's context limits.
written from the facts on this page · September 2026
From the sources
A lightweight alternative to OpenClaw that runs in containers for security. Connects to WhatsApp, Telegram, Slack, Discord, Gmail and other messaging apps,, has memory, scheduled jobs, and runs directly on Anthropic's Agents SDK - nanoclaw/repo-tokens at main · nanocoai/nanoclaw
A GitHub Action that calculates the size of your codebase in terms of tokens and updates a badge in your README. - uses : nanocoai/nanoclaw/repo-tokens@v1 with : include : ' src/**/*.ts ' exclude : ' src/**/*.test.ts ' This counts tokens using tiktoken and writes the result between HTML comment markers in your README: The badge color reflects what percentage of an LLMs context window the codebase fills (context window size is configurable, defaults to 1M which is the size of current Claude models). Green for under 30%, yellow-green for 30%-50%, yellow for 50%-70%, red for 70%+. Small codebases were always a good thing. With coding agents, there's now a huge advantage to having a codebase…from github.com
In the maker’s words, at launch
Small codebases were always a good thing. With coding agents, there's now a huge advantage to having a codebase small enough that an agent can hold the full thing in context. Repo Tokens is a GitHub Action that counts your codebase's size in tokens (using tiktoken) and updates a badge in your README. The badge color…
Does a similar job
all alternatives →
GitGuessrFeb 2026 · gitguessr.com · ▲98I built this game as a playful way to train code reading skills. You're dropped into a random location in a real GitHub repo where some lines code are hidden. The goal is to pick up clues from the surrounding code and fill in the missing lines as quickly as possible. It currently has curated game content for Python, TypeScript, JavaScript (by most metrics the top 3 languages on GitHub). I had the idea when it dawned on me that reviewing and understanding code spat out by an LLM is a key skill for the AI era. (I sincerely hope you're critically reviewing what your favorite LLM is serving…
Repo badge to count your repo badges2016 · github.com · ▲19badges for your badges. Contribute to defunctzombie/badginator development by creating an account on GitHub.
Uithub – Easily Ask Your LLM Coding Questions2024 · uithub.com · ▲6I've created uithub, a tool that allows developers to easily get LLM context for their coding questions and perform AI repo analysis at scale. Here's what it does: - Get Context: Simply change the 'g' in github.com to 'u' to access AI-powered insights on any GitHub repo. - Flexible Querying: Fetch entire repos, specific branches/subfolders, or filter by file type and size. - API for Developers: Power the next generation of development tools with our API. Key features: - Customizable token limits - File type filtering - Multiple response formats - Size-based file exclusion I built this…

Context42 – capture your coding style from across your projects2025 · github.com · ▲10Show HN: Context42 - AI-powered style guide generator for your codebase Hey HN, I've been building Context42 to solve a problem that's been bugging me: getting AI to write code like me, and helping disseminate coding best practices. The core insight is simple - your existing code is already your best style guide. Instead of debating tabs vs spaces or where to put your curly braces, Context42 analyzes your actual codebase and generates comprehensive style documentation using Google's Gemini AI. Here's what makes it special: 1. *Language-aware analysis* - It groups files by language and…
More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 22d ago · stillwet.art

FastRouter.ai▲364Route requests to the right LLM for cost, latency & quality
AI · 23d ago · fastrouter.ai
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, February 2026
the whole month →



Lovon AI Therapy▲801Feel closer and have more fun with your partner every day!
AI · Feb 2026 · lovon.app

Hello my name is Ben Ward for the past 3 years I have been remastering the financial game Wall Street Raider created by Michael Jenkins originally on DOS in 1986. It has been a rough journey but I finally see the light at the end of the tunnel. I just recently redid the website and thought maybe the full story of how this project came to be would interest you all. Thank you for reading.
Work · Feb 2026 · wallstreetraider.com