Urgent.News

What's breaking now, across thousands of outlets.

AI

Agent State, Memory & Checkpointing: Where the Boundaries Blur

Hi again. In Part 1, I tried to separate state, memory and checkpointing in the simplest way I understand them: State tells the agent where it is and what it currently has. Memory helps the agent use the past. Checkpointing helps it continue from where it left off. Neat enough. But then we actually build the agent. Conversation history becomes part of state. State gets persisted through…

State, memory, and checkpointing are concepts that often blur together in the development of AI agents. State represents the agent's current context and what it currently possesses. Memory enables the agent to leverage past information. Checkpointing allows the agent to resume from a previous state.

As conversation history becomes part of the agent's state, checkpoints are used to persist that state. This persistence provides short-term memory, enabling the agent to continue conversations where it left off. Some information from interactions may eventually become long-term memory, but this is not automatic. The agent needs to decide what is worth remembering beyond the current conversation.

A checkpoint contains various elements such as raw tool responses, routing information, temporary variables, and retry metadata. These elements are necessary for reconstructing or continuing an execution but may not be relevant for recalling information in future conversations. Some information may be useful for a specific thread, while other information is relevant across different threads and for long-term memory.

Long-term memory can be different from checkpointing. For example, an agent may remember user preferences such as preferred language, currency, and flight preferences. When the agent encounters a new conversation, it can retrieve these preferences, demonstrating long-term memory. However, long-term memory does not automatically provide information about the agent's execution progress. It answers questions like "What should I know again?" rather than "Where should I continue?"

The LLM context window is another concept that can be mixed with state, memory, and checkpointing. While the application state may include various elements like conversation history, tool results, and workflow steps, not all of this information needs to be sent to the model for each inference. A subset of relevant information is selected for the model invocation. This separation between application state and LLM context is crucial for optimizing the agent's performance and avoiding unnecessary information transfer.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

AI Model Routing: The Missing Infrastructure Layer for Multi-Model AI Applications

The Next AI Infrastructure Layer Is Not the Model — It’s the Router How model routing is becoming the control plane for the multi-model era The AI industry has spent the last few years asking one…

  • Model routing emerges as new infrastructure layer for AI applications.
  • OpenRouter acquisition by Stripe underscores strategic importance of model routing.
  • Companies must balance cost, quality, speed in AI model selection.

You can now clip video from inside your AI agent: the state of MCP for video in 2026

Six months ago, "AI video editing" meant opening a web app, pasting a link, and clicking around. Today you can stay in the tool you already talk to (Claude, Cursor, ChatGPT) and just say: "clip the…

  • By 2026, AI agents like Claude can clip videos directly.
  • Model Context Protocol (MCP) enables seamless video editing in AI agents.
  • Multiple video clipping tools, including OpusClip and Whipscribe, support MCP.

LLM Routing with Zero Code: Content-Based Model Selection on Bedrock with Step Functions

Sending every request to your biggest model is the easiest way to burn a Bedrock budget — a "what's the capital of Japan?" question doesn't need the same model as "write FizzBuzz in Python".

  • Build AWS Step Functions state machine for LLM routing without code
  • ClassifyQuestion task categorizes questions as simple, code, or creative
  • Choice state routes categories to Claude Haiku, Amazon Nova Lite, or Nova Micro models

More from Saturday 22 August →