---
type: "post"
id: "pydantic-releases-pax-a-terminal-coding-agent-that-6318c5"
slug: "pydantic-releases-pax-a-terminal-coding-agent-that-6318c5"
title: "Pydantic Releases Pax, a Terminal Coding Agent That Beats Codex for 29% Less"
description: "Want to try your service’s Pydantic AI agent from a terminal?"
retrieval_nugget: "Want to try your service’s Pydantic AI agent from a terminal? Pydantic released Pax, a terminal coding agent built on its Pydantic AI Harness SDK, which is in beta. Pass --agent to replace Pax’s default agent with one from your codebase. (pydantic.dev)"
published_at: "2026-11-26"
updated_at: "2026-11-26"
record_date: "2026-11-26"
date_kind: "published_at"
topics: ["codex","claude","claude-code"]
entities: ["Pydantic","Pax","Pydantic AI Harness","Pydantic AI","Codex","Claude Code"]
related_patterns: ["harness-architecture-outlives-model-choice","skills-become-portable-capability-layer"]
novelty_label: "new_fact"
what_changed: "Pydantic introduces Pax, its terminal coding agent built on the Harness SDK, and reports strong benchmark results at lower cost than Codex on GPT-6.2 Sol."
prior_refs: ["https://newruntime.com/posts/pydantic-ai-v2-63-0-adds-detectloops-capability-a8c5ef/","https://newruntime.com/posts/codex-cli-0-171-0-adds-gpt-6-4a40ec/"]
source_url: "https://pydantic.dev/articles/pax-harness-beta"
source_urls: ["https://pydantic.dev/articles/pax-harness-beta"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:pydantic-releases-pax-a-terminal-coding-agent-that-6318c5"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/pydantic-releases-pax-a-terminal-coding-agent-that-6318c5/","markdown":"https://newruntime.com/posts/pydantic-releases-pax-a-terminal-coding-agent-that-6318c5.md","json":"https://newruntime.com/posts/pydantic-releases-pax-a-terminal-coding-agent-that-6318c5.json"}
markdown_url: "https://newruntime.com/posts/pydantic-releases-pax-a-terminal-coding-agent-that-6318c5.md"
---

# Pydantic Releases Pax, a Terminal Coding Agent That Beats Codex for 29% Less

## Retrieval answer

Want to try your service’s Pydantic AI agent from a terminal? Pydantic released Pax, a terminal coding agent built on its Pydantic AI Harness SDK, which is in beta. Pass --agent to replace Pax’s default agent with one from your codebase. (pydantic.dev)

## Summary

Want to try your service’s Pydantic AI agent from a terminal? Pydantic released Pax, a terminal coding agent built on its Pydantic AI Harness SDK, which is in beta. Pass `--agent` to replace Pax’s default agent with one from your codebase. ([pydantic.dev](https://pydantic.dev/articles/pax-harness-beta))

## What happened

The Harness offers more than 100 capabilities—bundles of tools, instructions and hooks that can be added to an agent. `Coder()` combines these into a coding agent; Pax is its terminal UI. Pax uses plugins for the coder, sandboxes, MCP, Logfire tracing and custom extensions. Use `/plugins` to manage them; `/plugins disable coder` leaves a chat client without file or shell tools.

With `--agent`, Pax loads no plugins: it runs your supplied agent with that agent’s model, tools and instructions. The same Agent object can run in Pax and in your service. Harness workspaces let file and shell tools run locally or in a cloud sandbox without changing tool code.

Select a sandbox before the first prompt with `/sandbox e2b`; other listed cloud options are boxd, daytona, opensandbox, modal, render, sprites and kubernetes. Local options include smol and BoxLite micro-VMs. Pax syncs the branch and uncommitted diff into the sandbox, where edits, builds and `!` commands run. On e2b, boxd, daytona and opensandbox, an egress proxy can inject the GitHub token into outbound GitHub requests rather than placing it in the sandbox.

Code mode is on by default: the model writes Python snippets in Monty to search and read files and return selected results. Press `Ctrl+X`, then `Ctrl+S` to enable speculative execution, which starts safe file reads while the model streams. Pax can show existing Claude Code and Codex sessions in `/resume`, or import them directly with `pax --resume-claude` and `pax --resume-codex`. Its `repo_context` reads `AGENTS.md` and `CLAUDE.md`; the default coder plugin loads Agent Skills from `.agents/skills` and `.claude/skills`.

In Harness-Bench SWE81, Pydantic says it held the model fixed within each harness comparison. Among the four harnesses that ran all eight models, Pax had the highest average score at 58.5, against 58.2 for OpenCode, 57.6 for deepagents-code and 57.3 for pi. Across those eight models, average cost per run was $7.69 for Pax and $6.47 for pi.

In a separate GPT-6.2 Sol comparison over all 81 tasks, Pydantic reports Pax at 64.7 and $9.21 per run, versus Codex at 60.1 and $21.05. Using the stock grader on Sol, the scores were 51.0 for Pax and 49.8 for Codex. In a separate Claude Opus 5.5 comparison, Pax cost $24.61 per run and Claude Code $25.10.

Another, separate GPT-6.1 Sol head-to-head reports scores of 62.4 for Pax and 63.0 for Codex, with Pax costing 29% less and using 8.0 million input tokens per run versus Codex’s 20.8 million. Pydantic calculates OpenAI and Anthropic costs from list-price tokens, and MiniMax and Kimi costs from OpenRouter billed cost.

## Trend signal

Pax separates reusable capabilities and plugins from the agent that uses them: the same Harness can host Pydantic’s coder or your own agent. That fits the broader pattern of the harness becoming a more durable product boundary than the model running inside it.

## Why it matters

For builders, `--agent` makes Pax a way to interactively exercise the agent object used in a service, rather than just adopting Pax’s default coder. The trade-off is that your supplied agent runs without Pax plugins, so do not expect the default coding tools or other plugin behavior to come along automatically.

## Limits and uncertainty

Pydantic says Harness-Bench results are single runs from November, with full methodology and reruns planned for 1.0; its relaxed rescore for Sol and Opus was applied identically to every harness. Pax’s Sol run used unattended `Coder(autonomy='max')`, which never stops to ask. Durable execution that survives crashes and restarts is available in the Harness SDK but not yet in Pax, and computer use is promised for the next Pax release rather than available in the described release. On macOS, the command-name collision is a separate installation wrinkle.

## Skill to build now

Try Pax without installing it: `uvx pydantic-ai-pax`. For a persistent install, use `uv tool install pydantic-ai-pax`. On macOS, the unrelated `/bin/pax` archiver can interfere with invoking the new command. If the shell does not pick it up, open a new terminal, run `rehash` in zsh or `hash -r` in bash, or invoke `pydantic-ai-pax` directly.

## Reader takeaway

The useful distinction is that Pax’s default coder is only one configuration: pass `--agent` to run your own Pydantic AI Agent in the terminal. That makes it a practical way to exercise the same agent used in a service, while sandbox and session-import options broaden the workflow. Treat Pydantic’s benchmark comparisons as preliminary, not settled proof of performance.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Codex](https://newruntime.com/topics/codex.md): Explore the codex topic hub.
- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
