huggingface/transformers

GitHub
https://github.com/huggingface/transformers

🤗 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.

Stars:
168.5k
Language:
Python
Default branch:
main
Last scored:
Overall

At a glance

Rank
#172 of 401
Top 43% · #36 of 56 Python repos
Checks passed
8 of 17
Full list below
Best set up for
Claude Code
Score 78.0
Needs most work for
Cursor
Biggest fix: Cursor rules (.cursor/rules) (+11.5 pts)

What it has

What it's missing

What to fix first

Pick an AI agent

Showing fixes for Claude Code

  1. 1
    Type configuration
    Add a type config (tsconfig.json for JS/TS, mypy.ini or pyrightconfig.json for Python). Rust/Go/JVM/Scala/Swift/C#/OCaml/Haskell/Zig are typed by default.
    +7.9 pts
  2. 2
    Pre-commit / git hooks
    Set up pre-commit (.pre-commit-config.yaml), husky, or lefthook to run format+lint on every commit.
    +5.3 pts
  3. 3
    Manageable size
    If possible, split into smaller modules or carve out a focused entry path. Document where to start in AGENTS.md.
    +5.3 pts

Score for each AI agent

Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →

Claude Code
#144 of 401
78.0
  • ✓AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ~Reproducible dev env
Kimi Code CLI
#149 of 401
74.3
  • ✓AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ✓Dependency manifest
Pi
#147 of 401
73.6
  • ✓AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ✓Linter / formatter config
Codex
#170 of 401
73.3
  • ✓AGENTS.md / CLAUDE.md
  • ✓README
  • ✓Test suite
Devin
#184 of 401
70.5
  • ~Reproducible dev env
  • ✓Dependency manifest
  • ✓Test suite
Aider
#171 of 401
68.0
  • ✗.aider.conf.yml
  • ✓Linter / formatter config
  • ✓Test suite
OpenHands
#193 of 401
66.4
  • ✓CI configuration
  • ✓Dependency manifest
  • ~Reproducible dev env
Gemini CLI
#204 of 401
64.0
  • ✗GEMINI.md
  • ✓README
  • ✓Test suite
Cursor
#207 of 401
63.6
  • ✗Cursor rules (.cursor/rules)
  • ✓README
  • ✗Type configuration

Does huggingface/transformers have agent instructions?

An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.

AGENTS.md / CLAUDE.md
AGENTS.md (new tab) · 3,262 characters
Agent-specific files
None: no GEMINI.md, .cursor/rules, .openhands/setup.sh, .aider.conf.yml or .agents/skills
Repos that have one
29 of 56 Python repos · 221 of 401 repos on the leaderboard · See examples →

All 17 checks · 8 passed

No .agents/skills/<name>/SKILL.md
Substantive (3,262 characters)
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
63 GitHub Actions workflows
CONTRIBUTING guide· 100% pass
Guide present
No .cursor/rules/*.mdc or .cursorrules
Manifest present
Has Makefile
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 100% pass
License present
Configured in pyproject.toml
No .openhands/setup.sh
No pre-commit / husky / lefthook found
README· 100% pass
README detailed (16,900 characters)
Manageable size· 20% pass
6586 files — very large
Test suite· 100% pass
Found /tests
No type config found

How huggingface/transformers compares

vs leaderboard average
3.4 pts above
Average 66.8
vs Python average
0.8 pts below
Average 71.0
Stars among Python repos
#2 of 56

Missing here, and how many repos have it

  • Type configuration · passed by 68% of leaderboard repos, 57% of Python repos
  • Pre-commit / git hooks · passed by 29% of leaderboard repos, 71% of Python repos
  • Skills (.agents/skills) · passed by 17% of leaderboard repos, 20% of Python repos

One fix for the most agents: Type configuration would raise the score for all 9 agents, by up to 11.5 points.

Similar repos

Same language and host as this repo, closest in overall score.

All Python repos →

Same topics, any language

Repos tagged with the same GitHub topics, most shared first.

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/huggingface/transformers
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/huggingface/transformers.svg)](https://agentfriendlycode.com/repo/github/huggingface/transformers)

Check the score on every pull request

A GitHub Action posts one comment per pull request with how the score changed and why.