Agent memory that does not wreck your prompt cache

Cache reads cost 0.1x base input price. A five-minute cache write costs 1.25x, and a one-hour write costs 2x.

Prompt caching is a prefix match, so editing anything near the front of the prompt invalidates everything after it.

Clearing old tool results is usually cheaper and safer than summarizing the whole history.

Read the full post

Read the full post