Pydantic AI Tool — AI skill for Claude Code
Trustabl turns Pydantic AI apps into governed agents.
How to install Pydantic AI Tool
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open trustabl/pydantic-ai-tool and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pydantic AI Tool does
Trustabl turns Pydantic AI apps into governed agents. It verifies typed tools, structured outputs, usage limits, and idempotent mutations, repairs production reliability gaps, generates least-privilege policies, and adds OTEL context when a run still slips the schema.
Alternatives in AI
- Agenvoy — Self-hosted AI agent harness in a single Go binary — writes, sandbox-tests and repairs its own tools, and lets 474 ★
- Upstream Watch — Review pydantic-ai and pydantic-ai-harness releases published since the last watch entry, and record a verdict 361 ★
- SoloDawn — Catches and repairs AI hallucinations before delivery: three quality gates, 31 built-in rules, a self-healing 312 ★
README
pydantic-ai-trustabl
Scan an agent repository for reliability and safety weaknesses from inside a Pydantic AI agent, and hand the findings back for the agent to fix.
pip install pydantic-ai-trustabl
The problem
[Trustabl](https://github.com/trustabl/agent-reliability-analyzer) analyses agent code: unsafe tool grants, missing turn limits, untyped tools, prompt-injectable shell tools, fetch calls with no timeout. It ships as a CLI and as editor plugins. There was no way to give a Pydantic AI agent the same scan-and-fix loop from your own code.
The solution
`Trustabl` adds a `scan_repository` tool that runs the scanner in the run's workspace, summarises the report, and returns it. The agent then verifies each finding and fixes the real ones with whatever tools it already has.
from pydantic_ai import Agent
from pydantic_ai.capabilities import LocalWorkspace
from pydantic_ai_trustabl import Trustabl
agent = Agent(
'anthropic:claude-sonnet-5',
capabilities=[
LocalWorkspace('.'),
Trustabl(),
],
)
result = agent.run_sync('Scan this repository and fix the confirmed findings.')
print(result.output)
**On Windows, use a container workspace rather than `LocalWorkspace`.** The example above raises `NotImplementedError` there, because Pydantic AI's `LocalWorkspaceBackend` is POSIX only at the moment: its timeout contract kills the whole process group, which Windows has no equivalent for. That is an upstream limitation rather than one this package adds, and everything else here works the same on all three platforms.
Why it summarises
A full scan of a large agent repository reaches several megabytes, far past what is useful in a tool result. The tool returns the inventory, a severity histogram, and the findings above a floor, with `truncated` set when any were dropped.
Two details worth knowing:
- Test-path findings are excluded, from the returned findings and from the histogram. The scanner classif
Related Skills
AI SDK Tool
Find and fix reliability and safety gaps in AI SDK apps — untyped tools, missing step bounds, unsafe provider
Venice Py
Unofficial async-first Python SDK for the Venice.ai API — chat, image, video, music, audio, embeddings, TEE at
Aftermatter
Evidence-based review of your AI coding agent's workflow. Analyzes Claude Code, Codex & Cursor session logs pl
Job Pilot AI
AI-powered resume-based job search agent that discovers relevant jobs, calculates AI matching scores, verifies
Aeon Agent Harness
Self-hosted agent harness platform: durable Temporal execution, typed context/evidence, policy enforcement out
Windows Computer Use Notes
Field notes for AI agents driving Windows apps on a shared desktop: act on minimized windows invisibly, stop t
Related Agents
Infra Reviewer
Reviews a diff through the INFRA lens only (deploy/rollback safety, CI/CD config, container/IaC least-privileg
MCP Builder
Use for anything under mcp/ — designing and writing MCP servers in TypeScript, writing and reviewing tool desc
Performance Reliability Engineer
Performance and reliability tester. Delegate when latency or throughput SLOs, timeouts, retries, queues, resou