agentleFS
Hugging FaceKnown publisherhuggingface/diffusers/.ai/AGENTS.md

diffusers

AGENTS.md35k starsChanged 3 months agoApache-2.0View on GitHub

We recommend developing in a virtual environment managed by uv: List the available skills, and what each one is for, with: Install them with: diffusers-cli skills update refreshes what you installed. Skills used to be installed through the Makefile, which symlinked the project-level .claude/skills and .agents/skills at .ai/skills in this repo. Remove those links if they exist — otherwise the install writes through them into .ai/ itself: At the start of a session, confirm the setup and tell the user…

  • Installs packages

Trending

Quiet since September.about the whole repository

Dec 2025: 4 mentionsJan 2026: 3 mentionsFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 2 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the huggingface/diffusers repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about huggingface/diffusers

The biggest 5 of 38 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 38

Talked about on GitHub, Hacker News and Bluesky (38 times).

On GitHub · 31

26 more on GitHub

On Hacker News · 6

1 more on Hacker News
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository6 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before opening a PR, run self-review against review-rules.md.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Diffusers — Agent Guide

Setup

We recommend developing in a virtual environment managed by uv:

uv venv && source .venv/bin/activate
uv pip install -e .                       # provides diffusers-cli

List the available skills, and what each one is for, with:

diffusers-cli skills list

Install them with:

diffusers-cli skills add <skill name>      # install one, or --all for every skill
                                          # --claude / --codex / --cursor to pick one target

diffusers-cli skills update refreshes what you installed.

Skills used to be installed through the Makefile, which symlinked the project-level .claude/skills and .agents/skills at .ai/skills in this repo. Remove those links if they exist — otherwise the install writes through them into .ai/ itself:

rm -f .claude/skills .agents/skills

At the start of a session, confirm the setup and tell the user what you find:

python utils/check_ai.py                  # guides and skills are consistent
diffusers-cli skills list                 # which skills are installed

Claude Code and Codex can also install via plugins

claude plugin marketplace add huggingface/diffusers
claude plugin install diffusers@diffusers-skills --scope project

codex plugin marketplace add huggingface/diffusers    # then install from the Plugins Directory

Human in the loop

Everything a PR reviewer sees must come from a human, or be approved by one for the exact wording. That includes commit messages, code comments and docstrings, PR titles and descriptions, and any PR or issue comment, review, or reply. Ask whether the user wants you to draft that text or will write it themselves. Keep drafts short and easy to understand. When you hand one over, remind them to read it for real and check that it reads well for other humans.

  • Don't commit unless the user approved the exact commit message, and never push or open a PR on your own. The user decides when anything is published, each time.
  • Don't post to GitHub directly — no comments, reviews, or replies. Draft when asked and hand the text to the user.

Code formatting

  • make style and make fix-copies should be run before opening a PR

Reference guides

  • Coding style — see code_style.md for how code should read, and the # Copied from rules.
  • Models — see models.md for model conventions, attention pattern, implementation rules, dependencies, and gotchas. For adding or converting a model, use the model-integration skill.
  • Pipelines — see pipelines.md for pipeline conventions, patterns, and gotchas.
  • Modular pipelines — see modular.md for modular pipeline conventions, patterns, and gotchas.
  • Tests — see testing.md for test conventions: required test layers, tester mixins, and dummy-component rules.
  • Reporting — see reporting.md for how to write bug reports (what a reproduction is) and performance claims (end-to-end numbers first).

Skills

Task-specific guides live in .ai/skills/ and are loaded on demand by AI agents. Available skills include:

  • model-integration (adding/converting pipelines)
  • custom-blocks (packaging a ModularPipelineBlocks subclass for the Hub)
  • diffusers-cli (running pipelines, inspecting schemas, and using the Diffusers CLI)
  • self-review (pre-PR self-review against the project rules)

Self-review before a PR

Before opening a PR, run self-review against review-rules.md. The self-review skill runs this as the same pass the @claude CI reviewer uses. Share the final report on the PR (description or comment) — see the skill for details.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.