Skip to Main Content

Coding agents spend most of their budget on filler, over-long reasoning, re-sent tool output and prompt cache misses. Most token savers report tokens saved, but tokens are not dollars. TokenTrim targets the lowest cost per solved task, proven with measured spend only. What it does: - A skill (any agent, no key): say less, think in proportion, make the smallest complete change, ask tools for less, stop once verified. It never trades away correctness, tests, security or exact values. - A tiny local gateway (OpenAI and Anthropic compatible, loopback only): sets reasoning_effort=low and raises it only when the agent keeps failing, adds a shared prompt_cache_key, compresses tool output reversibly, and a reserving spend ledger enforces a hard cap. - /tokentrim-gain scoreboard and /tokentrim-audit to show where tokens went. Measured results (real bug fixes mined from 15 open-source Python libraries, mini-swe-agent, paired against no skill, 95% confidence intervals): - Gateway on muse-spark-1.3-contributor: -76% cost [-80, -72], 230/234 solved vs 213. - Gateway on muse-spark-1.3: -87% [-90, -84], 53/53 vs 51. - Gateway on muse-wonder-1.0: -84% [-88, -79], 12/12 vs 12. - Skill only: -57% [-63, -49], 102/110 vs 101. - Libraries the skill was never tuned on (79 tasks): -76%, 124/128 vs 109/128. - Other languages (JS, TS, React, Go, Rust, Java; 17 tasks): -74% [-80, -65], 17/17 vs 13/17, 8.1 -> 2.7 min/task. Repo: https://github.com/nankris/tokentrim-meta/tree/feat/cache-key-code-outline

Team

nankris

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview