Skip to content

Docs: AGENTS.md for AI agents working on VIctory - #1741

Open
ThiagoAlexsander wants to merge 1 commit into
Marvisak:mainfrom
ThiagoAlexsander:docs/agents-md
Open

ThiagoAlexsander wants to merge 1 commit into
Marvisak:mainfrom
ThiagoAlexsander:docs/agents-md

Conversation

@ThiagoAlexsander

Copy link
Copy Markdown

Many contributors here work through coding agents, and much of the effort goes into duplicate or invisible work. Several fixes for the same problem appear at once, fixes sit as fork branches inside issue comments, and the same dead ends are found again. This adds an AGENTS.md (the file agents read at the start of a session) with what they need before they start.

Change

A new AGENTS.md, about 100 lines, covering:

  • The project: the crates, with pointers to README.md and docs/architecture.md.
  • Rule Possible Fixes #1: docs/asset-policy.md, the pre-commit hook, and the cargo-on-PATH pitfall on Windows.
  • Before writing code:
    • search PRs and issue bodies for existing work;
    • measure first: the translate --validate --list census compared program by program, and VICTORY_GPU_TIMING for the runtime;
    • check the existing VICTORY_ switches;
    • post a short plan on the issue.
  • Running the title unattended:
    • first-run screens persist after one pass;
    • VICTORY_KEYS and VICTORY_CAPTURE (diagnostics build);
    • stray pad or keyboard input skews comparison runs;
    • Windows' ~2 s TDR versus a real hang;
    • note the GPU vendor in every report.
  • Pull requests: what merged PRs here do, i.e. small and single-purpose; <Area>: <outcome> titles (areas from git log); a test that fails on main; CI's exact commands; required Not tested and AI use sections; no unmeasured numbers.
  • Sharing: the test-report format, posting dead ends with numbers, and no GitHub posts unless the person the agent works for asks.

The PR conventions are described as what merged PRs do, not as maintainer rules. Change anything that doesn't match how you want PRs here.

Testing

  • cargo xtask policy (pre-commit hook): 1 file ok.
  • Docs only: no code changes.

Not tested

Nothing to run; the content was checked against the repository at ffe310e (README switches, CI workflow, asset policy, git log title prefixes).

AI use: Claude Code (Claude Opus 5.5) wrote this from the repository and from a day of working in it; I reviewed it before opening the PR.

🤖 Generated with Claude Code

Many contributors work through coding agents. The file collects what
they need before starting: the asset policy, searching PRs and issue
bodies for existing work, measuring with the translate census and GPU
timing, running the title unattended, and the shape of PRs that get
merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@DenRakEiw DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verified locally merged onto origin/main (70564ae, Windows 11 x64):

  • cargo xtask policy — ok (asset policy: 176 files ok)

Clear, concise contributor guide in AGENTS.md. Note: PR #1707 also adds a root AGENTS.md, so whichever lands second will need a quick rebase/merge.

AI-assisted (Gemini 4 Neon).

@Calvix2k

Copy link
Copy Markdown
Contributor

Duplicate check: #1707 is an older AGENTS.md for the same #1698 request (claimed in #1633, with review feedback already applied: stop-and-ask rule, adapter/driver recording, CI “no checks reported”). Please consolidate on one file rather than merging both. Happy to fold anything this PR has that #1707 lacks into #1707, or close #1707 in favour of this one if you prefer — say which and I will do it.

@Calvix2k

Copy link
Copy Markdown
Contributor

Your draft is broader than #1707, so I am closing #1707 in favour of this one. Please fold in the three things it had from the review on #1707:

  1. Claim before coding: the coordination thread is Coordinating who works on what #1633 with CLAIMS.md; post claiming: <ID> first.
  2. When to stop and ask a person: a Needs human attention: <one line> line and the cases (asset-policy ambiguity, workflows/build/xtask/releases, architecture decisions, conflicting claims, non-reproducible results, running code or merging for someone else).
  3. Measurements/CI: record adapter and driver (DXGI's default can be the iGPU; the selector from GPU: adapter choice and logging, presenter backoff, a texture-description ladder, and a display-deferral test a headless session can pass #1630 is VICTORY_D3D12_ADAPTER), and note that "no checks reported" on a first-time contributor's PR means waiting for approval, not passing.

Everything else in your file is good.

Copy link
Copy Markdown
Owner

Automated triage for the maintainers.

Needs work: needs the maintainer's decision. This adds a 91-line AGENTS.md of instructions addressed to AI agents. It sets contributor process the maintainer has not adopted: required PR sections, title format, "post a plan first", rules on when to post. The repository keeps docs short, and process rules are the maintainer's call. A comment here also proposes a claims process based on a CLAIMS.md in a contributor's fork; that would be an external coordination scheme and should not be folded in without the maintainer. Any useful facts (switches, the asset-policy hook) could go briefly into README.md instead. CI has not run.


Generated by Claude Code

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants