What's Changed
🚀 Features
- Add
FileSystem(max_media_bytes=)to set the largest image, PDF or videoread_filereturns as the file itself by @DouweM in #15475 - Add
ConvertFiles, a harness capability that converts images a model can't read into JPEG or PNG by @DouweM in #15514 - Load user-global instruction files via
RepoContext.extra_sourcesand Paxrepo_context.global_file_pathsby @mpfaffenberger in #15906 - Combine two
WrapUpAtLimitson one agent into one with a defaultidby @DouweM in #15501 - Emit a
DisplayRestartedEventfromComputerUsewhen the display restarts by @DouweM in #15597 - Add
CapabilityNamespaceto resolve agent spec capability names frommodule:attributetargets, entry points and modules by @DouweM in #14816 - Turn on
DetectLoopsandWrapUpAtLimitsby default inCoder, with off switches by @DouweM in #15601 - Add
AbstractCapability.durable_unsupported_reasonand refuse unsupported capabilities wherever they enter a durable run by @DouweM in #15976 - Let
HandleDeferredToolCallstoken handlers andAskUserwait durably in a pgtask task by @DouweM in #15531 - Add
ToolAnnotationsbehavior facts (read_only,destructive,idempotent,open_world,long_running) toToolDefinitionby @DouweM in #6344 - Make
OpenAIChatModel's response validation hooks public so applications can repair non-conforming responses by @DouweM in #15518 - Support
NativeOutputand JSON mode onSambaNovaProvider, best-effort by @DouweM in #15552 - Add opt-in
CDPDriverbrowser_drivetool and visualoverlaytoCDPBrowserby @mpfaffenberger in #15990 - Add
DynamicOutputcapability for runtime output schema authoring and activation by @mpfaffenberger in #16098 - Add
Timersdeferred wake-up capability and default Pax plugin by @mpfaffenberger in #15770 - Record the provider request ID as
pydantic_ai.provider.request_idon failed model request spans by @DouweM in #15512 - Add a run-level in-flight work registry,
RunContext.in_flight, that runs wait for before ending by @DouweM in #13217 - Wait for the shortest
Retry-Afterbefore retrying aFallbackModelon Temporal by @DouweM in #15468 - Add
tools=toMCPToolsetto build tools from a kept list and connect lazily at the first call by @DouweM in #15520 - Add
CompactionThresholdto request compaction past a share of the context window by @DouweM in #15434 - Support configuring the provider of an
AgentSpecmodel withModelSpecby @DouweM in #13136 - Use the native file API for
OpenSandboxworkspace filesystem operations by @pydanty in #12400 - Run tools annotated
long_running=Truein the background by default inBackgroundToolsby @DouweM in #15408 - Let
HandleDeferredToolCallstoken handlers andAskUserwait durably in an Absurd task by @DouweM in #15486 - Add
ModelInstructionscapability for per-model instructions by @DouweM in #14681 - [voice-authority] Add
ImportedSourcefor content another agent harness added to an imported conversation by @DouweM in #15997 - Accept
context_lengthalongsidemax_model_lenin Paxvllmmodel discovery by @mpfaffenberger in #16160 - Trim Pax's folder trust prompt to one question and one detail line by @mpfaffenberger in #16116
- Show prompt-cache miss notices in Pax using Harness
WarnOnCacheBustsby @mpfaffenberger in #16115 - Add
PlanModecapability and plan mode (/plan,Shift+Tab) to Pax by @mpfaffenberger in #16112 - Add interactive
/forksession branching at a chosen turn in Pax by @mpfaffenberger in #16102 - Add repo-scoped session recall and
/reflectcommand to Pax by @mpfaffenberger in #16096 - Add ergonomic Pax plugin primitives (
PluginHost.warn(),KeySlot,OAuthSignIn.for_run(),Command.subcommands()) by @mpfaffenberger in #15762 - Migrate Pax
.clai/paths,CLAI_*env vars, andpydantic_clai2_pluginsnamespace to.pax/,PAX_*, andpax_pluginsby @mpfaffenberger in #15761 - Add
ModelFieldSourcefor Pydantic-backed PaxPlugin.settings_menuby @mpfaffenberger in #15760 - Curate
pydantic_ai_pax.plugins.__all__, drop pre-V1 deprecations, and scope the API-compat gate by @mpfaffenberger in #15759 - Add class-level
Plugin.requiresandPlugin.current_settings()by @mpfaffenberger in #15758 - Make
autothe default permission mode in Pax by @mpfaffenberger in #15753 - Tint Pax's default-theme prompts from the terminal's reported background by @DouweM in #15532
- Let Pax sub-agents use any saved
/modelmodel, chosen by the model per delegation by @DouweM in #15528 - Load a YAML or JSON agent spec file with
pax --agentand refuse agents that need deps at launch by @DouweM in #15336 - Add a
terminal_statusbuilt-in to Pax that reports session status through OSC 7501 by @mpfaffenberger in #15297 - Add an opt-in
require_verificationsetting to the Paxcoderplugin over harnessRequireVerificationby @DouweM in #15051 - Add a default-on
detect_loopsbuilt-in to Pax that nudges a model stuck repeating itself by @DouweM in #15043 - Add a
planningbuilt-in to Pax that keeps a todo plan per conversation by @DouweM in #15037 - Make
/updatein apydantic-clai2uv tool installpydantic-ai-paxas its own tool and restart aspaxby @DouweM in #14866 - Hide scripted Claude Code runs from the Pax session picker and mark imported sessions by @DouweM in #14730
- Serve an agent of your own in the
pax --webUI with--agentby @DouweM in #14706 - Add
pax --minimal, asessions.import_externalsetting, and a startup line naming plugins Pax doesn't ship by @DouweM in #14461 - Add
Ctrl+Nto steer the oldest queued prompt during an activepaxrun by @pydanty in #14152
🐛 Bug Fixes
- Keep
Shelljobs across Temporal activity retries and end the foreground wait before the activity times out by @DouweM in #15403 - Stop a non-streaming
claiturn from naming an unnamed agentagentby @dsfaccini in #15859 - Load settled delegation tasks from an index instead of parsing every saved history when
DelegationTasksopens by @DouweM in #15417 - Stop
SummarizingCompactionfrom cutting tool results to 500 characters by default by @DouweM in #12113 - Fail a
VercelAIAdapterrequest that gives onetoolCallIdtwo different approval answers, instead of applying the last by @dsfaccini in #15861 - Keep
scopeon a dynamicSystemPromptPartwhen it's re-evaluated by @dsfaccini in #15884 - Send a cut-off OpenAI Responses stream's unfinished reasoning as text, so the next request doesn't fail with a 404 by @dsfaccini in #15794
- Stop
BedrockConverseModelfrom sending botocore retries after a request was cancelled or timed out by @dsfaccini in #15894 - Keep the timing of a failed attempt that raised an error across a durable replay by @DouweM in #15411
- Run a nested capability's durable operation as itself when a registered capability shares its
idby @DouweM in #15347 - Keep the history changes of a durable
before_model_requestorprepare_model_requesthook, as a plain run does by @DouweM in #15402 - Send
SecretStr,SecretBytesandSecret[T]function tool arguments to Temporal, Render Workflows and Azure Durable Task workers with their values by @DouweM in #15809 - Fail a durable run on a
UserErrorfrom aCodeModesandboxed call instead of sending the model a retry by @DouweM in #15829 - Send
BedrockEmbeddingModelCohere inputs of more than 96 texts as severalInvokeModelrequests by @dsfaccini in #15901 - Set
video_metadataonly for video parts inGoogleModelby @Jvxoq in #12929 - Refuse
Peers,IPythonCodeModeand per-run unsupported capabilities in the deprecatedTemporalAgent,DBOSAgentandPrefectAgentby @DouweM in #15736 - Save a finished delegation task's usage on its record so Pax doesn't parse its history to show it by @DouweM in #15579
- Attach run state to cancellation raised during
run_stream_events()teardown by @pydanty in #15833 - Keep a Temporal stream's partial response in the conversation when the run is cancelled by @DouweM in #14460
- Report a missing
positive_keyorConfusionMatrixEvaluatorkey even when the report has no cases by @adtyavrdhn in #13372 - Return the exit code from
DockerContainerBackend.runwhen a command signals its own process group by @DouweM in #15008 - Accept
rawInput/inputEncodingoninput-streamingtool parts in the Vercel AI adapter by @pydanty in #15725 - Replay a durable
FallbackModelstream against the output mode of the model that answered by @DouweM in #14766 - Inherit the run's data-handling settings in
SummarizingCompactionsummary requests by @mpfaffenberger in #16008 - Redact binary content in nested tool return parts by @pydanty in #15306
- Raise failed AWS credential refreshes as
ModelConnectionErroron Anthropic-on-Bedrock and Bedrock Mantle, soFallbackModelfalls back by @dsfaccini in #15896 - Stop
BedrockEmbeddingModelfrom sending botocore retries afterembedis cancelled or times out by @dsfaccini in #15970 - Narrow the window in which racing threads overwrite an unnamed agent's inferred name by @dsfaccini in #15860
- Send AG-UI events in
ToolReturn.metadatathat a durable engine journaled as JSON by @dsfaccini in #15902 - Raise
UserErrorwhen anon_model_request_errorhook returns something other than aModelResponseby @dsfaccini in #16051 - Return the
wrap_model_requestreplacement instead of raisingNameErrorin streamed runs underasyncio.eager_task_factoryby @dsfaccini in #16069 - Mark page-changing
PlaywrightBrowserToolsetand sharedBrowserUseToolsettools assequential=Trueby @mpfaffenberger in #16013 - Match words in any script in local keyword tool search instead of treating non-ASCII queries as empty by @pydanty in #15844
- Honor
_identifieronBinaryContent,BinaryImageandBinaryAudioby @pydanty in #14059 - Raise
UserErrorwhen thenativeorlocaltool ofWebFetch,WebSearch,XSearchorMCPlacks a restriction set on the capability by @dsfaccini in #15684 - Classify non-retryable errors once in
pydantic_ai.durable_execso every durable engine stops retrying them by @DouweM in #15407 - Record tools a capability's
get_wrapper_toolsetadds underTemporalDurabilityandPrefectDurabilityby @DouweM in #16077 - Render
TrajectoryJudgetranscripts as JSON by @mpfaffenberger in #16093 - Support
SubAgents(include_self=True)alongside other delegates on every durable engine by @mpfaffenberger in #16095 - Carry
ctx.enqueue()andctx.emit()calls made inside a durable unit in its recorded result, so replays re-apply them by @DouweM in #15404 - Give the
PydanticAIDocsandBrowserUsetoolsets anid, as Temporal requires by @DouweM in #15396 - Deliver buffered events to
event_stream_handlerandon_eventlisteners when a Temporal run continues as new by @DouweM in #14751 - Send a file in a
tupletool return as a file, as alistreturn does by @pydanty in #15647 - Give a tool call deferred while running a result when the run ends on a final result by @DouweM in #14380
- Stop
Shell(persist_cwd=True)from adding 7 workspace round trips to everyrun_command, by reading and saving the directory inside the command's own exec by @adtyavrdhn in #13844 - Skip recording the plan again when a plan tool ran inside
CodeModeorIPythonCodeMode'srun_codeby @DouweM in #15530 - Record time to first chunk on the
chatspan asgen_ai.response.time_to_first_chunk, keeping the deprecated metric-named attribute by @DouweM in #15453 - Stop
HuggingFaceModelraising after every response on the default Hugging Face route by @DouweM in #15539 - Fall back from and retry empty
finish_reason='error'responses inModelFallbackandRetryOnModelErrorsby @DouweM in #14543 - Send a late native tool result ahead of the carried-thinking turn on Anthropic by @DouweM in #15378
- Set
usage.costfrom the cost OpenRouter reports onOpenRouterModelby @DouweM in #15335 - Drop a
CachePointinMCPSamplingModelprompts instead of raising by @DouweM in #15485 - Raise
ModelContextWindowExceededErrorfor a Mistral1300that leaves the token budget untouched by @DouweM in #15554 - Drop Claude sampling settings that conflict with thinking or
top_pset inextra_bodyby @DouweM in #15959 - Keep a continued response that crosses a usage limit in the run's history by @DouweM in #15467
- Keep a cut-short stream's
ModelResponseRejectedEventtiming stable across Hatchet and Prefect replays by @DouweM in #16206 - Name the missing
.pysource in theEnumDocstringsUnavailableWarningremedy by @DouweM in #15054 - Apply
gemini-4-neonthinking levels on Vertex AI too, which also rejectsMINIMALby @DouweM in #15063 - Share
PydanticAIDocstoolset with its per-run copies so Temporal and Prefect accept it by @DouweM in #15623 - Keep
StructuredDict(validate=True)pattern checks linear-time through a$refto the schema's root by @DouweM in #16074 - Price Gateway responses from OpenAI-compatible routes like
gateway/doubleword:as the upstream provider by @DouweM in #15018 - Accept an OpenAI-compatible Chat Completions tool call that leaves out
typeby @DouweM in #15483 - Apply the 500 MiB per-request file URL download total to image generation and realtime, and require it for the library's own downloads by @DouweM in #15525
- Have
ConversationStore.fork(scope=)only fork a conversation saved with that scope unlesssource_scope=is given by @DouweM in #16105 - Refuse
BackgroundToolsinside Absurd and pgtask tasks that run tools concurrently, where a suspend cancels background tasks by @DouweM in #15454 - Raise
IncompleteToolCallright away when the token limit cuts off a function tool call, instead of retrying by @DouweM in #14772 - Resolve Azure AI Foundry
kimi,gpt-oss,qwenandglmmodels through the shared family profiles by @DouweM in #15557 - Skip browser-internal frames in
PlaywrightBrowserselectors, event logs and dialogs by @dsfaccini in #16247 - Treat a missing
MEMORY.mdas empty inread_memoryby @mpfaffenberger in #16288 - Show Pax's selected autocomplete suggestion in the theme accent color by @mpfaffenberger in #16239
- Use Tab instead of Ctrl+S for model settings in
/model addby @mpfaffenberger in #16238 - Restrict Pax code mode workspace mount when
Permissionsrules or approval wrappers gate file tools by @mpfaffenberger in #16092 - Pass
-c core.fsmonitor=falseand disable config-driven helpers in Pax's automatic Git calls by @mpfaffenberger in #16091 - Anchor a Pax project MCP server's relative
commandto its project folder by @mpfaffenberger in #16090 - Start
gitandghfromPATH, not the working directory, in Pax on Windows by @dsfaccini in #16082 - Stop calling a Claude Code sub-agent that reported
stoppedin Pax's import note after a compaction by @DouweM in #15987 - Count compaction and session naming requests in Pax
/costand/usageby @mpfaffenberger in #15908 - Apply settings saved with
/config setwhen Pax runs/reloadby @dsfaccini in #15610 - Return freed memory to the OS after each Pax turn and resume by @DouweM in #15574
- List built-in, drop-in and project plugins in
pax plugins list, not only saved ones by @DouweM in #15516 - Show why a plugin launched with
pax -xfailed to load in/pluginsand the web panel by @DouweM in #15487 - Keep a finished Pax turn when
sessions.dbis locked as it ends, and wait 30 s forSqliteSessionStoresaves by @DouweM in #15405 - Attach Pax clipboard images from Windows Terminal empty pastes and from WSL through
powershell.exeby @mpfaffenberger in #15194 - Refuse
/updatein Pax once another process has replaced its install, and give the--resumecommand by @DouweM in #14844 - Wrap typed Pax prompt text at word boundaries by @pydanty in #14713
- Run a Pax model without an account on the default account unless
accounts.poolis on by @DouweM in #14693
⚠️ Compatibility Notes
- Load user-global instruction files via
RepoContext.extra_sourcesand Paxrepo_context.global_file_pathsby @mpfaffenberger in #15906 - Combine two
WrapUpAtLimitson one agent into one with a defaultidby @DouweM in #15501 - Turn on
DetectLoopsandWrapUpAtLimitsby default inCoder, with off switches by @DouweM in #15601 - Add
AbstractCapability.durable_unsupported_reasonand refuse unsupported capabilities wherever they enter a durable run by @DouweM in #15976 - Add
Timersdeferred wake-up capability and default Pax plugin by @mpfaffenberger in #15770 - Add a run-level in-flight work registry,
RunContext.in_flight, that runs wait for before ending by @DouweM in #13217 - Run tools annotated
long_running=Truein the background by default inBackgroundToolsby @DouweM in #15408 - Add
ModelInstructionscapability for per-model instructions by @DouweM in #14681 - [voice-authority] Add
ImportedSourcefor content another agent harness added to an imported conversation by @DouweM in #15997 - Show prompt-cache miss notices in Pax using Harness
WarnOnCacheBustsby @mpfaffenberger in #16115 - Migrate Pax
.clai/paths,CLAI_*env vars, andpydantic_clai2_pluginsnamespace to.pax/,PAX_*, andpax_pluginsby @mpfaffenberger in #15761 - Curate
pydantic_ai_pax.plugins.__all__, drop pre-V1 deprecations, and scope the API-compat gate by @mpfaffenberger in #15759 - Make
autothe default permission mode in Pax by @mpfaffenberger in #15753 - Load a YAML or JSON agent spec file with
pax --agentand refuse agents that need deps at launch by @DouweM in #15336 - Add a
terminal_statusbuilt-in to Pax that reports session status through OSC 7501 by @mpfaffenberger in #15297 - Add an opt-in
require_verificationsetting to the Paxcoderplugin over harnessRequireVerificationby @DouweM in #15051 - Add a default-on
detect_loopsbuilt-in to Pax that nudges a model stuck repeating itself by @DouweM in #15043 - Add a
planningbuilt-in to Pax that keeps a todo plan per conversation by @DouweM in #15037 - Stop
SummarizingCompactionfrom cutting tool results to 500 characters by default by @DouweM in #12113 - Fail a
VercelAIAdapterrequest that gives onetoolCallIdtwo different approval answers, instead of applying the last by @dsfaccini in #15861 - Run a nested capability's durable operation as itself when a registered capability shares its
idby @DouweM in #15347 - Refuse
Peers,IPythonCodeModeand per-run unsupported capabilities in the deprecatedTemporalAgent,DBOSAgentandPrefectAgentby @DouweM in #15736 - Replay a durable
FallbackModelstream against the output mode of the model that answered by @DouweM in #14766 - Raise failed AWS credential refreshes as
ModelConnectionErroron Anthropic-on-Bedrock and Bedrock Mantle, soFallbackModelfalls back by @dsfaccini in #15896 - Raise
UserErrorwhen thenativeorlocaltool ofWebFetch,WebSearch,XSearchorMCPlacks a restriction set on the capability by @dsfaccini in #15684 - Classify non-retryable errors once in
pydantic_ai.durable_execso every durable engine stops retrying them by @DouweM in #15407 - Record tools a capability's
get_wrapper_toolsetadds underTemporalDurabilityandPrefectDurabilityby @DouweM in #16077 - Support
SubAgents(include_self=True)alongside other delegates on every durable engine by @mpfaffenberger in #16095 - Give a tool call deferred while running a result when the run ends on a final result by @DouweM in #14380
- Fall back from and retry empty
finish_reason='error'responses inModelFallbackandRetryOnModelErrorsby @DouweM in #14543 - Have
ConversationStore.fork(scope=)only fork a conversation saved with that scope unlesssource_scope=is given by @DouweM in #16105 - Refuse
BackgroundToolsinside Absurd and pgtask tasks that run tools concurrently, where a suspend cancels background tasks by @DouweM in #15454 - Raise
IncompleteToolCallright away when the token limit cuts off a function tool call, instead of retrying by @DouweM in #14772 - Skip browser-internal frames in
PlaywrightBrowserselectors, event logs and dialogs by @dsfaccini in #16247 - Start
gitandghfromPATH, not the working directory, in Pax on Windows by @dsfaccini in #16082 - Count compaction and session naming requests in Pax
/costand/usageby @mpfaffenberger in #15908 - Run a Pax model without an account on the default account unless
accounts.poolis on by @DouweM in #14693 - Make Pydantic AI Harness capability constructors keyword-only, except their subject by @DouweM in #15611
New Contributors
Full Changelog: v2.78.0...v2.79.0