I kept running out of AI tokens, so I built an open-source tool that uses fewer tokens without silently throwing away context
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%…


