huggingface/diffusers

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

🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.

  • deep-learning
  • diffusion
  • flux
  • image-generation
  • image2image
  • image2video
  • latent-diffusion-models
  • pytorch
  • qwen-image
  • score-based-generative-modeling
  • stable-diffusion
  • stable-diffusion-diffusers
  • text2image
  • text2video
  • video2video
Stars:
34.9k
Language:
Python
Default branch:
main
Last scored:
Overall

At a glance

Rank
#146 of 401
Top 36% · #31 of 56 Python repos
Checks passed
8 of 17
Full list below
Best set up for
Claude Code
Score 80.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
    Reproducible dev env
    Add a Makefile or devcontainer or Dockerfile so the agent can set up the project in one command.
    +3.6 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
#125 of 401
80.0
  • ✓AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ~Reproducible dev env
Kimi Code CLI
#139 of 401
75.9
  • ✓AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ✓Dependency manifest
Pi
#135 of 401
75.6
  • ✓AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ✓Linter / formatter config
Codex
#151 of 401
75.2
  • ✓AGENTS.md / CLAUDE.md
  • ✓README
  • ✓Test suite
Devin
#154 of 401
72.6
  • ~Reproducible dev env
  • ✓Dependency manifest
  • ✓Test suite
Aider
#156 of 401
69.7
  • ✗.aider.conf.yml
  • ✓Linter / formatter config
  • ✓Test suite
OpenHands
#155 of 401
68.5
  • ✓CI configuration
  • ✓Dependency manifest
  • ~Reproducible dev env
Gemini CLI
#181 of 401
65.7
  • ✗GEMINI.md
  • ✓README
  • ✓Test suite
Cursor
#192 of 401
64.9
  • ✗Cursor rules (.cursor/rules)
  • ✓README
  • ✗Type configuration

Does huggingface/diffusers 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) · 4,082 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 (4,082 characters)
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
35 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 (14,579 characters)
Manageable size· 50% pass
2976 files — large
Test suite· 100% pass
Found /tests
No type config found

How huggingface/diffusers compares

vs leaderboard average
5.2 pts above
Average 66.8
vs Python average
1.0 pts above
Average 71.0
Stars among Python repos
#38 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/diffusers
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/huggingface/diffusers.svg)](https://agentfriendlycode.com/repo/github/huggingface/diffusers)

Check the score on every pull request

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