pydantic-ai: Settings file for Claude Code

.claude/settings.json

pydantic-ai is a settings file for Claude Code from pydantic/pydantic-ai. Its token cost is not measured, scanned A, original, MIT.

A settings file that lists which shell commands the coding agent may run.

In plain words
What is it for?
It allows common file searches, Git and GitHub checks, Python type checks with Pyright, and Make commands.
Why use it?
It limits the agent to approved commands, making its actions easier to control and review.

Settings file for Claude Code

Written for Claude Code: installed under .claude/.

This is pydantic/pydantic-ai's own configuration. It tells Claude Code how to work on pydantic-ai itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pydantic-ai configures →

▶ Pydantic AI 2.0: The New Best Way to Build AI Agents is Composing Capabilities Cole Medin · about pydantic-ai · on YouTube →
About the project

Pydantic AI is a typed Python SDK for building AI agents that can use different language models and interfaces, including voice, image generation, and embeddings. Developers use it for applications ranging from structured data extraction to long-running multi-agent work. The catalogue entries provide workflows and configuration for its coding-agent and harness features.

pydantic/pydantic-ai · 20,771 stars · on GitHub · pydantic.dev

Reuse

Borrowing it

Nothing to install: this file belongs to pydantic/pydantic-ai. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pydantic/pydantic-ai/main/.claude/settings.json
Clone the repo
git clone --depth 1 https://github.com/pydantic/pydantic-ai

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pydantic-ai

README.md
[![agentmods](https://agentmods.dev/badge/settings/pydantic/pydantic-ai/settings/github.svg)](https://agentmods.dev/settings/pydantic/pydantic-ai/settings)
Your own site
<a href="https://agentmods.dev/settings/pydantic/pydantic-ai/settings"><img src="https://agentmods.dev/badge/settings/pydantic/pydantic-ai/settings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pydantic-ai

Your own site · 80×15
<a href="https://agentmods.dev/settings/pydantic/pydantic-ai/settings"><img src="https://agentmods.dev/badge/settings/pydantic/pydantic-ai/settings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

pydantic-ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/settings.json · 28 lines

What it actually says

{
  "permissions": {
    "allow": [
      "Bash(rg:*)",
      "Bash(ls:*)",
      "Bash(tree:*)",
      "Bash(grep:*)",
      "Bash(git log:*)",
      "Bash(git diff:*)",
      "Bash(git grep:*)",
      "Bash(git show:*)",
      "Bash(git status:*)",
      "Bash(gh pr view:*)",
      "Bash(gh pr checks:*)",
      "Bash(gh pr list:*)",
      "Bash(gh pr diff:*)",
      "Bash(gh issue view:*)",
      "Bash(gh issue list:*)",
      "Bash(gh run view:*)",
      "Bash(gh run list:*)",
      "Bash(uv run:*)",
      "Bash(uv run pyright *)",
      "Bash(PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright *)",
      "Bash(make:*)"
    ]
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 28 lines scan A c518171f7e9e

Subscribe to this mod's changes

pydantic-ai is a settings file published in the GitHub repository pydantic/pydantic-ai (20,771 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.