{"type":"post","id":"code-mode-pydantic-docs-e7ac6a","slug":"code-mode-pydantic-docs-e7ac6a","title":"Code Mode: Pydantic Docs","description":"Instead of asking the model to make separate calls to search, read and filter, Pax lets it write a short Python snippet for Pydantic Monty to execute.","retrieval_nugget":"Instead of asking the model to make separate calls to search, read and filter, Pax lets it write a short Python snippet for Pydantic Monty to execute. One snippet can perform those operations and return selected information, reducing separate model–tool exchanges, according to Pydantic’s documentation. (pydantic.dev)","published_at":"2026-11-26","updated_at":"2026-11-26","record_date":"2026-11-26","date_kind":"published_at","topics":[],"entities":["Pydantic AI","Pydantic AI Harness","Monty"],"related_patterns":["agent-security-moves-to-runtime-boundaries","harness-architecture-outlives-model-choice"],"novelty_label":"new_fact","what_changed":"Pax enables code mode by default, using short Python snippets executed by Monty to search, read, filter, and return selected information.","prior_refs":[],"source_url":"https://pydantic.dev/docs/ai/harness/code-mode","source_urls":["https://pydantic.dev/docs/ai/harness/code-mode"],"schema_version":"newruntime-agent-readable-v0.2","stable_id":"post:code-mode-pydantic-docs-e7ac6a","status":"published","visuals":[],"editor":{"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]},"routes":{"html":"https://newruntime.com/posts/code-mode-pydantic-docs-e7ac6a/","markdown":"https://newruntime.com/posts/code-mode-pydantic-docs-e7ac6a.md","json":"https://newruntime.com/posts/code-mode-pydantic-docs-e7ac6a.json"},"markdown_url":"https://newruntime.com/posts/code-mode-pydantic-docs-e7ac6a.md","next_reads":[{"type":"collection","path":"/posts/","url":"https://newruntime.com/posts/","title":"Field Notes","reason":"Open the latest editorial analysis.","media_type":"text/html","json_url":"https://newruntime.com/posts.json"},{"type":"collection","path":"/sources/","url":"https://newruntime.com/sources/","title":"Sources","reason":"See the original sources this archive cites.","media_type":"text/html"}]}
