Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add itechmeat/llm-code --skill pydantic-aigit clone --depth 1 https://github.com/itechmeat/llm-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/itechmeat/llm-code/pydantic-ai)<a href="https://agentmods.dev/skills/itechmeat/llm-code/pydantic-ai"><img src="https://agentmods.dev/badge/skills/itechmeat/llm-code/pydantic-ai/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/itechmeat/llm-code/pydantic-ai"><img src="https://agentmods.dev/badge/skills/itechmeat/llm-code/pydantic-ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.06579 |
| Opus 5.5 | $0.00032 | $0.02632 |
| Sonnet 5.5 | $0.00016 | $0.01316 |
| Haiku 4.5 | $0.00008 | $0.00658 |
Grade A, and why
pydantic-ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 344 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pydantic AI
Python agent framework for building production-grade GenAI applications with the "FastAPI feeling".
Quick Navigation
| Topic | Reference |
|---|---|
| Agents | agents.md |
| Capabilities | agents.md |
| Tools | tools.md |
| Models | models.md |
| Embeddings | embeddings.md |
| Evals | evals.md |
| Integrations | integrations.md |
| Graphs | graphs.md |
| UI Streams | ui.md |
| Workspaces & Sandboxes | workspaces-and-sandboxes.md |
| Realtime (speech-to-speech) | realtime.md |
| MCP Apps | mcp-apps.md |
| Decision Models | decision-models.md |
| Security | security.md |
| Installation | installation.md |
When to Use
- Building AI agents with structured output
- Need type-safe, IDE-friendly agent development
- Require dependency injection for tools
- Multi-model support (OpenAI, Anthropic, Gemini, etc.)
- Production observability with Logfire
- Complex workflows with graphs
Installation
See references/installation.md for full/slim install options and optional dependency groups. Requires Python 3.10+.
Release Highlights (2.49.0 -> 2.59.0)
- Security (upgrade): three advisories landed in this window - the local
web_fetchHTML conversion stall (High, GHSA-4whf-38hw-pxxh, fixed in2.59.0/v1.107.9), MCP server URLs/tokens/custom headers leaking into OpenTelemetry traces and URL-derived credential exposure (Medium, GHSA-xv4x-g8mx-ch56, fixed in2.58.0/v1.107.8), and client-triggered tool execution through the Vercel AI/AG-UI adapters with server-sidemessage_history(Medium, GHSA-5pfm-2g3g-gh85, fixed in2.58.0). Rotate MCP credentials when upgrading from below2.58.0. Details inreferences/security.md. - Workspaces and sandboxes (
2.52.0+):ctx.workspacegivesCoder,ShellandFileSystemone API for files and commands, running locally or in a sandbox with durable execution. New providers:SpritesSandbox(Fly.io Sprite),E2BSandbox,SSHWorkspace,BubblewrapSandbox, andDaytonaSandbox(2.59.0);ModalSandboxBackendreplacesModalSandboxSession.Coderfile tools get a retry budget of 5 and keep scratch files out of the project. Seereferences/workspaces-and-sandboxes.md. - Realtime (
2.49.0-2.59.0): OpenAI GPT-Live viaOpenAILiveModel(2.51.0) with browser WebRTC (2.52.0),ElevenLabsRealtimeModel(2.58.0),azure_voice_live_voice(2.52.0),gemini-3.8-live(2.50.0),RealtimeSession.wait_for_reply()(2.49.0),context_window_used(2.51.0), theasync_tool_call_modeprofile setting (2.52.0), and theAnswersRevised/OutputItemCutlifecycle events (2.59.0). Seereferences/realtime.md. - Provider-neutral errors (
2.59.0):ModelRateLimitError,ModelUnavailableError,ModelServerError,ModelContextWindowExceededError, plusModelHTTPError.for_categoryto map a raw provider error onto them. - MCP Apps (
2.57.0): tool results can carry resources and app surfaces, forwarded to the AG-UI and Vercel AI frontends.MCPToolset.read_resource_contentsandMCPToolset.call_tool_for_appread a resource or call an app-producing tool;ToolKindtyped tool parts (2.58.0) let any module emit a typed tool part. Seereferences/mcp-apps.md. - Decision models (
2.49.0-2.50.0):DecisionModel(the baseTypeSafeModelbuilds on) answers several questions in one call and routes from the answers, with route fields,decision_route_threshold,ModelSelectionContext.promptandRunContext.in_durable_context.TypeSafeModelgained "none of these" semantics and whole-numberChoiceoptions;BoolCriteriatypes boolean answers. Seereferences/decision-models.md. - Providers and models (
2.49.0-2.59.0): Claude Sonnet 5.5 (claude-sonnet-5-5) withAnthropicModeldefaultmax_tokensraised from 4096 to 16384 on Sonnet 4.5+ (and defaulting to the model's maximum output);MetaProviderfor Meta Muse (2.57.0); OpenAIgpt-6-sol/gpt-6-luna/gpt-6-astraon Bedrock Converse withtemperature/top_pdropped for GPT-5.6/GPT-6 there;GitHubCopilotProvidercan send a configurablecopilot-integration-id; shut-down Groq models (playai-tts,playai-tts-arabic,meta-llama/llama-guard-4-12b,meta-llama/llama-4-maverick-17b-128e-instruct) were removed. - Agent control (
2.57.0-2.59.0):DelegationTasks.steersteers a running delegated task;ModelSettings['max_retries'], whole-agenttimeout=andRunContext.deadline;ApprovalReviewerlets a model approve low-risk tool calls before a person sees them;on_change='append'for dynamic instruction prefixes (also opt-in onFunctionToolset.instructions);tool_calls_limitis checked before eachCodeModenested call;BackgroundToolsresults are framed as<tool_result>tool output;read_filecan return images and PDFs;SqliteStepStorestores each message once. - Breaking change (
2.52.0):SubAgentsno longer load agent files by default, andinherit_toolsis deprecated.
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/agents.md 26 KB
- references/decision-models.md 3.1 KB
- references/embeddings.md 8.0 KB
- references/evals.md 5.4 KB
- references/graphs.md 10 KB
- references/installation.md 1.8 KB
- references/integrations.md 17 KB
- references/mcp-apps.md 2.3 KB
- references/models.md 30 KB
- references/realtime.md 3.2 KB
- references/security.md 3.7 KB
- references/tools.md 27 KB
- references/ui.md 9.8 KB
- references/workspaces-and-sandboxes.md 2.9 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +20 lines 36f7c74525f9
- 2mo ago Changed · +9 lines 33bca4d3c7c1
- 2mo ago Changed · +12 lines d29492e3791a
- 3mo ago First seen · 303 lines · 80 tokens per session scan A 31394a21933f
pydantic-ai is a skill published in the GitHub repository itechmeat/llm-code (24 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 6,579 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
pydantic-ai compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pydantic-aiitechmeat/llm-code | Skill | 24 | 1mo ago | MIT | A | 80 | Claude Code, Codex |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 59k | 3d ago | MIT | A | 44 | Claude Code |
| pennylaneK-Dense-AI/scientific-agent-skills | Skill | 59k | 3d ago | MIT | A | 74 | Claude Code |
| holoscan-install-wheelNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 34 | Claude Code, Codex |
| python-engineering-guidelinesanywhere-labs/Agents-Anywhere | Skill | 3.9k | yesterday | Apache-2.0 | A | 75 | Codex |
| future-self-liteTHU-MAIC/OpenMAIC | Skill | 46k | today | MIT | A | 20 | Claude Code, Codex |
| rocm-kernelshuggingface/kernels | Skill | 799 | today | Apache-2.0 | A | 93 | Claude Code |