# Agents working together Many contributors work through a coding agent, each on its own machine. This page is how those agents share work without their humans briefing them: where they read and write, which machine takes which kind of work, four blocks with fixed fields, and how sure a claim is. It adds to [CONTRIBUTING.md](../CONTRIBUTING.md) and [AGENTS.md](../AGENTS.md) and replaces nothing in them. No game data is included. ## GitHub is the shared memory - GitHub is the one place every agent reads. What every agent should know (a result, a decision, a request for a test) is written in the coordination issue, in a pull request comment or under `docs/`; what is written elsewhere does not exist for the other agents. - At the start of a session an agent reads the coordination issue and the open pull requests of its topic ([AGENTS.md](../AGENTS.md#claim-before-you-start)), then [running.md](running.md) and [`gpu-test-results/`](../gpu-test-results). - The coordination issue has a comment cap and moves to a new thread when full. A block goes on the pull request or issue it is about; only run reports ([running.md](running.md#reporting)) and `claiming:` / `done:` / `finding:` lines go in the coordination issue. ## Each machine does what only it can do | Profile | Machine | Work it is best placed for | |---|---|---| | L | 24 GB of video memory or more | Long runs into the world, the large ray-tracing programs described in [running.md](running.md), the control arm of an A/B test | | M | 8 GB to under 24 GB | Stalls and timing limits, such as the driver's time on pipeline creation (reported by others on one 8 GB laptop card: [#2415, comment](https://github.com/ProjectLeonida/mandy/pull/2415#issuecomment-7206470912)), reproducing a reported failure, what fails when video memory is short | | S | Integrated, older, Intel, Apple | The GPU test suite ([testing.md](testing.md)) and a file in `gpu-test-results/`, driver-specific problems | | F | Several GPUs in one machine | Disjoint shards and pull request checks ([multi_gpu_validation.md](multi_gpu_validation.md)) | | Z | No free GPU, or one busy with a long run | The translator suite, unit tests, docs, tools, pull request review | - Outside the tests of its own pull requests (`GPUs tested:`), a large card's time goes to profile L work. - Work outside your profile is handed over as a `finding:` that names the profile it needs; AGENTS.md already asks a `finding:` to say whether it needs game files or particular hardware. - While a long run holds the GPU, the agent takes profile Z work instead of waiting. - Add the profile to `GPUs tested:` in a pull request, so a reviewer sees which profile has not run it. - M is wide: say the video memory and whether it is a laptop, since an 8 GB laptop and a 16 GB desktop card behave differently. A laptop with an integrated and a discrete GPU has the profile of its discrete GPU; it is not F. ## Four blocks Each block starts with its prefix (`AGENT-MSG`, `RUN`, `PICTURE`, `TEST-WANTED`) so a search finds it, and says it is AI-assisted. Values only: no shader or program names, addresses, local paths or raw log lines. A message from one agent to another: ``` AGENT-MSG | | | AI-assisted: BASE: + + MACHINE: | | | RECIPE: documented (running.md, "
") + DEVIATIONS: , or none ASK: RETURNED: RUNS: , or "0, read-only" EVIDENCE: ``` `RECIPE` shortens what [running.md](running.md#reporting) asks for: every `LEONIDA_*` variable that differs from the section named, or from the defaults where that section says TBD. Never the watchdog's values. A run on a profile that section does not cover says so: a recipe checked on one profile can behave differently on another. A run of the game, in the fields of [running.md](running.md#reporting) in a fixed order, plus the prediction, how the run ended, the caches, the rank of the run and the diagnostic instruments: ``` RUN | | | AI-assisted: BASE: + | shaders: MACHINE: | | | RECIPE: documented ("
") + DEVIATIONS: | precompile: OS/DRIVER: TARGET: | PREDICTED (written before the run): MEASURED: | duration | frame rate END: