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.
- CLAUDE.mdCLAUDE.md
- cvat-guidelinesSkill
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
- Distinctive: line 3
Before writing or reviewing code in this repository, read the engineering guidelines.
- Distinctive: line 9
Never state a fact about code, libraries, databases, or performance that you have not checked in the current session.
- Distinctive: line 12
When asked "why?" about your change, answer with evidence.
- Distinctive: line 13
Do not construct a justification after the fact.
- Distinctive: line 14
Run what you change where it actually runs (PostgreSQL, both migration directions, the required services).
- Distinctive: line 19
Do only what was asked. Ask before changing the design, adding features, or reworking code that the task does not require.
- Distinctive: line 21
Before adding code, read the neighboring code, the existing abstractions, and the related docs.
- Very specific: line 24
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 …
- Very specific: line 28
When reworking your own earlier commits, do not keep compatibility with them, and do not mention them in code, docs, or the changelog.
- Distinctive: line 35
Check the diff against the guidelines, in particular:
- Distinctive: line 37
every added line has a reason (no unrequested branches, parameters, fallbacks, dead code).
- Distinctive: line 41
every comment and docstring is true and needed.
- Very specific: line 53
Do not use tool-specific prefixes such as claude/, codex/, or feature/.
- Very specific: line 54
Do not push, amend, or force-push unless explicitly asked.
- Distinctive: line 55
Do not commit the user's uncommitted work without asking.
- Distinctive: line 58
Do not rebase a branch whose PR is under review, unless asked.
≈ “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.
Files
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), otherwisedevelop. 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 asclaude/,codex/, orfeature/. - Do not push, amend, or force-push unless explicitly asked. Check
HEADbefore 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.
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
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.

