Preview environment - you also see content that isn't published yet.
Part 02 / 05Block I · Agent harnessPhase 2

Message History

After every answer we hang up - the next call starts from zero. Context only exists because we read the full transcript aloud at the start of every call.

Basics

Free for everyone: the concept, the analogy, the why.

The call from part 1 is stateless. To hold a conversation, the harness keeps a transcript and reads it out from the top on every call. That's the message history - and the reason "memory" means something entirely different for LLMs than you'd expect.

Every LLM call is stateless. For an agent to stay coherent across steps you must send the message history along - and you pay for it in tokens. Memory is therefore always a trade-off: enough context for coherence, little enough for cost and focus.

In progress

This tier is currently being written. Here is the outline it will follow:

  • The messages array - Roles system, user and assistant - how separate calls become a conversation.
  • Reading it out costs - Why every turn carries the full history along, and what that means in tokens.
  • The stress test - Drop one message from the log and watch what the agent forgets instantly.

Sign in to see this content

This section is reserved for members. Log in to keep reading.

Sign in

Try it interactively

With a free account: hands-on experiments and the quiz for this phase.

Sign in to see this content

This section is reserved for members. Log in to keep reading.

Sign in

Going deeper

With a free account: experiments, quizzes and the deeper material.

Sign in to see this content

This section is reserved for members. Log in to keep reading.

Sign in

Deep dive

For pro members: the depth for everyone who wants to actually build it.

Sign in to see this content

This section is reserved for members. Log in to keep reading.

Sign in

Discussion· no posts yet

Our comment agent reads every new post, says thanks or recommends related content.

Be the first voice - what do you think?

Sign in to join the discussion.

Sign in