NewsWorld
PredictionsDigestsScorecardTimelinesArticles
NewsWorld
HomePredictionsDigestsScorecardTimelinesArticlesWorldTechnologyPoliticsBusiness
AI-powered predictive news aggregation© 2026 NewsWorld. All rights reserved.
Trending
MilitaryFebruaryHongMarketIranTimelineLaunchDigestTrumpFacesKongSignificantExpansionTargetingCampaignPolicyFridayRegionalProgramsTradingCompanyMedicalTraditionalPrediction
MilitaryFebruaryHongMarketIranTimelineLaunchDigestTrumpFacesKongSignificantExpansionTargetingCampaignPolicyFridayRegionalProgramsTradingCompanyMedicalTraditionalPrediction
All Articles
Show HN: Badge that shows how well your codebase fits in an LLM's context window
Hacker News
Published about 3 hours ago

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

Hacker News · Feb 27, 2026 · Collected from RSS

Summary

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 Comments URL: https://news.ycombinator.com/item?id=47181471 Points: 17 # Comments: 9

Full Article

AI CODE CREATIONGitHub CopilotWrite better code with AIGitHub SparkBuild and deploy intelligent appsGitHub ModelsManage and compare promptsMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorArchive ProgramREPOSITORIESTopicsTrendingCollectionsENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Sign in Sign up Appearance settings


Share this story

Read Original at Hacker News

Related Articles

Hacker Newsabout 2 hours ago
Vibe coded Lovable-hosted app littered with basic flaws exposed 18K users

Article URL: https://www.theregister.com/2026/02/27/lovable_app_vulnerabilities/ Comments URL: https://news.ycombinator.com/item?id=47182659 Points: 32 # Comments: 3

Hacker Newsabout 2 hours ago
NASA announces major overhaul of Artemis program amid safety concerns, delays

Article URL: https://www.cbsnews.com/news/nasa-artemis-moon-program-overhaul/ Comments URL: https://news.ycombinator.com/item?id=47182483 Points: 19 # Comments: 8

Hacker Newsabout 3 hours ago
We gave terabytes of CI logs to an LLM

Article URL: https://www.mendral.com/blog/llms-are-good-at-sql Comments URL: https://news.ycombinator.com/item?id=47181801 Points: 51 # Comments: 33

Hacker Newsabout 3 hours ago
Tenth Circuit: 4th Amendment Doesn't Support Broad Search of Protesters' Devices

Article URL: https://www.eff.org/deeplinks/2026/02/victory-tenth-circuit-finds-fourth-amendment-doesnt-support-broad-search-0 Comments URL: https://news.ycombinator.com/item?id=47181391 Points: 43 # Comments: 3

Hacker Newsabout 3 hours ago
The Pentagon is making a mistake by threatening Anthropic

Article URL: https://www.understandingai.org/p/the-pentagon-is-making-a-mistake Comments URL: https://news.ycombinator.com/item?id=47181380 Points: 149 # Comments: 105

Hacker Newsabout 3 hours ago
New California law requires age verification for all OS accounts

Article URL: https://www.pcgamer.com/software/operating-systems/a-new-california-law-says-all-operating-systems-including-linux-need-to-have-some-form-of-age-verification-at-account-setup/ Comments URL: https://news.ycombinator.com/item?id=47181208 Points: 41 # Comments: 24