God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: Badge that shows how well your codebase fits in an LLM's context window https://ift.tt/aSBscrp
Show HN: 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 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://ift.tt/5K4Y2Sl https://ift.tt/5K4Y2Sl February 27, 2026 at 05:14AM
Subscribe to:
Post Comments (Atom)
Show HN: Koriander – Recipe manager that parses ingredients and tracks nutrition https://ift.tt/GNqns9C
Show HN: Koriander – Recipe manager that parses ingredients and tracks nutrition https://koriander.app April 3, 2026 at 01:10AM
-
Show HN: A Spotify player in the terminal with full feature parity https://ift.tt/oZgrl1Q July 18, 2024 at 02:57AM
-
Show HN: Wallpapper Splitter for Many Desktop I've build an simple tool to split your wallpapers across multiple desktops. Now you can u...
-
submitted by /u/Dull_Tonight [link] [comments] source https://www.reddit.com/r/worldnews/comments/pehy48/housing_secretary_robert_je...
No comments:
Post a Comment