agentleFS
PydanticKnown publisherpydantic/pydantic-ai/docs/AGENTS.md

pydantic-ai

AGENTS.md20k starsChanged 2 months agoMITView on GitHub

Follow the general documentation guidance. These rules cover published Markdown under docs/. The docs index and repository README tell the same story on two surfaces. Keep their shared wording and code examples synchronized while preserving the markup each renderer needs:

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 2 mentionsApr 2026: 29 mentionsMay 2026: 2 mentionsJun 2026: 2 mentionsJul 2026: 3 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the pydantic/pydantic-ai repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about pydantic/pydantic-ai

The biggest 5 of 64 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 64

Talked about on GitHub, Bluesky, Hacker News and the web (64 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 7

2 more on Bluesky

On Hacker News · 5

On the web · 2

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 1 is common, 1 is distinctive, and 6 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow the general documentation guidance.

    line 5
  2. Very specific:

    Use reference-style links for API elements: [ElementName][module.path.ElementName].

    line 9
  3. Very specific:

    Write the project name as Pydantic AI.

    line 10
  4. Very specific:

    Use admonitions (!!! note, !!!

    line 11
  5. Very specific:

    Keep provider-specific configuration and behavior in docs/models/{provider}.md and docs/api/models/{provider}.md.

    line 12
  6. Common:

    Keep code examples executable unless they require external services, credentials, or non-deterministic behavior.

    line 17
  7. Distinctive:

    Use examples that demonstrate a credible user task or decision without introducing complexity unrelated to the feature.

    line 20
  8. Very specific:

    When the shared tagline or Harness framing changes, check docs/harness/index.md and src/pydantic_ai_harness/README.md too.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md
<!-- braindump: rules extracted from PR review patterns -->

docs/ guidelines

Follow the general documentation guidance. These rules cover published Markdown under docs/.

Links and structure

  • Use reference-style links for API elements: [ElementName][module.path.ElementName]. They provide hover documentation and API navigation on the published site.
  • Write the project name as Pydantic AI.
  • Use admonitions (!!! note, !!! warning) for callouts, not blockquotes or GitHub alerts.
  • Keep provider-specific configuration and behavior in docs/models/{provider}.md and docs/api/models/{provider}.md. General guides use a minimal provider-agnostic example and link to the provider page.
  • In provider feature tables, use a Notes or Provider Support Notes column for variations, limitations, and special values. Use the standard labels Full feature support and Limited parameter support, and put unsupported variants in the Unsupported column.

Examples

  • Keep code examples executable unless they require external services, credentials, or non-deterministic behavior. Use mocks or fixtures when they keep the example representative.
  • Put example-level exclusions on the fence, such as {test="skip" lint="skip"}, rather than adding tooling suppressions to pedagogical code. Examples that are linted are also type-checked with pyright; opt one out with typecheck="skip - <reason>" only when no natural fix exists, such as a deliberate type error or an uninstalled dependency.
  • Combine parameter variations when one example plus notes preserves every meaningful difference. Split examples when use cases, prerequisites, or constraints differ.
  • Use examples that demonstrate a credible user task or decision without introducing complexity unrelated to the feature.

Review

  • Render documentation in a unified-docs preview before merging.
<!-- /braindump -->

Front pages: docs/index.md and README.md

The docs index and repository README tell the same story on two surfaces. Keep their shared wording and code examples synchronized while preserving the markup each renderer needs:

  • docs/index.md uses relative links, tabs (=== "..."), numbered annotations ((1)!), and MkDocs-only markup.
  • README.md uses absolute documentation links, ### sections instead of tabs, and plain one-line # comments instead of annotations.
  • Mirrored code examples remain code-identical; only comments, annotations, link forms, and fence attributes may differ.
  • README snippets that cannot run in the documentation test environment are excluded by tests/test_examples.py, not by fence attributes, so README fences remain compatible with GitHub rendering.
  • When the shared tagline or Harness framing changes, check docs/harness/index.md and src/pydantic_ai_harness/README.md too.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.