You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode MCP: how AI agents connect to the services you already use

How AI agents work: an AI that can only write, and still gets things done

Context window: what happens when an AI agent's work stops fitting

At every step, an AI agent reads everything again: its list of tools, your whole chat and every result. A long task makes this text longer and longer. But the context window has a fixed size. What happens when the work does not fit anymore?

  1. 1 Each round, the model reads one long text: the list of 40 tools on top, then the whole chat. This morning, you wrote in it: Rono cannot eat nuts. Then the planning began.list of 40 toolsyou, this morning:Rono cannot eat nutsyou: let's planthe picnic!the modelI read allof it. Again.

    Each round, the model reads one long text: the list of 40 tools on top, then the whole chat. This morning, you wrote in it: Rono cannot eat nuts. Then the planning began.

  2. 2 Every tool result is pasted in and stays there, round after round. One web page of recipes, fetched by the web tool, is longer than everything you typed all day.list of 40 toolsyou: Rono cannoteat nutsyou: sandwiches?result: web page,sandwich recipesyou: and the bus?result: bus timestool: web

    Every tool result is pasted in and stays there, round after round. One web page of recipes, fetched by the web tool, is longer than everything you typed all day.

The rest of this episode is for subscribers

Subscribe to read every premium episode. You can cancel when you want.

Paid yearly: $99 instead of $119.88

Next episode Subagents: why an AI agent hands work to another agent

Share this comic

More comics