Repo Tokens: GitHub Action Adds Token Count Badge for LLM Context Window Awareness

Repo Tokens is a GitHub Action that calculates the token count of your codebase and adds a visual badge to your README indicating how much of a large language model's context window your repository occupies. The goal is to make token size a visible metric, similar to bundle size badges for JavaScript libraries, encouraging leaner codebases that are more compatible with AI coding agents.
How It Works
The action uses tiktoken for tokenization. It runs approximately 60 lines of inline Python and takes about 10 seconds to execute. It's implemented as a composite action.
Configuration and Output
The context window size is configurable, defaulting to 200,000 tokens (matching the size of Claude models). The badge color reflects the percentage of the configured context window your codebase fills:
- Green: Under 30%
- Yellow: 50-70%
- Red: 70%+
The action updates the README file but does not automatically commit the changes, allowing your workflow to control the git strategy.
This type of tool is useful for developers working with AI assistants, as keeping a codebase within an LLM's context window allows the agent to maintain full awareness of the project structure and dependencies during coding tasks.
📖 Read the full source: HN AI Agents
👀 See Also

Claude Code Adds Auto Mode for Permission Decisions
Claude Code now has an auto mode that lets Claude handle permission decisions instead of requiring manual approval for every file write and bash command. This mode includes safeguards that check each action before it runs, with a classifier reviewing tool calls for potentially destructive actions.

Bitcoin MCP Server with 43 Tools for AI Coding Agents
bitcoin-mcp is an MCP server with 43 Bitcoin tools including fee advisors, mempool analysis, and inscription detection. It works with Claude Desktop, Claude Code, Cursor, VS Code, and Windsurf using live data from APIs or local nodes.

OmniCoder-9B fine-tune shows strong performance for agentic coding on 8GB VRAM systems
A Reddit user tested OmniCoder-9B, a fine-tune of Qwen3.5-9B on Opus traces, with OpenCode and reported 40+ tokens per second speeds using Q4_K_M GGUF quantization at 100k context length on an 8GB VRAM system.

devcontainer-mcp: Give AI Agents Their Own Dev Environment, Not Yours
devcontainer-mcp is an MCP server that exposes 45 tools for AI agents to create, manage, and work inside dev containers backed by Docker, DevPod, or GitHub Codespaces — keeping host machines clean.