How can AI agents reduce token consumption?

Most agent tokens go to input, not output. Cut what you send in: clean web pages before reading them, connect fewer tools, cache results you already fetched, summarise old context instead of replaying it, and ask for short structured outputs.

Why this matters

Raw HTML, long tool lists and full conversation history are re-sent on every step. Costs grow with each turn even when nothing new is learned.

How to do it

  1. Strip navigation, scripts and markup from web pages before the model sees them.
  2. Disconnect tools the agent rarely uses.
  3. Cache fetched pages and tool results by key.
  4. Replace old turns with a short running summary.
  5. Request JSON with only the fields you need.

Example

zut-web-distiller runs on your own machine and returns a compact version of a page; with the optional cache, a page another agent already distilled can be fetched from ZUT for up to 14 days.

ZUT tools that help

  • zut-web-distiller — A local MCP server (npx zut-web-distiller) that strips page clutter before an agent reads it, with an optional shared ZUT cache.
  • Oracle Feed — One public JSON snapshot of regularly refreshed data, also readable over MCP.

Related questions

How much does distilling save?
It depends on the page. Mostly-markup pages shrink the most; measure with your own pages.

Read next

All AI agent questions