Pydantic AI now turns on loop detection and wrap-up at limits by default in Coder and adds image conversion for models that can't read certain formats, which changes default agent behavior.
Key takeaways · AI-distilled
Pydantic AI 2.79.0 turns on DetectLoops and WrapUpAtLimits by default in its Coder agent, with off switches, and lists the change as a compatibility note. Pax also gains a default-on detect_loops built-in that nudges a model stuck repeating itself.
ToolDefinition gains behavior annotations (read_only, destructive, idempotent, open_world, long_running), and BackgroundTools now runs tools marked long_running=True in the background by default.
SummarizingCompaction no longer cuts tool results to 500 characters by default, and a new CompactionThreshold requests CompactionReplacing older content in the model's context with a summary of it, usually keeping recent messages, so that a session can go on.Full definition → once a set share of the Context and context windowContext is the information available for a generation; the context window is the capacity available to hold it.Full definition → is used.
Durable runs now refuse capabilities that cannot run durably wherever they enter, and non-retryable errors are classified once in pydantic_ai.durable_exec so every durable engine stops retrying them.
The bundled Pax agent CLI adds Agent planningTurning a goal into an inspectable sequence that may change as evidence appears.Full definition →, /fork SessionOne conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.Full definition → branching at a chosen turn, and makes auto the default permission mode; its .clai paths and CLAI_* variables move to .pax and PAX_*.
Terms in this piece · Glossary
Compaction — Replacing older content in the model's context with a summary of it, usually keeping recent messages, so that a session can go on.
Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
Agent planning — Turning a goal into an inspectable sequence that may change as evidence appears.
Session — One conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.