Scan agent tool code for runtime and network-access problems with Trustabl Probe, from a Pydantic AI agent.
pip install pydantic-ai-agent-network-access-probe Copy PIP instructions
Trustabl Probe for Pydantic AI: give your agent a tool that scans agent tool code for problems that break tools in production, and drafts the network allow list the tool needs.
Probe reads the tool's code (Python, Go, JavaScript/TypeScript, Ruby and Shell) and flags problems such as missing timeouts, hardcoded credentials or unfiltered tool output. It also drafts a network allow list (an OpenShell network policy) from the code. With the sandbox enabled it runs the tool with its network blocked, catching crashes, missing dependencies and blocked connection attempts that only show up at runtime. Every finding comes with a fix hint, and the agent applies the fixes.
from pydantic_ai import Agent from pydantic_ai.capabilities import LocalWorkspace from pydantic_ai_agent_network_access_probe import AgentNetworkAccessProbe agent = Agent( 'anthropic:claude-sonnet-5', capabilities=[ LocalWorkspace('.'), AgentNetworkAccessProbe(), ], ) The capability adds one tool, probe_scan(path='.', entrypoints=None, allow_write_tools=False), which returns a readiness score (0 to 100), the draft network allow list and findings worst-first, each with a fix hint. Probe does not change the code. It writes probe.findings.json, network_policies.draft.yaml, probe.profile.json and autofix-attestation.json into the scanned directory, so the workspace must be writable.
The tool runs Probe inside the agent's workspace. It downloads the pinned Probe release, checks it against the release's checksums.txt (a mismatch is a hard failure and nothing is executed) and caches it in ~/.trustabl-probe/, the same folder the Probe MCP server uses. A sandboxed workspace cannot see that host path: add the autofix binary to the sandbox image and pass its path as command.
No model call, no API key and no telemetry. Your code is analyzed where the workspace runs and is never uploaded; attestation signing is off, so nothing goes to a transparency log. With the sandbox on, Probe pulls the sandbox images from Docker Hub and, for a Python tool that declares dependencies, installs them from PyPI before the run.
All 2 files in this release have provenance metadata.
agent network-policy openshell probe pydantic-ai sandbox tools trustabl
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




