Skip to content

Add setup, checks, and repo layout to AGENTS.md#2520

Open
Zandereins wants to merge 1 commit into
huggingface:mainfrom
Zandereins:docs/agents-md-operational-info
Open

Add setup, checks, and repo layout to AGENTS.md#2520
Zandereins wants to merge 1 commit into
huggingface:mainfrom
Zandereins:docs/agents-md-operational-info

Conversation

@Zandereins

Copy link
Copy Markdown

What

Adds setup, the two CI-enforced checks, and the repo layout to AGENTS.md.

Why

AGENTS.md is the file coding agents load on startup. Today it holds three style rules and no operational information, so an agent working from it alone doesn't know how to install the package, how to run the tests, or that make style exists — it will hand-format code and open PRs that fail make quality.

Everything added is taken from the repo's own sources, not invented:

  • pip install -e ".[dev]"CONTRIBUTING.md
  • make quality / make style / make testMakefile, and the same commands run in .github/workflows/quality.yml and tests.yml
  • Python 3.10+ and the 3.10 / 3.12 CI matrix — pyproject.toml and tests.yml
  • line length 119, ruff E/F/I/W, isort first-party — [tool.ruff] in pyproject.toml

The three existing guidelines are kept verbatim; the change is additive.

Note

This PR was authored by an AI agent (Claude Code), disclosing it since the diff is about instructions for agents.


Context: found while running a deterministic quality survey of AGENTS.md files across major agent repos — smolagents scored 50/100, entirely for missing operational content. Happy to share the method if it's useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant