pydantic-ai / capabilities
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/capabilities/AGENTS.md
Capabilities are the composable home for cross-cutting agent behavior.
How real projects brief Codex, Cursor and every other agent that reads AGENTS.md.
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.
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/capabilities/AGENTS.md
Capabilities are the composable home for cross-cutting agent behavior.
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/durable_exec/AGENTS.md
Durable execution integrations are first-class compatibility targets. Build new integrations on the public pydantic_ai.durable_exec surface. Subclass BaseDurabilityCapability for the agent-facing capability and provide a DurableOperationBackend from get_durable_operation_backend. Do not copy the model, toolset, event, or capability-operation collection machinery into the integration. Choose the backend tier from the engine SDK's execution model: - Subclass CallableOperationBackend when the SDK accepts an async callback at invocation time. Implement execute to run that callback in one named durable unit. The base owns parameter and…
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/models/AGENTS.md
No summary in the file. Open it to read it.
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/native_tools/AGENTS.md
No summary in the file. Open it to read it.
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/profiles/AGENTS.md
Profiles describe model-family capability facts and schema/request quirks.
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/providers/AGENTS.md
Providers own API clients, authentication, base URLs, HTTP lifecycle, and provider-level model/profile inference.
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/realtime/AGENTS.md
Start with the architecture walkthrough in docs/api/realtime.md and the user-facing guides under docs/realtime/: a RealtimeModel.connect() opens a provider-specific RealtimeConnection (the codec, vocabulary in codec.py), and RealtimeSession (_session.py) wraps it — translating codec events into the shared message/part vocabulary from pydantic_ai.messages, building ordinary ModelMessage history, and running the tool loop. The provider-agnostic layout mirrors the request-response side: model.py holds the RealtimeModel ABC and infer_realtime_model, settings.py the settings vocabulary, profiles.py the RealtimeModelProfile type (per-provider tables live in pydantic_ai/profiles/{google,openai,grok}.py as *_realtime_model_profile helpers), and…
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/toolsets/AGENTS.md
Toolsets are reusable tool collections with lifecycle, instructions, and execution boundaries.
pydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/ui/AGENTS.md
Since 3971 we decided to introduce the policy of sticking to the lower (existing) version requirement. In short, this means: - version requirement bumps are disallowed - new functionality should be gated behind version checks (including imports) - older versions don't error out when they encounter new functionality, but instead skip it The inbound half of that last rule lives in ag_ui/_forward_compat.py: AG-UI's Message and InputContent are discriminated unions, so a role or type added after the installed version is…
pydantic/pydantic-ai/src/pydantic_ai_harness/AGENTS.md
Rules for the pydantic-ai-harness package in src/pydantic_ai_harness/. They add to the root AGENTS.md. Test rules are in tests/harness/AGENTS.md. Docs page rules are in docs/harness/AGENTS.md. Paths in this file are relative to the repository root. pydantic-ai-harness is the first-party capability library for Pydantic AI. Pydantic AI core owns the primitive runtime: agent loop semantics, normalized messages, model/provider/profile behavior, tool execution semantics, durable execution primitives, and generic capability hooks. Harness owns optional, batteries-included compositions built from those primitives: coding-agent tools, guardrails, memory,…
pydantic/pydantic-ai/src/pydantic_clai2/AGENTS.md
Read this before touching pydantic-clai2/. The repository-level AGENTS.md still applies (no em-dashes, no Any, pyright strict, keyword-only arguments, 100% branch coverage). This file adds what is specific to the terminal shell. A thin terminal around any Pydantic AI agent. It reads a prompt, runs the agent, streams the answer, and repeats. Everything beyond that is a plugin, including the default coding tools. The three layers, and who owns what: If a change needs the agent loop to behave differently, propose…
pydantic/pydantic-ai/tests/AGENTS.md
Every async def test runs via the anyio pytest plugin automatically (anyio_mode = "auto" in pyproject.toml); don't add @pytest.mark.anyio. The async backend defaults to asyncio. Use uv run pytest <test-path> --anyio-backend=trio --record-mode=none to run selected portable tests on Trio without duplicating the default suite. During the Trio migration, run affected concurrency tests once per backend. Keep broad Trio runs manual or periodic; do not add a second backend to every ordinary CI matrix. The selector does not imply that every…
No other project uses it yet
pydantic/pydantic-ai/tests/benchmarks/AGENTS.md
No summary in the file. Open it to read it.
pydantic/pydantic-ai/tests/harness/AGENTS.md
Rules for the pydantic-ai-harness test suite. They add to tests/AGENTS.md and to the package rules in src/pydantic_ai_harness/AGENTS.md. Where these rules or the harness guides they link differ from tests/AGENTS.md, they apply under tests/harness/. Read testing-capabilities.md before you add or change a capability's tests. For async behavior, follow the harness concurrency.md. - tests/harness/conftest.py sets ALLOW_MODEL_REQUESTS = False for the suite. - Name a capability test class TestCapabilityName, with test_<scenario> methods. - Don't import private (_-prefixed) helpers into tests. Exercise them through…
microsoft/fluentui/AGENTS.md
Instructions in this file are the source of truth, not existing code. This repo contains legacy patterns (especially in v8 packages) that predate current standards. Never copy patterns from existing…
No other project uses it yet
astral-sh/ty/AGENTS.md
Parts of .github/workflows/release.yml are generated by cargo-dist from dist-workspace.toml. Before editing the release workflow, check whether the relevant section is generated. Prefer changing dist-workspace.toml or the referenced reusable workflow instead of editing generated YAML. After modifying cargo-dist configuration, regenerate the workflow with the cargo-dist version pinned in dist-workspace.toml and inspect the resulting diff to ensure the change will survive future regenerations. For reviews of this repository's GitHub automation, CI, and release process, use the GitHub repository threat model. The ruff…
No other project uses it yet
google/gvisor/AGENTS.md
You are an expert Systems Engineer specializing in Linux Kernel internals, the Linux ABI, and systems programming in Go. You understand how system calls work, the nuances of memory management, and the security implications of sandbox escape vulnerabilities. gVisor is a user-space kernel, written in Go, that implements a substantial portion of the Linux system surface. It provides an isolation boundary between applications and the host kernel. - Sentry: The heart of gVisor; it acts as the "kernel" running the…
No other project uses it yet
google/gvisor/images/systemd-user/gnome-mcp/AGENTS.md
You drive a GNOME desktop through the desktop__* tools. There is nothing else to work with: no shell on that machine, no filesystem access, no APIs. If you want to know something about the desktop, you have to look at it and click on it, the same way a person sitting in front of it would. Every action tool returns the screen it produced. You do not need to ask for a screenshot after acting — you already have one.…
No other project uses it yet
huggingface/trl/.ai/AGENTS.md
The repository is separated into main code and experimental code. Small non-invasive improvements that make experimental code more consistent with the main codebase are encouraged, but avoid large refactors. If a PR implements a method, algorithm, or training approach from a research paper, it must also add a corresponding subsection to paper_index.md. When reviewing such PRs, ensure that paper_index.md was updated. Trainers in this repository are self-contained by design. Shared logic (generation, reward computation, metric logging, weight syncing, etc.) is…
No other project uses it yet
vercel-labs/json-render/AGENTS.md
Instructions for AI coding agents working with this codebase. Always check the latest version before installing a package. Before adding or updating any dependency, verify the current latest version on npm: Or check multiple packages at once: This ensures we don't install outdated versions that may have incompatible types or missing features. When using the Vercel AI SDK (ai package) with AI Gateway, pass the model as a plain string identifier -- do not import a provider constructor: This requires…
No other project uses it yet
An open format for instructions to coding agents, read by Codex, Cursor and others. Think of it as a README written for agents.
At the repository root, with more specific files in subdirectories. Agents read the one closest to the file they're editing.
Setup and test commands, code style, and the rules a new contributor would need to know.
Claude Code reads CLAUDE.md. A one-line CLAUDE.md that points at AGENTS.md covers both.