Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Batteries for your Pydantic AI agent.
| Date | Stars |
|---|---|
| 2026-07-31 | 720 |
| 2026-08-04 | 734 |
| 2026-08-06 | 734 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
60.0
growth rate 0.00%/day
# Pydantic AI Harness
[](https://github.com/pydantic/pydantic-ai-harness/actions/workflows/main.yml?query=branch%3Amain)
[](https://pypi.python.org/pypi/pydantic-ai-harness)
[](https://github.com/pydantic/pydantic-ai-harness)
[](https://github.com/pydantic/pydantic-ai-harness/blob/main/LICENSE)
**The batteries for your [Pydantic AI](https://ai.pydantic.dev/) agent.**
---
Pydantic AI's [capabilities](https://ai.pydantic.dev/capabilities/) and [hooks](https://ai.pydantic.dev/hooks/) API is how you give an agent its harness -- bundles of tools, lifecycle hooks, instructions, and model settings that extend what the agent can do without any framework changes.
**Pydantic AI Harness** is the official capability library for Pydantic AI, maintained by the [Pydantic AI](https://github.com/pydantic/pydantic-ai) team. Pydantic AI core ships capabilities that require model or framework support, and capabilities fundamental to every agent -- [web search](https://ai.pydantic.dev/capabilities/#provider-adaptive-tools), [tool search](https://ai.pydantic.dev/deferred-tools/), [thinking](https://ai.pydantic.dev/capabilities/#thinking). Everything else lives here: standalone building blocks you pick and choose to turn your agent into a coding agent, a research assistant, or anything else. This is also where new capabilities start -- as they stabilize and prove themselves broadly essential, they can graduate into core.
The [capability matrix](#capability-matrix) tracks where we are. [Tell us what to prioritize.](#help-us-prioritize)
**Contents:** [Installation](#installation) · [Quick start](#quick-start) · [DynamicWorkflow](#orchestrating-sub-agents-dynamicworkflow) · [Capability matrix](#capability-matrix) · [An ecosystem agent](#an-ecosystem-agent) · [Help us prioritize](#help-us-prioritize) · [Build your own](#build-your-own) · [Contributing](#contributing) · [Version policy](#version-policy) · [Pydantic AI references](#pydantic-ai-references) · [License](#license)
## Installation
```bash
uv add pydantic-ai-harness
```
Extras for specific capabilities:
```bash
uv add "pydantic-ai-harness[codemode]" # CodeMode (adds the Monty sandbox)
uv add "pydantic-ai-harness[dynamic-workflow]" # DynamicWorkflow (adds the Monty sandbox)
uv add "pydantic-ai-harness[modal]" # ModalSandbox (adds the Modal SDK)
uv add "pydantic-ai-harness[logfire]" # ManagedPrompt (Logfire-managed prompts)
uv add "pydantic-ai-harness[exa]" # ExaSearch + ExaAgent (web research via the Exa API)
uv add "pydantic-ai-harness[skills]" # Skills (loads SKILL.md frontmatter)
uv add "pydantic-ai-harness[stackone]" # StackOne (actions on linked business applications)
uv add "pydantic-ai-harness[acp]" # ACP (serve an agent to editors over the Agent Client Protocol)
uv add "pydantic-ai-harness[mongodb]" # MongoDB backends for step persistence + media externalization (adds pymongo)
```
The `code-mode` extra is also supported as an alias.
Requires Python 3.10+ and `pydantic-ai-slim>=2.18.0`.
## Quick start
```bash
uv add "pydantic-ai-slim[anthropic,mcp,duckduckgo,logfire]" "pydantic-ai-harness[code-mode]"
```
```python
import logfire
from pydantic_ai import Agent
from pydantic_ai.capabilities import MCP, WebSearch
from pydantic_ai_harness import CodeMode
# See https://ai.pydantic.dev/logfire/ for setup details.
logfire.configure()
logfire.instrument_pydantic_ai()
agent = Agent(
'anthropic:claude-opus-4-7',
capabilities=[
# Wraps every tool into a single run_code tool, sandboxed by Monty
# (https://github.com/pydantic/monty -- pulled in by the [code-Excerpt of 29,363 characters
Read on GitHubDavid SF · alecs
56
34
Aditya Vardhan · @pydantic · India
30
Bill Easton
11
Kacper Włodarczyk · vstorm-co · Poland
7
David Montague · Pydantic · Malta
6
2
Marcelo Trylesinski · @pydantic · Netherlands
2
2
King Star · Xin Era LLC.
1
Victorien · @pydantic · Netherlands
1
1
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:2ca61781a6b53d52, desc:ai agent