Skip to main content

pydantic-ai-agent-network-access-probe

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.

Install

pip install pydantic-ai-agent-network-access-probe

Requires Python 3.10 or later and pydantic-ai-slim 2.0 or later.

Use

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.

Input Meaning
path Directory with the tool code, relative to the workspace.
entrypoints Entry point files inside the directory, such as ['tool.py']. Default: Probe finds them.
allow_write_tools Also run tools that look destructive (network writes, deletes, payments) in the sandbox. The instructions tell the agent to set it only when you ask.
Option Default Meaning
command None Probe (autofix) binary to run. None downloads the pinned release.
probe_version 0.5.0 Probe release to download. Must be 0.2.3 or later.
sandbox None 'docker' or 'openshell' to also run the tool in a network-blocked sandbox. The runner must be ready where the workspace runs. None is static analysis only.
timeout 600 Seconds for one scan. A first sandbox run also pulls the images.
guidance None Replaces the default instructions. '' adds none.

How it runs

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.

License: Apache-2.0.

Metadata

Release files for pydantic-ai-agent-network-access-probe 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydantic-ai-agent-network-access-probe 0.1.0
File Size Uploaded Provenance Actions
pydantic_ai_agent_network_access_probe-0.1.0.tar.gz 15.7 kB With provenance Details for pydantic_ai_agent_network_access_probe-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-ai-agent-network-access-probe 0.1.0
File Interpreter ABI Platform Actions
pydantic_ai_agent_network_access_probe-0.1.0-py3-none-any.whl Python 3 none any Details for pydantic_ai_agent_network_access_probe-0.1.0-py3-none-any.whl

Total release size: 31.6 kB

Release files / pydantic_ai_agent_network_access_probe-0.1.0.tar.gz

Download URL pydantic_ai_agent_network_access_probe-0.1.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
116e353fd7d2e869221c81ee9c27c505db67ebc8e76606a17dfa72d15914281f
BLAKE2b-256 checksum
How to use checksums
30167423eb8ea8fcaa5ceb9593f2ad721b389ade5ee45d1f4a203276414434e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

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.

Transparency log

Release files / pydantic_ai_agent_network_access_probe-0.1.0-py3-none-any.whl

Download URL pydantic_ai_agent_network_access_probe-0.1.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d58aaa0f25ae98d98ff804a142e00611802308c3abdc5e585ec14cfd2067600
BLAKE2b-256 checksum
How to use checksums
89b15d3f28e7b16970c15b22ce740d10692e795245a48eff7a136e4abb761b40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

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.

Transparency log

Security for pydantic-ai-agent-network-access-probe 0.1.0

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pydantic_ai_agent_network_access_probe-0.1.0.tar.gz

PyPI Publish Attestation

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.

Transparency log

A note on package security

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page