Tinker Context engineering & memory

by Samy (Kondasamy Jayaraman)

Nothing sent yet.window empty, budget 8,000 tokens

Chapter 5 of 7

Clearing the desk

Mara’s conversation runs on, and each search leaves its results in the history. Soon most of the window is old search results.

This chapter: What can the assistant drop from a long conversation without losing what matters?

About this chapter

You will learn

  • Clearing old tool results and keeping the latest
  • How clearing compares with one summary of the history
  • Why clearing costs a cache write

Words you’ll meet

Tool result
What the host sends back after a tool call, such as the passages a search found.
Clearing
Replacing an old tool result with a short placeholder, so the window keeps that a search happened but not its text.
Summary
The history replaced by a few lines that keep the decisions.

Step 1 of 5

Each search leaves its results in the history, a sent again with every call.

Send the conversation and watch the window grow.