frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Token compression CLI to save Codex/Astra costs

7•yolandac•51m ago
Hey HN! Yolanda and Spencer here - wanted to share a token compression tool that we’ve built for ourselves to save 30% costs on codex!

After maxing out sub and burning $700/day per person on api, we fine tuned a compression model to trim codex's tool call output to reduce input token + cache. It cut down tokens by 29.6% and now I just leave it on by default in Codex.

To avoid messing up w/ cache, we use proxy + fine tuned qwen model trained on preserving agent trajectory to remove tool call results before they go back to the model, leaving kv cache untouched.

The cli is free for everyone to use (https://github.com/spenmcke/compress). Just lmk ur feedback and hacks to shave even more costs on astra! If you want to integrate it into your product to offer the best models at low cost, I can set you up with an sdk and api keys

PS: It’s built for coding agents, not conversational agents. I optimized it for file retrieval accuracy, trajectory preservation, and quality to get up to 30% cost reduction depending on how context-heavy the task is.

On security and privacy side, it's a proxy wrapping your local codex and ZDR so it doesn't retain any queries. It’s on by default in codex and when you don’t want compression, you can use `codex --uncompress` to disable it.

Give it a try: code is in https://github.com/spenmcke/compress

You can install the cli using

`curl -fsSL https://install.everestagi.com/install.sh | sh && source ~/.config/everest/shell.sh`

Love to hear any feedback and learn your hacky ways to save token costs too!

Comments

stdl1b•34m ago
how did you measure it's 30% saving?
yolandac•29m ago
we're a proxy so could count the tokens using openai response.usage
michaelastreiko•31m ago
Practical angle I like: a checkable token cut beats another flashy demo. For a small team, predictable spend on coding agents matters more than peak hype.
yolandac•26m ago
it gets addictive to run the `savings` command to see tokens saved

Show HN: JBR-001 – An open-source 3D printable desktop robot

https://projecthub.arduino.cc/syntheticaidata/jbr-001-a-desktop-companion-robot-powered-by-arduin...
107•gvuksic•1d ago•23 comments

Show HN: Ledge.sh – Runnable Markdown Notes

https://ledge.sh
33•dancablam•18h ago•26 comments

Show HN: Dental Scope – Interactive 3D dental anatomy

https://dental-scope.com/
82•Zeruxe•1d ago•48 comments

Show HN: Kyno – Direction as a first-class primitive for AI agents

https://cizambra.github.io/kyno/
4•cizambra•46m ago•0 comments

Show HN: Strata – an expressive semantic layer that can say no to your LLM

https://strata.do/try/
4•ajoski9•3h ago•0 comments

Show HN: I built a free Burp/Caido alternative that needs zero setup

https://apiaxess.dev
17•coding-maniac•49m ago•5 comments

Show HN: Token compression CLI to save Codex/Astra costs

7•yolandac•51m ago•4 comments

Show HN: A working 3D model of an Enigma machine

https://enigma.design
80•primitivesuave•1d ago•30 comments

Show HN: Real-time Solar System with 526k asteroids and all tracked satellites

https://space.bl2.net/
357•wanick•23h ago•93 comments

Show HN: Datastory, Data storytelling with AI and an open knowledge graph

https://www.datastory.tech
5•DanielLapidus•1h ago•0 comments

Show HN: Parrot – Open-Source Smart Meeting Recorder with Co-Pilot on Mac

https://openparrot.app
8•turantekin•2h ago•2 comments

Show HN: Using 2D DFT, dithering, etc. to maximize eInk manga image quality

https://github.com/ciromattia/kcc
70•seam_carver•2d ago•19 comments

Show HN: WattzGOAT – an intentionally vulnerable web app for security training

https://github.com/wattzgoat/wattzgoat-web
2•wattzgoat•1h ago•0 comments

Show HN: I built a calendar where each event has its own tasks

https://apps.apple.com/ph/app/daily-planner-zesfy/id6479947874
2•waitinside•2h ago•0 comments

Show HN: NSL – WSL for Linux

https://frostyard.github.io/nsl/
153•bketelsen•1d ago•97 comments

Show HN: Mingbird – an agent harness that makes a 2B model finish real tasks

https://github.com/Mingbird/Mingbird-agent
3•Gustor•3h ago•0 comments

Show HN: Riffle – Switch between windows of the current Mac app with Option-Tab

https://github.com/voising/riffle
3•voising•3h ago•1 comments

Show HN: TurboGPT: train 22KiB transformer in 13s

https://github.com/lostmsu/TurboGPT
53•lostmsu•23h ago•10 comments

Show HN: HN.watch – Videos of all Hacker News posts

https://hn.watch/
212•mrborgen•2d ago•97 comments

Show HN: Jevstiller – Distill Jev into a local model, with a disagreement bound

https://jevstiller.pages.dev/posts/the-guarantee/
64•tgluck•1d ago•15 comments

Show HN: Destroy Any Website with Stickman

https://destroy.spritefusion.com/
178•HugoDz•2d ago•40 comments

Show HN: A crypto trading demo using WebGPU and QuestDB

https://www.scitrader.io/
3•abtgraphics•8h ago•0 comments

Show HN: Fast, Lightroom-compatible RAW photo editor for Linux and macOS

https://github.com/pch/rawmakase
5•pchm•8h ago•0 comments

Show HN: Free alternative to graphics design giants

https://scissor.studio/
139•sia_xi•2d ago•50 comments

Show HN: PaperMono, e-ink fridge magnet shopping list with mobile web page

https://github.com/seamusc/papermono-shopping-list
149•seamus_c•2d ago•62 comments

Show HN: Layout – Order food anywhere with AI

https://layout.link/
3•colemorell•9h ago•1 comments

Show HN: Sarala – An open-source WYSIWYG Markdown editor

https://sarala.solancer.com/
19•solancer•23h ago•2 comments

Show HN: Sezwhere – Ask any document "where does it say that?" (built on Jev)

https://sezwhere.com/
19•irs•1d ago•13 comments

Show HN: A small side project for even colour scales

https://colours.viesual.net/
4•vie00001•11h ago•0 comments

Show HN: Jev Plays Pokémon Red

https://jev-pokemon.vercel.app/
281•pancomplex•5d ago•123 comments