frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Frugal Tokens – explore costs and usage across coding agents

https://demo.frugaltokens.com/
13•dpc94•1h ago
I wanted to share a project I’ve been working on called Frugal Tokens. I originally built it because I was curious to see how much all of my sessions cost and how much cache misses affected that spend. I’d noticed people had widely different spend profiles and wanted to better understand what might contribute to that.

As I’ve worked on this, the tool has grown to show more usage patterns across all of your sessions. It shows overall usage, estimated working time and overlapping sessions, and where your spend is coming from across models and cache misses. I also have a few session level metrics with percentile breakdowns, along with a list of your sessions and high level info.

Clicking into a session opens an explorer where you can see individual model calls and tool inputs and outputs. You can also jump directly to where a cache miss happened. There’s also a rough cost comparison that shows what the recorded session would have cost with another model’s pricing, or for Anthropic, with 5m vs 1h caching.

In the future, I’d love to collect more information to see which patterns might make people’s workflows more expensive, e.g. long sessions, high context usage, many turns, etc.

The tool requires deno, but is just one command to run once that is installed. The demo provided has some of the data scrubbed, but helps to show what it looks like before running it.

Would appreciate any thoughts or ideas

https://github.com/dpclark4/frugal-tokens

Comments

ixtli•1h ago
dug around in there briefly and the per-session explorer is the best part imo
stephensilber•42m ago
I have started using this to inspect some of my heavier sessions and it has helped uncover some of the parts of my workflow and my project's build pipeline that were really slowing me down.

I also had no idea how many cache misses were happening when I stepped away for an hour or more at times.

joshstrange•26m ago
I can highly recommend https://agentsview.io/ for a way to dig into your LLM usage. It reads your local conversation files and provides a ton of visualizations as well as the ability to dig into each conversation and see all the tool calls/etc. It's incredibly powerful.
dpc94•16m ago
Looks interesting. One of the angles that I approached while building this was focusing on cache misses. Not sure if this shows much info about this category. My tool is also local only + detecting changes and syncing into a sqlite db

OpenRouter Is Joining Stripe

https://openrouter.ai/blog/announcements/openrouter-is-joining-stripe/
79•rvz•50m ago•39 comments

Opus 5.0 drives incoherence into the stratosphere

https://github.com/anthropics/claude-code/issues/77136
76•Bluestein•43m ago•39 comments

A joke domain purchase turned in geopolitical warfare

https://sprocketfox.io/xssfox/2026/08/19/sondehub-and-war/
446•kareiva•7h ago•59 comments

Geolocating a random island using geometry and CUDA programming

https://yassa9.github.io/osint/gralhix-004/
294•yassa9•6h ago•54 comments

Ornith-1.5: From Self-Scaffolding to Self-Improvement

https://ornith.ai/ornith_1_5.html
93•CommonGuy•3h ago•16 comments

Launch HN: OneCLI (YC S26) – OSS sandboxed agent harness for teams

https://github.com/onecli/onecli
24•guyb3•1h ago•7 comments

OpenLogi

https://openlogi.org/en
1385•amatheus•16h ago•376 comments

Remote workers report the highest well-being in study of 7,700 employees

https://www.colorado.edu/today/2026/08/12/remote-workers-report-highest-well-being-study-7700-emp...
230•downbad_•2h ago•105 comments

Extensible Software in the Age of LLMs

https://jeremymorrell.dev/blog/extensible-software-in-the-age-of-llms/
31•coloneltcb•1h ago•18 comments

How Kubernetes Probes Work

https://ngrok.com/blog/probes
27•cyndunlop•1h ago•1 comments

Moderna reports first positive Phase 3 for mRNA neoantigen therapy in melanoma

https://twitter.com/NoubarAfeyan/status/2090050162441752787
360•heydenberk•4h ago•152 comments

Devices with GrapheneOS support should be available in 2027

https://grapheneos.social/@GrapheneOS/117078064184215730
494•exceptione•6h ago•303 comments

Chain-of-Thought Reasoning in the Wild Is Not Always Faithful

https://arxiv.org/abs/2503.08679
26•florianherrengt•2h ago•14 comments

Air Theremin – a browser theremin you play by waving at your webcam

https://theremin.bizibah.com/
183•gurov•8h ago•69 comments

PostgreSQL for Everything

https://www.raphaelbauer.com:443/posts/postgresql-everything/
189•karlmush•5h ago•134 comments

Microgpt in pure C hits 10M tps on Apple m5

https://github.com/vixhal-baraiya/microgpt-c
72•dhorthy•1d ago•24 comments

Mathematics in the Age of AI

https://arxiv.org/abs/2608.16753
29•jonbaer•3h ago•14 comments

Taffy: A flexible, high-performance, cross-platform UI layout library

https://github.com/DioxusLabs/taffy
76•robin_reala•6d ago•28 comments

A recipe for drone racing with reinforcement learning

https://mrandri19.github.io/2026/07/19/drone-racing-with-reinforcement-learning.html
18•daww•3d ago•3 comments

A decades-old bug in Knuth's long division (TAOCP Vol II, Algorithm 4.3.1D)

https://kolja.rs/algorithm-d/
134•nk_kolja•6d ago•24 comments

Show HN: Frugal Tokens – explore costs and usage across coding agents

https://demo.frugaltokens.com/
14•dpc94•1h ago•4 comments

Being ambitious and being a dad

https://nicholascharriere.com/blog/being-ambitious-and-being-a-dad/
834•nichochar•3d ago•650 comments

Cerebras CS-4

https://www.cerebras.ai/cs4
419•sunils34•17h ago•253 comments

Rings forged from meteorites may have been fashionable among ancient Greek elite

https://phys.org/news/2026-08-forged-meteorites-fashionable-ancient-greek.html
95•pseudolus•5d ago•37 comments

Civic Hygiene – avoid building technologies that could be used by a police state (2013)

https://shkspr.mobi/blog/2013/11/civic-hygiene/
346•felineflock•2h ago•231 comments

New Casio F-B100W – Upgrade to the iconic F-91W after 40 years

https://www.casio.com/uk/watches/casio/product.F-B100W-1A/
141•__fst__•2h ago•115 comments

Turning molecules into reliable electronic devices

https://news.mit.edu/2026/turning-molecules-into-reliable-electronic-devices-0803
4•gmays•5d ago•0 comments

Activation Energy is a good model for a lot of things

https://homosabiens.substack.com/p/activation-energy-is-a-good-model
138•surprisetalk•5d ago•36 comments

Supersonic Trebuchet [video]

https://www.youtube.com/watch?v=Co57SfcT-h0
220•CharlesW•4d ago•96 comments

Show HN: Nikon F100 Film Camera Repair Notes

https://github.com/enthdegree/f100
34•enthdegree•4d ago•17 comments