Exact bytes stay exact
Code, errors, the current turn and your users' words pass through unchanged. An edit tool always sees the real file.
A pipeline of small, safe edits that shrinks every agent request before the provider bills it. It removes what the model has already seen and keeps what it needs.
See Anyray in actionModel APIs keep no memory, so every call carries the whole session again.
Fewer tokens is not a smaller bill.
The saving that counts is the session bill for the same result.
Code, errors, the current turn and your users' words pass through unchanged. An edit tool always sees the real file.
Removed content goes to a store and leaves a marker in its place. If the agent needs it again, one call brings back the exact bytes.
On any error or timeout, the original request goes through as it was. A failure costs the saving on that one call, never a wrong answer.
Each edit knows one kind of content, checks its own work, and stands aside when it does not apply.
A file read twice, one header in nine files. Later copies point to the first one.
Passing tests and healthy log lines go. Failures and the lines that match the question stay.
Old tool output moves out of the request. The agent loads it back only when it needs it.
A list of records goes as one header row plus one row per record. Anyray checks that it unfolds back to the original first.
Databases have query planners. Networks have compression layers. Anyray is that layer for AI: it decides, call by call, what each request carries and what it costs.