Skip to content

[Internal] Update AGENTS.md#4110

Merged
Wauplin merged 4 commits intomainfrom
update-agents-md
Apr 15, 2026
Merged

[Internal] Update AGENTS.md#4110
Wauplin merged 4 commits intomainfrom
update-agents-md

Conversation

@Wauplin
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin commented Apr 15, 2026

This PR updates AGENTS.md with instructions that I usually give to my local Claude. I think they can be relevant to everyone else.

In particular:

  • adding specifics about how to deal with the CLI since it's one of the main focus at the moment. Especially:
    • mention out.xxx in detail and nudge the agent to add some nice out.hints to new commands
    • do not try/catch errors in most cases
    • update CLI guide + CLI package reference + any relate guide
    • CLI tests should not cover everything, just the main use cases
  • some instructions around PRs and commit messages (casual, explicit [Topic] in title, etc.)

I also removed parts that felt useless for an AGENTS.md or not relevant for what we work on at the moment.

Any suggestion welcome!


Note

Low Risk
Low risk: documentation-only changes that do not affect runtime behavior. Risk is limited to potentially incorrect guidance for future contributors.

Overview
Updates AGENTS.md to emphasize CLI-focused development conventions, including how to structure Typer command groups, reuse standard option types, and use the out output helpers (including confirmations and hints).

Adds contribution guidance around destructive operations, user-facing error handling via CLIError, generated CLI docs regeneration, minimal CLI test expectations, and new conventions for commit/PR titles and descriptions, plus general Python 3.10+ style recommendations.

Reviewed by Cursor Bugbot for commit c863a4d. Bugbot is set up for automated code reviews on this repo. Configure here.

@Wauplin Wauplin requested a review from hanouticelina April 15, 2026 13:34
@bot-ci-comment
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Copy Markdown
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! I also have locally this section:

## Code conventions

### Simplicity is the #1 priority

- No premature abstractions. No unnecessary generalization.
- Don't implement features until they're actually needed.
- Don't accept parameters without a use case.
- No redundant `try`/`except` - don't catch errors already handled up the call stack.
- Prefer strictness now, relax later.

### Follow Python 3.10+ idioms

- `match`/`case` over `if`/`elif` chains when dispatching on a value.
- `str | None` not `Optional[str]`.
- f-strings over `.format()` or `%`.
- Walrus operator (`:=`) when it improves readability.
- Comprehensions over `map`/`filter` with lambdas.

Comment thread AGENTS.md
Comment thread AGENTS.md Outdated
Wauplin and others added 2 commits April 15, 2026 16:21
@Wauplin
Copy link
Copy Markdown
Contributor Author

Wauplin commented Apr 15, 2026

Good idea about the code conventions! I've added it at the bottom of AGENTS.md + included yours 2 suggestions. Let's get this merged

@Wauplin Wauplin merged commit 0cbf4dc into main Apr 15, 2026
19 of 20 checks passed
@Wauplin Wauplin deleted the update-agents-md branch April 15, 2026 14:23
@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.11.0 release.

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.

2 participants