Back to browse
GitHub Repository

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

29,924 starsTypeScript

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

by jimminyx·Feb 27, 2026·88 points·41 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

Makes token bloat visible like bundle size, but GitHub Actions badge metrics already exist.

Strengths
  • Addresses a genuine friction point for AI agents: small codebases that fit in context are strategically valuable.
  • Lightweight implementation (~60 lines Python, ~10 seconds), no commit overhead; workflow controls git strategy.
  • Configurable context window size and clear visual gradient (green/yellow/red) makes token budgeting intuitive.
Weaknesses
  • Solves a niche problem: only matters if you're already optimizing for LLM context; most teams don't prioritize this yet.
  • No integration with actual agent performance—badge is motivational, not actionable feedback on whether agents succeed.
Target Audience

Open-source maintainers and teams using AI coding agents who want to track codebase size relative to LLM context limits.

Similar To

Bundlephobia (bundle size badges) · CodeFactor (code quality badges)

Post Description

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 Python, takes about 10 seconds. The action updates the README but doesn't commit, so your workflow controls the git strategy.

The idea is to make token size a visible metric, like bundle size badges for JS libraries. Hopefully a small nudge to keep codebases lean and agent-friendly.

GitHub: https://github.com/qwibitai/nanoclaw/tree/main/repo-tokens

Similar Projects

AI/ML●●Solid

Entroly – Compress codebase context for LLMs by 78% using Rust

Entropy-based context compression beats naive token stuffing, but the category is crowded.

Big BrainNiche Gem
savetokens
103mo ago