agentreadme

Report ยท marked 27 Aug 2026

huggingface/transformers

An agent can work here, but it will waste turns finding its footing.

Python ยท 164,477 stars ยท 6,453 files ยท branch main

Fix these first

01
Instruction quality
Worth fixing: it's under 200 characters, which is closer to a placeholder than instructions; it never states a build, test, or run command; has no headings to structure it; has no code blocks.
02
Deterministic install
Commit the lockfile your package manager generates. Without it, an agent's install and your install are different builds, and 'works on my machine' becomes unfalsifiable.
03
File sizes fit in context
A single file that fills the context window forces an agent to work from fragments, and it will confidently edit code it never saw. Splitting the worst offenders pays for itself immediately.

The full marking

Every deduction below names the file or setting it came from.

Instructions 15/27 B-

Whether the repo tells an agent how to behave before it starts guessing.

โœ“Agent instruction file 12/12
AGENTS.md is present, which is the format the most tools read.
Also found: CLAUDE.md, Copilot instructions
โœ—Instruction quality 0/12
Present but too thin to change an agent's behavior.
Worth fixing: it's under 200 characters, which is closer to a placeholder than instructions; it never states a build, test, or run command; has no headings to structure it; has no code blocks.
โœ“README as an entry point 3/3
README has a clear getting-started section.
Setup 6/14 C

Whether an agent can install the project and get it running without a human.

โœ—Deterministic install 0/6
No lockfile. An agent installing dependencies may not get what CI got.
Commit the lockfile your package manager generates. Without it, an agent's install and your install are different builds, and 'works on my machine' becomes unfalsifiable.
โœ“Discoverable commands 6/6
Commands are declared where an agent will look for them.
Makefile
scripts/ directory
โ€“Environment config n/a
Not applicable โ€” this reads as a library, with no environment to configure.
โœ—Pinned runtime version 0/2
No pinned runtime version.
Add a .nvmrc, .python-version, or equivalent so the agent's toolchain matches yours.
โ€“Reproducible environment n/a
Not applicable โ€” a library doesn't need a container to be worked on.
Verification loop 24/25 A+

Whether an agent can check its own work. This is the category that most decides whether agent output is trustworthy.

โœ“Tests exist 8/8
1725 test files against 4801 source files.
e.g. .github/workflows/extras-smoke-test.yml, examples/pytorch/test_accelerate_examples.py, examples/pytorch/test_pytorch_examples.py
โœ“Test command is discoverable 7/7
An agent can find and run `make test`.
โœ“Continuous integration 4/4
57 GitHub Actions workflows define what "passing" means.
โœ“Lint and format rules 3/3
pyproject.toml encodes the house style.
โœ—Static type checking 2/3
Type checking is configured, but not in strict mode.
A type checker gives an agent an error message instead of a runtime surprise. It's the second-fastest feedback loop after the compiler.
Context economy 9/20 C

Whether the repo fits in a context window, or fights it.

โœ“No committed build output 6/6
No generated directories committed.
โœ“.gitignore hygiene 3/3
.gitignore covers 102 patterns.
โœ—File sizes fit in context 0/6
65 source files are over 100KB.
A single file that fills the context window forces an agent to work from fragments, and it will confidently edit code it never saw. Splitting the worst offenders pays for itself immediately.
tests/test_modeling_common.py โ€” 307KB
tests/generation/test_utils.py โ€” 277KB
src/transformers/modeling_utils.py โ€” 265KB
โœ—Repository weight 0/5
About 507MB checked out. Large enough that cloning and searching are both slow.
Large binaries and vendored trees slow every operation an agent performs. Git LFS or a separate assets repo keeps the working tree navigable.

Here is your AGENTS.md

Drafted from what is actually in this repository: the install command from your lockfile, the commands you already declare, your real directory layout. Anything marked TODO needs a person. Save it at the root as AGENTS.md.

AGENTS.md โ€” drafted for huggingface/transformers
# AGENTS.md

๐Ÿค— Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training. 

## Setup

```
# TODO: the install command. No lockfile was found, so this could not be inferred.
```

## Commands

```
make style
make typing
make check-code-quality
make check-repo
make fix-repo
make test                 # run the test suite, must pass before any commit
```

## Layout

- `src/`       2966 source files
- `tests/`     1625 source files
- `examples/`  100 source files
- `utils/`     78 source files
- `docs/`      11 source files
- `benchmark/` 6 source files

## Conventions

- Tests live alongside the code they cover, following `.github/workflows/extras-smoke-test.yml`.
- CI defines what passing means. See `.github/workflows/add-model-like.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `tests/test_modeling_common.py` is 307KB. It will not fit comfortably in context, so read it in parts.
- No lockfile is committed, so an install here may not match what CI produced.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.

Open the raw markdown  or  curl -o AGENTS.md agentreadme.com/draft/huggingface/transformers.md

Show the mark

The badge re-checks daily, so it keeps up as the repository changes. Use mark again to force it now.

agent ready 67 out of 100

[![agent ready](https://agentreadme.com/badge/huggingface/transformers.svg)](https://agentreadme.com/huggingface/transformers)

Other Python repositories, marked

vinta/awesome-python 81 A- NousResearch/hermes-agent 84 A- TheAlgorithms/Python 66 B yt-dlp/yt-dlp 54 C+ Significant-Gravitas/AutoGPT 63 B microsoft/markitdown 46 C

All Python repositories

Think this mark is wrong?

Every deduction above names the file it came from, so this can be settled by looking. If a check missed something, that is a rule worth fixing.

Open an issue, already filled in