Learning resourcesReviewed · Pydantic

Pydantic AI Contribution Guide

Pydantic AI’s contribution guide is a reference for developers improving the project, but non-trivial pull requests require prior maintainer agreement and assignment. It explains bug reporting, feature planning, development setup, type checking and documentation changes.

Researched 24 Nov 2026

In short.

Pydantic AI’s contribution guide is a reference for developers reporting bugs or proposing changes, but non-trivial pull requests need prior maintainer agreement and assignment, with no guaranteed review. It explains where core and Harness contributions belong, how to prepare a development environment, and how local checks differ from continuous integration. Its main value is helping contributors choose an appropriate contribution path before investing substantial effort. Installation success, runtime quality, licensing and total cost are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected page at [https://pydantic.dev/docs/ai/project/contributing/index.md], including its documentation-index and agent-query notices, contribution procedures, setup commands, testing and type-checking guidance, documentation rules and model-contribution constraints. Linked pages, repository configuration, lockfiles and tools are excluded. No commands, installation, tests, bots or previews were executed. Runtime behavior, external terms and prices remain unassessed.

The overview

Identity

This is Pydantic AI’s contribution documentation at [https://pydantic.dev/docs/ai/project/contributing/index.md]. It covers working with maintainers and changing the project’s code or documentation. It is not a tutorial for building an application with Pydantic AI.

Assessment

The guide is useful before starting a contribution because it makes review expectations unusually explicit: maintainers prioritize project needs, may rewrite submitted code, and cannot promise to review every contribution. Clear problem descriptions, early agreement and working examples receive more emphasis than unsolicited, polished implementations.

It provides concrete development commands and contribution rules. It supplies no evidence about application performance, production reliability or typical contribution acceptance times.

Users

The audience includes developers reporting reproducible bugs, contributors proposing features or provider integrations, and people improving documentation. New contributors can submit typos, broken-link corrections and other trivial fixes directly as pull requests.

People with a real use case can also become feature champions by explaining their needs, shaping a plan and validating the result. The page explicitly says this role does not require writing the implementation.

Capabilities

The guide explains how to report bugs with minimal reproducible examples, propose changes, obtain assignment, understand automated reviews and follow up when an issue goes quiet. A Logfire trace link is suggested as helpful debugging evidence.

It distinguishes core functionality, such as the agent loop and model providers, from standalone capabilities such as guardrails, memory, context management and filesystem access. The latter generally belong in Pydantic AI Harness, identified as the official capability library at src/pydantic_ai_harness, or in separate packages.

For documentation contributors, it covers navigation manifests, canonical routes, redirects, heading anchors and preview validation.

Using it

Requirements

The documented development path uses a repository fork, Git, uv and make. The example clone command uses GitHub SSH access. The minimum uv version is defined by tool.uv.required-version in the linked pyproject.toml; its value is not supplied on this page.

Supported operating systems, Python versions and minimum hardware are not specified here. Python 3.11 appears as a boundary for incremental type-checking behavior, which does not establish the package’s minimum supported Python version.

For non-trivial contributions, the procedural prerequisites are maintainer agreement on the approach and assignment before opening the implementation pull request. Trivial fixes have a direct-pull-request exception.

Mechanism

Maintainers prioritize contributions by user demand, provider significance, roadmap alignment and whether a capability belongs outside core. A feature champion contributes use-case knowledge, planning and validation. Submitted code may be revised, superseded or rewritten, with original authors still credited.

Automated reviews supplement human review. The page says douwebot reads code without running it, while pydanty runs code when requested by a maintainer. Pull requests labelled size: M or larger require douwebot approval with no findings on the latest commit before merging. Bot approval alone does not establish merge readiness, and maintainers decide disputed findings.

Setup

The documented sequence is to clone a fork, enter the pydantic-ai directory, install uv and run make install. The page says this installs the project, dependencies and pre-commit hooks, including pre-commit through uv if needed. make help lists commands; make runs formatting, linting, static type checks and tests with coverage generation.

For targeted type checking, it gives PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright path/to/file.py. Pre-commit does not run Pyright. Locally, make typecheck-changed follows changed files and their transitive importers, excluding unchanged tests from narrowed runs. Configuration, dependency-resolution and other changes can broaden the check; CI always uses the full check.

PYRIGHT_THREADS controls parallel checking for full runs. Each worker is a separate Node process, so additional workers require additional memory. No suitable setting for a particular machine is established.

Example

An illustrative contribution is a reusable guardrail capability. The guide places standalone guardrails in Harness, so the contributor would first describe the use case in a Harness feature request. After maintainer agreement and assignment, the contributor could prepare a working example and pull request, then help validate the result.

This is a hypothetical application of the documented process. No guardrail implementation or contribution journey was executed.

Assessment & evidence

Limitations

Unassigned pull requests may be automatically closed, and contributions without prior agreement are outside the review queue. Even aligned contributions have no promised review deadline. Niche-provider work may receive lower priority than widely used providers.

New model contributions face specific constraints. An extra dependency must consistently exceed 500,000 monthly PyPI downloads for at least three months. A model reusing existing model logic without an extra dependency requires its GitHub organization to exceed 20,000 total stars. Simple custom-URL and API-key integrations may receive a documentation paragraph; other integrations are directed toward separate packages using pydantic-ai-slim and the Model abstract base class.

The page does not establish which providers currently meet these thresholds or whether a particular proposal would be accepted.

Reasoning

A clear issue, an agreed plan and a minimal working example appear to be the most effective initial investment because maintainers prioritize demonstrated needs and may rewrite submitted code. This is an inference from the stated review process; acceptance-rate data is not supplied.

The distinction between core and Harness is especially useful for avoiding misplaced proposals. Checking where a capability belongs can change both the contribution destination and the amount of coordination needed.

Alternatives

The page offers several contribution paths: report and validate a bug that maintainers fix internally, champion a feature without implementing it, submit a trivial correction directly, contribute a Harness capability, or publish a separate capability package using the pydantic-ai-<name> convention.

A separate package can let a capability develop real users and a stable API before an upstream discussion. The page provides no comparative evidence about other agent frameworks or contribution communities.

Evidence

The evidence is the complete contribution page at [https://pydantic.dev/docs/ai/project/contributing/index.md].

The page supports descriptions of intended procedures and commands. Linked repository files and documentation were not assessed. No installation, command, test, review bot or documentation preview was run, so actual behavior remains unverified.

Access & freshness

Costs

The page provides no prices for tools, Logfire, model APIs or other services, and does not establish a total monetary cost. Cost remains unknown.

Contributor time is a material consideration: review is not guaranteed, and maintainers may rewrite implementations. Full type checks also consume local compute and memory, particularly with multiple Node workers. No general development-time or hardware-cost estimate is supported.

Rights

The supplied page does not state a documentation licence, source-code licence, contributor licence agreement or redistribution permission. Those terms are unknown from this evidence.

It promises original-author credit when contributed code is rewritten and co-author credit for champions when a feature ships. Attribution commitments do not establish licensing or redistribution rights.

Freshness

The source was captured on 24 November 2026 at 02:26:59.806 UTC. The page supplies no publication date, last-updated date or Pydantic AI release version.

Its stated roadmap priorities include the capabilities/hooks API, provider-adaptive tools and Harness. These priorities, review rules and CI details describe the captured page; subsequent changes are unknown. Recheck the live guide before committing substantial effort.

Actions

Search existing issues, explain the problem and use case, and provide a minimal reproduction for bugs. Decide whether a feature belongs in core, Harness or a separate package. For non-trivial changes, obtain agreement and assignment before opening the implementation pull request. Push follow-up commits rather than force-pushing an open pull request.

For documentation changes, update docs/navigation.yml when adding, moving or removing pages. Canonical slugs and aliases are relative to the documentation root, without /ai or a leading slash. Preserve linked heading anchors. Request the trigger:docs-preview label through a maintainer and verify the reported commit SHA; fork pull requests receive navigation validation without a rendered preview.

If progress stalls, the guide recommends following up in #pydantic-ai on Pydantic Slack with the issue or pull-request link and a clear request.

Evidence for this report

selected-page.txtselected · checked 2026-11-24