Foveance v0.1.2
Cut your LLM token bill 60%+ without changing your code or your answers.
Foveance keeps the parts of an agent's chat history that still matter and trims the rest, so you get the same answers for a fraction of the tokens. Nothing is deleted forever, and you don't change a line of your app.
Install & use
pip install foveance
foveance wrap claude # or: foveance wrap -- codex "fix the tests"Or from Python, one function:
from foveance import shrink
smaller = shrink(messages, budget=2000)Highlights in 0.1.x
- One-command
foveance wrapfor any agent (Claude Code, Codex, aider, …) + live tokens-saved dashboard. shrink()one-liner — compress an OpenAI-style messages list from Python, no proxy, no setup.- Drop-in proxy speaking OpenAI Chat, OpenAI Responses, and Anthropic Messages; prompt-cache aware.
- Real-model benchmark: matches full-replay accuracy at ~1/3 the tokens on Gemma/Llama/Qwen; every number traces to a CSV.
Links
- PyPI: https://pypi.org/project/foveance/
- npm: https://www.npmjs.com/package/foveance-proxy
- Docs: https://aimaghsoodi.github.io/foveance/
- Benchmark data: https://huggingface.co/datasets/AbteeXAILabs/foveance-benchmark
Apache-2.0.