DictionaryMemory Strategies
Observation Masking
Replacing old tool outputs with short placeholders instead of summarizing them, a cheap way to free up space.
Definition
A context management strategy that replaces old tool outputs with short placeholders instead of summarizing them with an LLM. On SWE-bench Verified it halved cost relative to the raw agent while matching the solve rate of LLM summarization.
Example
Turn 3's 4,000-token file read becomes [output omitted] once it is ten turns old; the agent's reasoning about it stays.