Back Home

代理工具

Pax Connects Custom Agents to a Terminal Interface; Sandboxing Must Be Configured Separately

Pydantic’s terminal coding agent is in beta and can load existing agents directly. In custom-agent mode, it does not load default plugins, so developers remain responsible for configuring tools and isolation.

George Chernilevsky · CC BY-SA 4.0 · Image source
zh-Hant

Teams with existing Pydantic AI agents can now run pax --agent my_agents:reviewer to connect their own agent to the Pax interactive terminal, reusing its model, tools, and instructions. This provides a way to test existing agents, but with one key limitation: custom-agent mode does not load Pax plugins. The agent itself must configure the required tools and working environment. Official announcement

The interface and agent logic can be chosen separately

Pax is a terminal coding agent built on the Pydantic AI Harness SDK. A harness is the supporting machinery around the model-call loop, including file tools, command execution, context management, and recovery. Coder() bundles the capabilities needed for coding, while Pax provides the interface. Developers can use the SDK on its own or use Pax to operate a fully custom Agent. Architecture documentation

With the default agent, coding capabilities, sandboxing, MCP connections to external tools, and Logfire execution tracing are designed as plugins that can be toggled from /plugins. When you switch to --agent, your custom agent takes over; you should not assume that the original sandbox or tracing plugins will also be loaded. Plugins and custom-agent documentation

For teams with internal tools or review rules, the practical benefit is avoiding the need to build a separate terminal interface while retaining their own agent components. This convenience comes from reusing the interface; it does not mean tool configuration or permission policies are handled automatically.

Sandbox selection depends on which agent you use

With the default Pax agent, you can choose a cloud sandbox using /sandbox e2b or a local micro-VM using /sandbox local smol before the first prompt. According to the official documentation, Pax syncs branches and uncommitted changes, then runs subsequent edits, builds, and ! commands inside the sandbox. A custom agent is configured in code instead: for example, replace LocalWorkspace('.') with E2BSandbox() so that Coder()’s file and command tools operate in the sandbox. Sandbox instructions

This switch depends on the workspace, the shared interface for file access and command execution. Official tools use it to operate in different environments. Therefore, custom tools that read or write host files directly should not be assumed to move into the sandbox just because the workspace was changed. This is an interpretation of the interface design. Workspace documentation

Local workspaces also have a clear boundary: LocalWorkspace does not provide isolation. The specified directory only determines where commands start; it does not restrict which files they can access. Each sandbox also requires its corresponding extension and runtime prerequisites. Workspace and isolation documentation

Available to install, but still at an early stage

On November 25, 2026, Pydantic published its beta announcement for Pax and Harness. PyPI lists Pax 0.75.0, uploaded that same day, and requires Python 3.11 or later. The package’s development status classifier is still Alpha, so it should be treated as an early-stage release. Announcement, package details

The runtime environment needs particular attention before starting a task: Pax documentation states that, by default, it modifies files and runs commands with the user’s permissions, without a default sandbox or approval step. Teams that want to keep their custom agent logic while using isolation should explicitly select a workspace in their agent configuration. Pax usage documentation

Sources

  1. Introducing Pax and the Pydantic AI Harness beta, on the road to 1.0
  2. Pax | Pydantic Docs
  3. Workspaces | Pydantic Docs
  4. pydantic-ai-pax · PyPI