Skip to content

Foveance v0.1.2

Choose a tag to compare

@Aimaghsoodi Aimaghsoodi released this 04 Jul 02:16
· 49 commits to main since this release

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 wrap for 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

Apache-2.0.