When your AI runs a command, half the output is junk it doesn’t need. Trim throws the junk away before it counts against your tokens. You get more out of every prompt.Documentation Index
Fetch the complete documentation index at: https://docs.costa.app/llms.txt
Use this file to discover all available pages before exploring further.
Trim only works on traffic flowing through Costa. If you haven’t connected your tool yet, start there.
Flip the switch
Open Optimization Settings and toggle Trim on. The next request through Costa will be trimmed.(You can also get there from Settings → Organization Settings → Optimization.)
See it work
Ask your AI to do something — check your git status, or run the tests.Open your session logs and click the latest one. You’ll see a Trim badge on every call that got compacted, plus exactly how many tokens it saved you.
Next: Build a Cosmic Router
Mix your subscription models with frontier APIs on a per-request basis.