AGENTS.md@pydantic-clai2A

AGENTS.md@pydantic-clai2 from pydantic/pydantic-ai-harness is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add pydantic/pydantic-ai-harness/pydantic-clai2/AGENTS.md@git:20260924.984d098

Pins git:20260924.984d098 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
pydantic/pydantic-ai-harness
Path
pydantic-clai2/AGENTS.md
Versions recorded
20
Latest version
git:20260924.984d098, committed Sep 24, 2026
First version recorded
Sep 17, 2026
Size
19,496 bytes
Repository stars
960
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# CLAI 2 guide for AI code assistants

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.

## What CLAI is

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:

| Layer | Owns | Never does |
|---|---|---|
| Pydantic AI core | the agent loop, hooks, events, toolsets | know CLAI exists |
| `pydantic_ai_harness` | reusable capabilities (`Coder`, `Shell`, ...) | print to a terminal |
| `pydantic_clai2` | the prompt loop, rendering, `/commands`, plugin loading | reimplement a core hook |

If a change needs the agent loop to behave differently, propose it in core. If it
is a reusable behavior with no terminal in it, it belongs in harness. Only the
shell itself lives here.

## The plugin model

A plugin is a module with `activate(host: PluginHost)`, or a bare capability
class. `@host.on(name)` registers a handler for a lifecycle moment;
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add pydantic/pydantic-ai-harness/pydantic-clai2/AGENTS.md@sha256:2e1d4683731fe785

The line at the top of this page pins the label git:20260924.984d098, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_v37eqir2vp5chvwp.svg)](https://markdownregistry.com/a/art_v37eqir2vp5chvwp)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 20 versions of this file, between Sep 17, 2026 and Sep 24, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260924.984d098 latest2026-09-24 984d098 19,496 BA view · diff
git:20260924.0d3e9a02026-09-24 0d3e9a0 19,391 BA view · diff
git:20260924.4a6824a2026-09-24 4a6824a 19,100 BA view · diff
git:20260921.6d022ae2026-09-21 6d022ae 18,628 BA view · diff
git:20260921.3b0110c2026-09-21 3b0110c 18,094 BA view · diff
git:20260921.7b0eed72026-09-21 7b0eed7 17,767 BA view · diff
git:20260920.1dbd72e2026-09-20 1dbd72e 17,653 BA view · diff
git:20260920.81949bf2026-09-20 81949bf 17,333 BA view · diff
git:20260920.23fa92b2026-09-20 23fa92b 15,941 BA view · diff
git:20260919.6f4f50e2026-09-19 6f4f50e 14,352 BA view · diff
git:20260919.047b7692026-09-19 047b769 13,963 BA view · diff
git:20260919.f2d328a2026-09-19 f2d328a 13,956 BA view · diff
git:20260918.f4e527b2026-09-18 f4e527b 13,726 BA view · diff
git:20260918.f6f02e62026-09-18 f6f02e6 13,416 BA view · diff
git:20260918.80eca9b2026-09-18 80eca9b 13,199 BA view · diff
git:20260918.9b3ef022026-09-18 9b3ef02 12,487 BA view · diff
git:20260917.53e6ee82026-09-17 53e6ee8 12,386 BA view · diff
git:20260917.77ac59b2026-09-17 77ac59b 11,973 BA view · diff
git:20260917.7fb89ff2026-09-17 7fb89ff 11,799 BA view · diff
git:20260917.94b1e0e2026-09-17 94b1e0e 11,105 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (19496 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

pydantic/pydantic-ai-harness · 960 stars · license MIT · pushed 2026-10-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_v37eqir2vp5chvwp
GET https://markdownregistry.com/api/v1/resolve?ref=pydantic/pydantic-ai-harness/pydantic-clai2/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/2e1d4683731fe7853b55494884c0d24d9e432b417a6be64814c5729ce6342908

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from pydantic/pydantic-ai-harness

adopt-pr SKILL.md skill
pydantic/pydantic-ai-harness · .agents/skills/adopt-pr/SKILL.md · Bootstrap branch-context on an existing PR. Writes issue-brief.md from the linked issue(s) + current PR state, and…
git:20260724.e60b555 · audit A · 960 stars
branch-context SKILL.md skill
pydantic/pydantic-ai-harness · .agents/skills/branch-context/SKILL.md · Branch-local durable PR state -- issue brief, decisions log, and session handoffs. Read the brief, decisions, and…
git:20260724.e60b555 · audit A · 960 stars
pushing-commits-to-the-repo SKILL.md skill
pydantic/pydantic-ai-harness · .agents/skills/pushing-commits-to-the-repo/SKILL.md · What to do when you open a PR and every time you push -- label the PR, watch CI to
git:20260804.d7e30e9 · audit A · 960 stars
AGENTS.md AGENTS.md file
pydantic/pydantic-ai-harness · AGENTS.md
git:20260918.f6f02e6 · audit A · 960 stars
CLAUDE.md CLAUDE.md file
pydantic/pydantic-ai-harness · CLAUDE.md
git:20260320.72a1052 · audit B · 960 stars
migrating-deep-agents-to-pydantic-ai-harness SKILL.md skill
pydantic/pydantic-ai-harness · pydantic_ai_harness/.agents/skills/migrating-deep-agents-to-pydantic-ai-harness/SKILL.md · Migrate Python LangChain Deep Agents applications to Pydantic AI and Pydantic AI Harness. Use when the source uses the…
git:20260915.ea12b7f · audit A · 960 stars
pydantic-ai-harness SKILL.md skill
pydantic/pydantic-ai-harness · pydantic_ai_harness/.agents/skills/pydantic-ai-harness/SKILL.md · Extend Pydantic AI agents with batteries-included capabilities from pydantic-ai-harness -- Code Mode (collapse many…
v0.1.0 · audit A · 960 stars

Every file in pydantic/pydantic-ai-harness

Browse by kind, by grade A, or by owner.