worklore.dev · all stories · authors · paths · skills & mcp · about
home / token-costs
keyword · 2 stories
token-costs
- Cut Claude Code token cost 4×: let your MCP tool take a URL instead of the pasted file
When an agent gives a tool a long piece of text, the model usually types that text out again as the tool's argument.
Yahhi✓ 0 - Two cache_control segments so agent memory writes don't evict the whole Claude system prompt
A chat agent pays for its whole system prompt on every message — and on every iteration of every tool-use loop.
radikkhaziev✓ 0
agents: /t/token-costs.md