frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Epstein Sought to Establish Behavioral Engineering Institute at Stanford

https://stanfordreview.org/breaking-epstein-sought-to-establish-behavioral-engineering-institute-...
1•abathologist•2m ago•0 comments

Are the Mysteries of Quantum Mechanics Beginning to Dissolve?

https://www.quantamagazine.org/are-the-mysteries-of-quantum-mechanics-beginning-to-dissolve-20260...
1•Anon84•3m ago•0 comments

Vibe coded Lovable-hosted app littered with basic flaws exposed 18K users

https://www.theregister.com/2026/02/27/lovable_app_vulnerabilities/
1•nottorp•4m ago•0 comments

Show HN: I built a client-side GitHub repo comparator

https://gitranc.com/http://localhost:4321/
1•motsarnt•4m ago•0 comments

Sudo-rs enables pwfeedback by default for Resolute Raccoon

https://discourse.ubuntu.com/t/sudo-rs-enables-pwfeedback-by-default-for-resolute-raccoon/77712
1•timhh•4m ago•1 comments

ChatGPT Health performance in a structured test of triage recommendations

https://www.nature.com/articles/s41591-026-04297-7
4•doener•6m ago•1 comments

Pix – support for new D3D features and misc quality-of-life improvements

https://devblogs.microsoft.com/pix/pix-2602-25/
1•ibobev•7m ago•0 comments

Dell Fiscal Year Results

https://investors.delltechnologies.com/news-releases/news-release-details/dell-technologies-deliv...
1•etothet•7m ago•2 comments

Greenland's largest glacier could soon reach a tipping point, scientists say

https://phys.org/news/2026-02-greenland-largest-glacier-scientists.html
1•bikenaga•7m ago•0 comments

Shader Model 6.9 Retail and New D3D12 Improvements

https://devblogs.microsoft.com/directx/shader-model-6-9-retail-and-more/
2•ibobev•7m ago•0 comments

Break It to Make It: How Fracturing Sculpts Tissues and Organs

https://www.quantamagazine.org/break-it-to-make-it-how-fracturing-sculpts-tissues-and-organs-2026...
1•ibobev•8m ago•0 comments

AI accurately spots medical disorder from privacy-conscious hand images

https://www.kobe-u.ac.jp/en/news/article/20260227-67610/
2•geox•9m ago•0 comments

Cracking OPOv1: Reverse Engineering the OnePlus Buds Protocol

https://aasheesh.vercel.app/blog/oneplus-buds
1•aasheeshrathour•9m ago•0 comments

There Are No Psychopaths

https://aeon.co/essays/psychopathy-is-a-zombie-idea-why-does-it-cling-on
2•jamesgill•10m ago•0 comments

StackOverflow Beta

https://beta.stackoverflow.com/
1•ms7892•10m ago•0 comments

LLM_amoeba – Can an AI-powered amoeba survive?

https://ivoras.github.io/llm_amoeba/
1•ivoras•11m ago•0 comments

My Cat Kept Jumping on the Counter..So I Built a Robot [video]

https://www.youtube.com/watch?v=b9DP2-Rjjgw
1•DeathArrow•12m ago•0 comments

Darwin Among the Machines (1863)

https://en.wikipedia.org/wiki/Darwin_among_the_Machines
1•davedx•14m ago•1 comments

Show HN: ContextForge – Persistent memory MCP server for Claude

https://contextforge.dev
1•alfredoizjr•14m ago•4 comments

South Korea set to get a functioning Google Maps

https://www.reuters.com/world/asia-pacific/south-korea-approves-google-bid-export-high-precision-...
2•speckx•17m ago•0 comments

The Midi, a New Crossword Offering from New York Times Games

https://www.nytco.com/press/introducing-the-midi-a-new-crossword-offering-from-new-york-times-games/
1•ChrisArchitect•17m ago•0 comments

Allocating on the Stack

https://go.dev/blog/allocation-optimizations
2•spacey•18m ago•0 comments

NASA announces major overhaul of Artemis program amid safety concerns, delays

https://www.cbsnews.com/news/nasa-artemis-moon-program-overhaul/
3•voxadam•18m ago•1 comments

Delivery of Lipid Nanoparticle-Based Immunotherapy Using Ultrasound

https://pubs.acs.org/doi/10.1021/acsnano.5c21787
1•PaulHoule•19m ago•0 comments

Tech, TV, Movies and News: Ellisons on Brink of Colossal Empire

https://www.nytimes.com/2026/02/27/business/media/tech-tv-movies-and-news-ellisons-on-brink-of-co...
1•mikhael•19m ago•0 comments

Harness Engineering

https://openai.com/index/harness-engineering/
2•alxthm•22m ago•0 comments

Learning to Hear: Bootstrapping Auditory Cognition Without a Teacher

https://blog.brojo.ai/learning-to-hear-bootstrapping-auditory-cognition-without-a-teacher/
1•bojo•22m ago•0 comments

Pokémon turns 30 – how the fictional pocket monsters shaped science

https://www.nature.com/articles/d41586-026-00441-y
1•magoghm•22m ago•0 comments

AI=true is an Anti-Pattern

https://keleshev.com/ai-equals-true-is-an-anti-pattern
2•birdculture•24m ago•1 comments

A new backup strategy using restic

https://www.rousette.org.uk/archives/a-new-backup-strategy-using-restic
1•speckx•24m ago•0 comments
Open in hackernews

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

https://github.com/qwibitai/nanoclaw/tree/main/repo-tokens
39•jimminyx•1h ago
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

agentica_ai•1h ago
Smart idea. Token budgets are becoming the new line count metric for the LLM era.
irishcoffee•1h ago
Nah. I can write a whole program using 0 tokens, I can’t write a whole program with 0 lines of code.
collabs•1h ago
This is an interesting concept. Thank you for sharing. I have an export.sh or export.ps1 script that takes the relevant files in my repository and puts them in a `dump.txt` file inside `docs/llm`.

I am not very good with AI though. Is there a quick and easy way to calculate token count and add this to my dump.txt file, ideally using just simple, included by default Linux tools in bash or simple, included by default Windows tools in powershell?

Thank you in advance.

Towaway69•1h ago
What’s the going rate for tokens in terms of dollars? How much are companies spending on “tokens”?

Also kind of ironic that small codebases are now in vogue, just when google monolithic repos were so popular.

c0balt•1h ago
> What’s the going rate for tokens in terms of dollars?

It depends on the provider/model, usually pricing is calculated as $/million tokens with input/output tokens having different per token pricing (output tends to be more expensive than input). Some models also charge more per token if the context size is above a threshold. Cached operations may also reduce the price per token.

OpenRouter has a good overview over provider and models, https://openrouter.ai/models

The math on what people are actually paying is hard to evaluate. Ime, most companies rather buy a subscription than give their developers API keys (as it makes spending predictable).

Towaway69•56m ago
Api keys with hard limits I assume?

Are there companies out there that add token counts to ticket “costs”, i.e. are story points being replaced/augmented by token counts?

Or even worse, an exchange rate of story points to tokens used…

jannniii•1h ago
Interesting concept, but is it going to age well with context sizes of models are changing all the time (growing, mostly)?
Retr0id•1h ago
max context sizes are probably going to go up, but smaller contexts will always be cheaper/more-efficient than larger ones
nebezb•1h ago
Useful and useless (or good and “less good”) aren’t easily mapped to big and small.

From a purely UX perspective, showing a red badge seems you’re conflating “less good” with size. Who is the target for this? Lots of useful codebases are large.

I do agree, however, that there’s value in splitting up domains into something a human can easily learn and keep in their head after, say, a few days of being deeply entrenched. Tokens could actually be a good proxy for this.

iterateoften•1h ago
> Who is the target for this?

Agents. Going to be more tools and software targeted for consumption by agents

adam_arthur•30m ago
Yeah, but a large monorepo can consist of many small subprojects. And arguably this is becoming a best practice.

Just spawn the agent in one of the subprojects

Retr0id•1h ago
Some say that the ideal size of an individual function in a codebase is related to the amount of information you can hold in working memory. Maybe the ideal size for a library is the amount you can fit in an LLM context window?
ai-christianson•58m ago
This is a really interesting metric to track. I agree with the sentiment that token budgets are becoming the new 'lines of code' metric. Even though context windows are constantly expanding (like the 200k default you used for Opus), there's still a tangible benefit to keeping a codebase lean. It's not just about fitting it into the window, but also about the signal-to-noise ratio for the agent. The color-coding based on percentage is a nice touch for a quick visual health check.
kccqzy•26m ago
It’s interesting but I think it’s measuring the wrong thing. Abstraction is a fundamental principle in software. As a human, I’ve worked with classes and modules far larger than what fits in my head, just because I’m only fitting the function signatures and purpose into my head, and not the implementation details. In practice I find Claude really good at extracting useful information in a human-like way from a codebase. It doesn’t usually stuff the entire codebase into its context window.
daxfohl•15m ago
Also this rewards dynamic languages over typed languages, penalizes comments, descriptive function names, etc. Though frankly, it'd be interesting to see whether AI would work better with a project in Javascript that barely fits in context, or the same thing in typescript that overflows. I could imagine either, but my guess is "it depends". Though, "depends on what" would be interesting to know.

Still, this seems useful for being able to see at a glance. I have no idea where most of my own projects would land.

b112•51m ago
It's a fun, in the "style of the time" thing to track, but within a year or two, context window limitations won't be a thing.

Doubt me?

Think back 2 years. Now compare today. Change is at massive speed, and this issue is top line to be resolved in some fashion.

arscan•36m ago
I’m not so sure an increasingly large context window will be seen as a critical enabler (as it was viewed 6 months ago), after watching how amazingly effective subagents and tool calls are at tackling parts of the problem and surfacing the just the relevant bits for the task at hand. And if increasing the context window isn’t the current bottleneck, effort will be put elsewhere.
spot5010•29m ago
I agree. My suspicion is that token efficiency is what will drive more efficient tool calls, and tool building. And we want that. Agents should rely less on raw intelligence (ability to hold everyting in context), and more on building tools to get the job done.
written-beyond•36m ago
Gemini 1.5 Announced the 1 million token context window in 2024. I admire this view of being forward looking towards new technologies, specially when we see the history of how bad people can be at predictions just by looking at history HN posts/comments.

If we look at back 2 years, companies weren't investing into training their LLMs so heavily on code. Any code they got their hands on was what was in the LLMs training corpus, it's well known that the most recent improvements in LLM productivity occurred after they spent millions on different labs to produce more coding datasets for them.

So while LLMs have gotten a lot better at not needing the entire codebase in context at once, because their weights are already so well tuned to development environments they can better infer and index things as needed. However, I fail to see how the context window limitation would no longer be an issue since it's a fundamental part of the real world. Would we get better and more efficient ways of splitting and indexing context windows? Surely. Will that reduce our fear of soiling our contexts with bad prompt response cycles? Probably not...

spicyusername•47m ago
I'm not sure that smaller bases are always better.
unglaublich•15m ago
value/size
KingOfCoders•33m ago
Interesting, but not adding something to my CI for a badge, too paranoid.
ramoz•16m ago
I haven't cared too much about repo tokens in a good while.

But my coolest app was a better context creator. I found it hard to extend to actual agentic coding use. Agentic discovery is generally useful and reliable - the overhead of tokens can be managed by the harness (i.e. Claude Code).

https://prompttower.com/