cd /news/ai-agents/show-hn-fewer-ai-tokens-better-conte… · home › topics › ai-agents › article
[ARTICLE · art-182534] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Fewer AI tokens. Better context. No silent information loss

Developer Allen Joseph released Pithio, an open-source tool that runs locally and compresses the output AI coding agents read, with the agent notified when content is omitted so it can retrieve the original details. In initial benchmarks using Claude Haiku, Pithio cut input tokens by 29% on developer tool outputs (171 questions) while accuracy rose from 86.5% to 91.8%, and cut input tokens by 60% on system logs (54 questions) while accuracy rose from 57.4% to 74.1%. Pithio supports terminal output, logs, JSON, CSV, web pages and MCP tools, with integrations for Claude Code, Codex and custom agents.

key takeaway

Pithio's local output compression cut Claude Haiku input tokens by 29% on developer tool outputs and 60% on system logs while raising accuracy from 86.5% to 91.8% and 57.4% to 74.1% respectively, with omitted content flagged so the agent can retrieve it.

read2 min views1 publishedDec 5, 2026

I use AI coding agents for almost all my side projects and I kept running into usage limits.

At some point, I started to look at what my tokens were actually being used for. A surprising amount was just passing tests, repetitive logs, huge JSON responses and terminal output that the agent didn't actually need.

I tried some existing tools that address this problem. Although it helped reduce token consumption, I wasn't very satisfied with their reliability in my own testing.

My biggest concern was that: what happens when the information being removed is the exact information the agent needs?

So I started building Pithio.

It's an open-source tool that runs locally and compresses the output that AI agents read. The difference I wanted was that the agent should know when something has been omitted and be able to retrieve the original details when needed.

While benchmarking , I noticed something interesting. In some workloads, reducing the amount of context actually improved answer accuracy. Here are some of my initial results using Claude Haiku:

Developer tool outputs (171 questions): - 29% fewer input tokens - Accuracy went from 86.5% to 91.8%

System logs (54 questions): - 60% fewer input tokens - Accuracy went from 57.4% to 74.1% These are initial benchmark results, not a claim that compression always improves accuracy. I've made the methodology publicly available in my website so others can check it out.

Pithio supports terminal output, logs, JSON, CSV, web pages and MCP tools, with integration options for Claude Code, Codex and custom agents.

I first built it for myself as a simple terminal application, but decided to open-source it since I believe other developers might be facing this same problem.

GitHub: [https://github.com/allenjoseph05/pithio](https://github.com/allenjoseph05/pithio)

Website: [https://pithio.dev/](https://pithio.dev/)

I'm still in the early stages and would really appreciate technical feedback especially from people who have used similar tools.

What would make you trust a context compression tool enough to use it in your daily coding workflow?

And if you've encountered such cases where existing tools removed important information, I'd love to hear about them and use those cases to improve Pithio. I know the application might not be perfect and there is always a room for improvement, hence I don't want to make any guaranteed claim and would really appreciate feedbacks and improve it. Thank you in advance.

Comments URL: [https://news.ycombinator.com/item?id=50776066](https://news.ycombinator.com/item?id=50776066)

Points: 1

── more in #ai-agents 4 stories · sorted by recency
tora-app-kyl7a.ondigitalocean.app · · #ai-agents
Tora
── more on @pithio 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-fewer-ai-tok…] indexed:0 read:2min 2026-12-05 · —