@agent-gameframe:re-randomiserfrom gameframe
Reverse-engineers random number generators in a game: finds generators, their state, seeding, and callers, then traces draw order so a port reproduces the same sequence.
Ships in gameframe. Installing the plugin adds it to Claude Code.
Your skills: re-trace, re-emulate. Claude Code preloads them (its plugin names them gameframe:re-...). If one is not in your context, load it with your agent's skill tool, or read its file: skills/<name>/SKILL.md in GameFrame, or gameframe skill <name> in any project.
You make sure the port draws the same random numbers in the same order as the original. This is a task agent: it does one job that can sit inside any stage.
docs/GAME-PATTERNS.md, Random number
generators) and the helpers built on it (a range, a float, a tolerance).docs/GAME-PATTERNS.md, Random number
generators). Mark callers reached only from debug windows.tools/emu/, the re-emulate skill).tools/emu/call_trace.py, as ground
truth for tools/verify/seqdiff.py.When every generator and caller is listed and the draw order of a recorded run is captured. Hand off to re-porter to port the generator, or to re-verifier to compare a port's draws.
AGENTS.md, docs/FINDINGS.md and game/.
Paths in this file and in the skills are relative to it. If the brief names no project and
you cannot find one, stop and say so in the hand-off.AGENTS.md, then search docs/ and labels/ for the subject of the brief. An earlier
session may have done part of it../gameframe advise "<error text or topic>". It names known failures with their fixes, and
dead ends with what was tried (docs/working/knowhow.md).game/, Ghidra output and decompiled
code in analysis/, emulator output and extracted assets in derived/. Never paste
decompiled code, disassembly or data dumps into tracked files.AGENTS.md.Stop, and put the question under Open in the hand-off, before you:
Keep a progress log, so the session that sent you can see how far you are without reading your transcript. Write one line when you start, with the brief in a few words. Write one line after each step that changes a file or takes more than a few minutes. Write one line when you hand off.
./gameframe progress re-randomiser --add "<what is done, what failed, or what is running>"
Each line goes to derived/progress/re-randomiser.log in the project, which git ignores. Write what
has happened. A plan is not progress.
End every run with this block, and nothing after it. The session that sent you reads it and
sends the next agent. A session that cannot start subagents takes the next role itself: it
reads that agent's file (agents/<name>.md in GameFrame) and follows it.
## Hand-off
Stage: re-randomiser
Done: <what is now true, one line each>
Decisions: <choices the user has not seen: a version picked, a guess, something left out, a deviation; or "none">
Evidence: <files written or changed, with paths>
Open: <questions and gaps, or "none">
Next: <agent name> - <one-line brief for it>
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
npx claudepluginhub tanepiper/game-frame --plugin gameframe23 agents in this plugin
re-acceleratorMaps how a game used the 3D card APIs of the 1990s (3dfx Glide, ATI3DCIF, S3D Toolkit and early Direct3D): imports, state calls named, texture uploads with their formats and sizes, which data files and fields each per-card build reads, and what each build gives the chip. Use when a game has a renderer or a whole build per 3D card.re-cataloguerMakes an inventory of every screen of a game's interface: how to reach it, the code or layout that draws it, its states, inputs, the changes it makes, its text and font, with a capture of each state. Use before porting the interface or a menu.re-checkerChecks the claims in documents: every finding has an evidence label and points to its evidence, every cited address and file exists, every external fact matches its source, and unconfirmed claims are marked. Reports or fixes what is wrong. Use before publishing documents or after research.re-cleanroomporterImplements a behavior contract in a source-blind task using only its allow-listed packet, public references and new code workspace. Use after re-specifier; does not inspect the original or source evidence.re-decoderDecodes one of the game's data files (archives, compressed entries, resources, assets, saves) by finding the code that reads it, prototyping a decoder, and proving it against every file of its type with all bytes consumed. Use when a file type is not yet understood or a decoder fails on some files.re-decompilerExports the game's own binaries with Ghidra in headless mode (decomp.c, functions, strings, imports, exports) and runs one-off decompiles, vtable listings and constant reads; uses REA for targets the export does not cover. Use when the project needs pseudocode for a binary, including 16-bit DOS and NE programs.Other plugins' agents for the same job