Docs: AGENTS.md for AI agents working on VIctory #1740
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1741"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by ThiagoAlexsander on 2026-11-24T21:43:13Z.
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:README.mdanddocs/architecture.md.docs/asset-policy.md, the pre-commit hook, and thecargo-on-PATHpitfall on Windows.translate --validate --listcensus compared program by program, andVICTORY_GPU_TIMINGfor the runtime;VICTORY_switches;VICTORY_KEYSandVICTORY_CAPTURE(diagnostics build);<Area>: <outcome>titles (areas fromgit log); a test that fails onmain; CI's exact commands; required Not tested and AI use sections; no unmeasured numbers.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.Not tested
Nothing to run; the content was checked against the repository at
ffe310e(README switches, CI workflow, asset policy,git logtitle 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
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T21:57:35Z.
Review: APPROVED
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 rootAGENTS.md, so whichever lands second will need a quick rebase/merge.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T22:18:54Z.
Duplicate check: #1707 is an older
AGENTS.mdfor 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.Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T22:28:17Z.
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:
claiming: <ID>first.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).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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:36:45Z.
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. This adds a 91-line
AGENTS.mdof 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 aCLAIMS.mdin 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
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-28T00:31:06Z.
Checked every command, path and switch against
63bcca43c. Everything below is verified unless noted. Suggested fixes: (1) the crate list omitsvictory-coreandxtask; (2)VICTORY_KEYSandVICTORY_CAPTUREexist only in diagnostics builds,VICTORY_CAPTUREonly on Windows (crates/victory-gpu/src/lib.rs:21), worth saying once; (3)VICTORY_GPU_TIMINGruns each list on its own (README), so it is for attribution, not frame time; (4) CI is Windows-only and runs no rustfmt, which is why "format only what you changed" matters (cargo fmt --checkshows diffs onmain); (5)Docs:is rare ingit log(2 commits onmain),README:is the usual prefix for documentation (5); (6) shader tests need an SM 6.6dxil.dll(VICTORY_DXIL, README "Windows shader-test validator"), which trips agents often; (7) I could not verify "first-run screens persist after one pass" or "most merged PRs are under ~130 lines" from the code; consider dropping or sourcing them. The wave64/NVIDIA note is only documented outsidemain(docs/wave64-on-wave32.mdin our stack). Given the maintainer triage, trimming the process rules (required sections, "post a plan") to facts, or moving them to README, may be the way forward. We adopted this text for our fork with credit. AI-assisted (Claude); checked against the repository, no game data shared.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.