agentleFS
cvat-aicvat-ai/cvat/AGENTS.md

cvat

AGENTS.md17k starsChanged 6 days agoMITView on GitHub

Before writing or reviewing code in this repository, read the engineering guidelines. They apply to all code here. The rules below are additional, for agents. - Never state a fact about code, libraries, databases, or performance that you have not checked in the current session. If you are inferring, say so — in chat as well. Unchecked statements never go into code, comments, docs, commit messages, or PR text. - When asked "why?" about your change, answer with evidence. Do…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 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 repository2 other files it gives its agents.

The file

Show its rules and text

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

16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before writing or reviewing code in this repository, read the engineering guidelines.

    line 3
  2. Distinctive:

    Never state a fact about code, libraries, databases, or performance that you have not checked in the current session.

    line 9
  3. Distinctive:

    When asked "why?" about your change, answer with evidence.

    line 12
  4. Distinctive:

    Do not construct a justification after the fact.

    line 13
  5. Distinctive:

    Run what you change where it actually runs (PostgreSQL, both migration directions, the required services).

    line 14
  6. Distinctive:

    Do only what was asked. Ask before changing the design, adding features, or reworking code that the task does not require.

    line 19
  7. Distinctive:

    Before adding code, read the neighboring code, the existing abstractions, and the related docs.

    line 21
  8. Very specific:

    Do not answer questions or report your edits in comments (# Changed to X as requested, # No longer uses Y): answer in the chat, and explain …

    line 24
  9. Very specific:

    When reworking your own earlier commits, do not keep compatibility with them, and do not mention them in code, docs, or the changelog.

    line 28
  10. Distinctive:

    Check the diff against the guidelines, in particular:

    line 35
  11. Distinctive:

    every added line has a reason (no unrequested branches, parameters, fallbacks, dead code).

    line 37
  12. Distinctive:

    every comment and docstring is true and needed.

    line 41
  13. Very specific:

    Do not use tool-specific prefixes such as claude/, codex/, or feature/.

    line 53
  14. Very specific:

    Do not push, amend, or force-push unless explicitly asked.

    line 54
  15. Distinctive:

    Do not commit the user's uncommitted work without asking.

    line 55
  16. Distinctive:

    Do not rebase a branch whose PR is under review, unless asked.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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

Instructions for AI agents

Before writing or reviewing code in this repository, read the engineering guidelines. They apply to all code here. The rules below are additional, for agents.

Claim only what you have checked

  • Never state a fact about code, libraries, databases, or performance that you have not checked in the current session. If you are inferring, say so — in chat as well. Unchecked statements never go into code, comments, docs, commit messages, or PR text.
  • When asked "why?" about your change, answer with evidence. Do not construct a justification after the fact.
  • Run what you change where it actually runs (PostgreSQL, both migration directions, the required services). Report what you did not run.

Stay in scope

  • Do only what was asked. Ask before changing the design, adding features, or reworking code that the task does not require. An ambiguous reply is not approval.
  • Before adding code, read the neighboring code, the existing abstractions, and the related docs. Update the comments and docs your change makes outdated.
  • Code comments are for future readers of the code, not for the user you are talking to. Do not answer questions or report your edits in comments (# Changed to X as requested, # No longer uses Y): answer in the chat, and explain the change in the commit message.
  • A branch is a single change against its target branch as a whole (git diff <target>...HEAD); its intermediate commits are not part of the result. When reworking your own earlier commits, do not keep compatibility with them, and do not mention them in code, docs, or the changelog. To find the target branch, use the PR base (gh pr view --json baseRefName), otherwise develop. If the branch may be stacked on another feature branch, ask.

Self-review before reporting done

Check the diff against the guidelines, in particular:

  • every added line has a reason (no unrequested branches, parameters, fallbacks, dead code);
  • the change extends existing abstractions instead of adding parallel ones; if it replaces one with a better abstraction, the existing uses are migrated to it (or the migration is planned as a follow-up PR);
  • every comment and docstring is true and needed;
  • enums / named constants instead of raw strings; impossible paths fail loudly, following the conventions of the component;
  • type hints on added and changed functions;
  • tests go through the public API.

Git

Defaults, unless the user says otherwise:

  • Name new branches <prefix>/<feature-name> (e.g. zm/fix-webhook-tests), where the prefix is the user's personal one. Take it from the user's existing branches, or ask. Do not use tool-specific prefixes such as claude/, codex/, or feature/.
  • Do not push, amend, or force-push unless explicitly asked. Check HEAD before amending.
  • Do not commit the user's uncommitted work without asking.
  • Split commits by logical change: refactoring first, then the feature; generated files after the sources.
  • Do not rebase a branch whose PR is under review, unless asked.
  • For changes or test runs that must not touch the current working tree, use a separate git worktree.

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.