Skip to main content Switch to mobile version Pre-release This release is a pre-release and may not be stable for production use.
An extensible AI agent harness
pip install xah==0.1.0a32 Copy PIP instructions
eXtensible Agent Harness—or perhaps “Not Another Harness!”
xah is for people comfortable with Python development—directly or via agents—who want fine-grained control over how their agents behave.
xah may be useful if you want to:
Work with locally hosted models, whose tool discipline may not always be reliable.
Add custom tools—for example, ensure the agent can only run the right version of Python.
Add validation that blocks misbehavior even when prompts asking the agent not to do something have failed.
Add tools that aren't typically available in existing harnesses.
Subclass or extend existing tools, validation workflows, or subagents.
Extend agents to non-coding workflows.
If you use frontier models exclusively and they already behave roughly how you want, a mainstream off-the-shelf agent may be a better fit.
If you do not want to work in Python or maintain code-level customizations, xah's main strength—extending the harness in Python—may not be useful to you.
There are two main motivations for xah: extensibility, and adapting ACP for agents beyond coding.
Existing harnesses can be limiting when a developer—or an agent working with them—needs to develop tools in a fine-grained, debuggable way. Common approaches tend to fall into a few groups:
Instructions: add more context in files such as AGENTS.md or skills, then hope the agent follows it.
Configuration: set coarse-grained options for behavior and permissions.
Plugin systems: gain more power, but learn a separate workflow; plugins can also be difficult to debug when they run through the agent.
These approaches have their place, but they aren't a substitute for being able to change the harness directly. xah makes it straightforward to develop and debug custom tools and validation as Python code. A prompt can ask an agent not to misbehave; code can block it from doing so.
xah is built on Pydantic AI and Pydantic Deep Agents.
Adapting ACP for non-coding agents
The Agent Client Protocol (ACP) is designed to connect coding agents with clients such as editors and IDEs. It provides a standard communication interface, rather than a bespoke integration for every agent and client. ACP is not an agent-to-agent coordination protocol.
xah begins with the familiar coding-agent use case—an IDE, terminal UI, or similar client—and explores using that client experience with agents for other kinds of work, too.
Install xah from PyPI and start the server:
pip install xah xah For an ephemeral run, use uvx xah. The server needs an ACP client for the interactive interface. See the quick start and PyCharm or Zed setup instructions, then work through the tutorials to extend xah.
Declare adapter classes in a harness's Models method; xah constructs each adapter with the harness's complete settings object. Adapters can use that object for provider credentials while keeping Pydantic AI model settings separate. The ai.token setting is a SecretStr; standalone xah reads it from XAH__AI__TOKEN.
xah ships with built-in toolsets for common agent capabilities. See the built-in toolsets reference for the catalogue and short descriptions.
Visit the xah documentation for setup, ACP client configuration, tutorials, and agent data and skills.
Apache-2.0 View SPDX License List
AI agent agent harness agent framework ACP Pydantic AI
Development Status 3 - Alpha
Intended Audience Developers
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Software Development :: Libraries :: Application Frameworks
Release files for xah 0.1.0a32
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 213.4 kB
Release files / xah-0.1.0a32.tar.gz
Release files / xah-0.1.0a32-py3-none-any.whl
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.
None of the files in this release were uploaded with provenance metadata.
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
Dec 3, 2026 2 release files No provenance
Dec 2, 2026 2 release files No provenance
Dec 1, 2026 2 release files No provenance
Nov 30, 2026 2 release files No provenance
Nov 29, 2026 2 release files No provenance
Nov 28, 2026 2 release files No provenance
Nov 27, 2026 2 release files No provenance
Nov 26, 2026 2 release files No provenance
Nov 23, 2026 2 release files No provenance
Nov 21, 2026 2 release files No provenance
Nov 20, 2026 2 release files No provenance
Nov 19, 2026 2 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 17, 2026 2 release files No provenance
Nov 16, 2026 2 release files No provenance
Nov 15, 2026 2 release files No provenance
Nov 14, 2026 2 release files No provenance
Nov 13, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
Nov 11, 2026 2 release files No provenance
Nov 9, 2026 2 release files No provenance
Nov 8, 2026 2 release files No provenance
Nov 7, 2026 2 release files No provenance
Nov 6, 2026 2 release files No provenance
Nov 4, 2026 2 release files No provenance
Nov 2, 2026 2 release files No provenance
Nov 1, 2026 2 release files No provenance
Oct 31, 2026 2 release files No provenance
Oct 30, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 23, 2026 2 release files No provenance
Sep 18, 2026 1 release file No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




