AGENTS.mdA

AGENTS.md from datamodel-code-generator/datamodel-code-generator is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add datamodel-code-generator/datamodel-code-generator/AGENTS.md@git:20261101.5611121

Pins git:20261101.5611121 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
datamodel-code-generator/datamodel-code-generator
Path
AGENTS.md
Versions recorded
5
Latest version
git:20261101.5611121, committed Nov 1, 2026
First version recorded
Oct 20, 2026
Size
3,437 bytes
Repository stars
4,048
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

# Instructions for coding agents

See `docs/development-contributing.md` for the development setup and the test helpers. Run the commands below, and
the ones failures print, inside the development environment (`.tox/dev` from `tox run -e dev`, or prefix them with
`uv run` in a uv environment).

## Tests

- Add e2e tests with the existing helpers (`run_main_and_assert`, `assert_output`, ...); no expected path is needed.
- Never add or change an expected path to create, split, share or rename stored output: pytest names, shares and
  splits stored files itself.
- A module-local helper that takes a stored-output name does not change this rule: pass none.
- Run `pytest '<test>'` and commit every file it writes (`tests/data/expected/**`, `tests/**/*.refs`).
- To accept changed output: `pytest '<test>' --inline-snapshot=fix`.
- Never edit `.refs` or expected files by hand (each `.refs` file starts with a `# Generated by pytest` header);
  failures print the exact command to run.
- A CI failure that ends with `dcg-expected-fix:` is fixed by the `python scripts/fix_expected.py ...` command it prints.

## Adding an option
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add datamodel-code-generator/datamodel-code-generator/AGENTS.md@sha256:7c8ae478b7a86f55

The line at the top of this page pins the label git:20261101.5611121, 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_qpbgtsw4667ona6e.svg)](https://markdownregistry.com/a/art_qpbgtsw4667ona6e)

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

Versions

The registry has recorded 5 versions of this file, between Oct 20, 2026 and Nov 1, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
git:20261101.5611121 latest2026-11-01 5611121 3,437 BA view · diff
git:20261029.4cc34f22026-10-29 4cc34f2 3,343 BA view · diff
git:20261029.d3099592026-10-29 d309959 3,327 BA view · diff
git:20261020.72d5a312026-10-20 72d5a31 3,260 BA view · diff
git:20261020.a8f8f422026-10-20 a8f8f42 3,053 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 (3437 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

datamodel-code-generator/datamodel-code-generator · 4,048 stars · license MIT · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_qpbgtsw4667ona6e
GET https://markdownregistry.com/api/v1/resolve?ref=datamodel-code-generator/datamodel-code-generator/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/7c8ae478b7a86f55b5e9bac61caba3ad919d074256d4daa295d6190182e629f5

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 datamodel-code-generator/datamodel-code-generator

llms-full.txt@docs llms.txt file
datamodel-code-generator/datamodel-code-generator · docs/llms-full.txt
git:20261101.57e0b4f · audit C · 4,048 stars
llms.txt@docs llms.txt file
datamodel-code-generator/datamodel-code-generator · docs/llms.txt
git:20261028.47665fa · audit A · 4,048 stars
datamodel-code-generator SKILL.md skill
datamodel-code-generator/datamodel-code-generator · skills/datamodel-code-generator/SKILL.md · Use this skill when the user wants Python data models, Pydantic models, dataclasses, TypedDicts, msgspec structs, or…
git:20261031.e0f1f35 · audit A · 4,048 stars
preserved_skill SKILL.md skill
datamodel-code-generator/datamodel-code-generator · tests/data/expected/agent_skill/preserved_skill/SKILL.md
git:20260827.3dfce3c · audit C · 4,048 stars

Every file in datamodel-code-generator/datamodel-code-generator

Other files named AGENTS.md

AGENTS.md AGENTS.md file
morluto/rea · AGENTS.md
git:20261101.d684125 · audit A · 417,919 stars
AGENTS.md AGENTS.md file
obra/superpowers · AGENTS.md
git:20261020.b739a8a · audit A · 309,852 stars
AGENTS.md AGENTS.md file
affaan-m/ecc · AGENTS.md
git:20261030.f29e332 · audit A · 293,827 stars
AGENTS.md AGENTS.md file
firecrawl/firecrawl · AGENTS.md
git:20261008.5a75dca · audit A · 198,353 stars
AGENTS.md AGENTS.md file
dietrichgebert/ponytail · AGENTS.md
git:20261008.2a1fe84 · audit A · 182,080 stars
AGENTS.md AGENTS.md file
graphify-labs/graphify · AGENTS.md
git:20260926.98d73fe · audit A · 139,879 stars
AGENTS.md AGENTS.md file
garrytan/gstack · AGENTS.md
git:20261027.a50cf58 · audit A · 138,879 stars
AGENTS.md AGENTS.md file
juliusbrussee/caveman · AGENTS.md
git:20260902.d9faebc · audit A · 116,476 stars

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