gp commands
llms.txtlists every page for an agent
Generated from gp’s own commands by gp self docs; just check fails if it differs. Edit the commands, not this file.
The public set
Section titled “The public set”For making and playing games: what a person installing gp uses.
| Command | What it does |
|---|---|
gp assets find |
Find a game’s assets in any dump of it: another header, revision, region or re-release, at any offset in any bank. Each template of the game (its template.game) is compared by the content its asset map holds (gp assets hash), the model is picked by the program found, and each asset is reported found unchanged (where), found with small changes (where and how much) or missing. A ROM the ROM no game’s roms.toml knows gets a draft entry (docs/sources.md) |
gp assets hash |
Write each span’s content into the ROM’s asset map: its BLAKE3, its length and a fingerprint of each 16 bytes (hashes, not ROM data), after the map’s last asset. gp assets find finds the spans in other dumps by it (docs/assets.md, “Content”) |
gp assets lift |
Decode a ROM’s assets into files: tiles as indexed PNG, palettes, metatiles, levels, tables, text and pointer tables as TOML, object lists and music as directories of TOML files, plus the asset map as assets.toml. The map is the one for the ROM’s hash in $GP_ASSETS, or in the tool repo’s and each game’s assets/, unless one is given |
gp assets open |
Edit an entity’s sprite set in an external pixel editor (docs/sprite-editing.md). It writes the set in the image config’s layout and starts the editor if it’s installed (Pixelorama first; nothing is downloaded), then brings each save back through every edit check as a proposal in the copy’s history (or placed, with --place) |
gp assets pack |
Encode a lifted directory back into ROM bytes and compare them with a ROM: the round-trip check, which exits 1 naming each asset and offset that differs. Nothing is written |
gp assets proposal accept |
The person’s ACCEPT, from a terminal: place the edit in the copy with every check. The page’s ACCEPT does the same. Refused to an agent. Example: gp assets proposal accept my_hop-3 |
gp assets proposal list |
The sprite edits the agent proposed for your copies (those under $GP_HOME/work/mcp/): open ones still waiting, then the ones you answered (accepted, rejected with your words, or put back), newest first. Example: gp assets proposal list |
gp assets proposal reject |
The person’s REJECT, from a terminal: drop the edit; the agent hears your words. Refused to an agent. Example: gp assets proposal reject my_hop-3 –words “a green cap” |
gp assets proposal undo |
The person’s PUT THE OLD ONE BACK, from a terminal: undo an edit you accepted. Refused to an agent. Example: gp assets proposal undo my_hop-3 |
gp assets stub |
Copy a lifted directory with every presentation slot of a model replaced by a placeholder of the same shape (licensed CC0-1.0) and the slots the simulation reads unchanged, record each slot’s status and provenance in slots.toml, and with --json print the slot catalog (docs/stubs.md has the details) |
gp corpus bump |
The next version from the clips’ changes since the version corpus.toml records. A clip added is minor; a clip removed, a recipe changed, or another ROM or mapping is major; metadata only is a patch. A plan’s clips are compared with the plan git has at HEAD. --write records it with a changelog entry |
gp corpus diff |
The clips added, removed and changed from corpus A to corpus B, and the version step that makes. Each is a folder, or REV:DIR for a folder as git revision REV has it (HEAD~1:games/GAME) |
gp corpus import |
Turn GAME’s mechanic sessions ($GP_HOME/mechanics/GAME) into the clips of its corpus plan: every clip of every session, as its presses from power-on to its start and its own, in inputs/. Sealed sessions stay out, and so do clips whose inputs are a sealed run’s ($GP_HOME/sealed/GAME). Rows out of scope in the quest log stay out too, as does what the plan’s [import] excludes. Prints what changed and the version step; --write writes the clips and records the version |
gp corpus init |
Write corpus.toml beside DIR/clips.toml, so an older clip set becomes a scoring corpus with a name, a version (1.0.0 unless given), the ROM and mapping from the set and the content hash of its recipes. A game started by gp game new has a corpus plan already |
gp corpus reduce |
Propose the fewest clips of a game’s corpus that still run every routine and branch way the corpus runs, each counted by stage (the stage byte the mapping names). Each clip’s own frames are counted as gp code listing counts them (on a romset, as gp reach --window does) and, for the NES, kept in the events store. Guards (the first clip each fix commit of the model, mapping and hooks names, and --keep) stay; then the greedy multi-cover by frames, and a reverse pass. Prints the kept set by stage and family, the clips any cover needs, the exact duplicates and the untaken branch ways by stage. A plan only: --write PLAN writes it outside the repo, and the clips are never changed |
gp corpus score |
Score a game’s corpus on a model: every clip made again from the ROM, played through the model and checked against its curve. Prints the clips exact and the fidelity and, with –json, the score record |
gp corpus show |
A corpus’s name, version and hash, whether its clips changed since that version, and, for a template, the corpus it is scored against and its score records, each with the corpus it is from |
gp corpus verify |
Check the corpus’s content hash, then make every clip again from the ROM through the game’s module into run RUN (as gp corpus score does) and check every curve hash; a plan’s curves are derived, so each of its clips is only made. Exit 1 on any difference |
gp game attest |
Attest a published version of a game: derivation, module build and score, as signed statements under attest/gp game score output of the package |
gp game build |
Build a game’s module from its package folder and the kit, in a sandbox that reads nothing else and has no network. Exits 1 when the hook crate breaks the rules, 2 when the build fails. With no --kit and no -o, the module is built from this gp’s own kit into $GP_HOME/work/modules (or reused from there), as every tool that opens the model does, and its path printed |
gp game fetch |
Fetch NAME@VERSION by id into a folder, checking every signature (with –root) and hash, and lift every ROM entry it finds in the ROM folder |
gp game hash |
Print a built module’s BLAKE3 hash |
gp game kit |
Write the module kit: the tool’s sources for a game module and the crates they need, ready for a build with no network. Made from the checkout gp was built from (or GP_TOOL_SRC); a released gp away from its source writes the kit it carries |
gp game new |
Port a game from a ROM you own that no game names yet: its folder (a template) in the games checkout, with a model skeleton for the genre, the ROM’s hashes in roms.toml, pins that hold, and no clips. With –empty, a new game from nothing instead: the smallest game that builds, validates and plays on the page (one stage of floor, a player that walks and jumps, its own pictures as plain shapes, no sound), as a copy in $GP_HOME/work/mcp/GAME. Writes over nothing |
gp game score |
Score a game from its package and the ROM alone, in this $GP_HOME: every clip and curve derived from the corpus plan and the ROM, played through the module, and the score record written to FILE. Exits 1 when the corpus has problems |
gp game share |
Share a game with its own pictures (a new game, made from a template such as Moss Hop, whose template says how = “build” or “authored”): built for the page and published into your own registry on this computer ($GP_HOME/work/share/registry, namespace local), with the page beside it. gp registry publish compares it with every ROM in $GP_ROM_DIR first and refuses it if it holds anything of one. Each share is a new version. It prints the link gp serve plays it at (/share/p?g=local/NAME) and what it takes for other people to open it. Every theme made for the game ($GP_HOME/work/themes/, the new-game journey’s “Give it a look”) goes in the package, offered in Settings, and the link opens in one of them. Nothing is sent anywhere |
gp game test |
Run a game’s hook crate tests as gp game build builds it: in a copy of the kit’s tree under $GP_HOME/work/module-build, in the sandbox, offline, with the package’s lock, for this machine. Nothing is written in the package folder (no ext/Cargo.lock, no target). Exits 1 when a test fails, with cargo’s last lines |
gp model blind |
A model and a state mapping from the ROM alone, by playing it. Blind discovery finds the player and its buttons. Then runs of the game measure the player’s speeds, jump and size. Facts are observed, each with the frames it came from (crates/gp-cli/src/model_blind.rs) |
gp model check |
Check a model directory: model.toml against the schema (references, roles, events, extensions, evidence for every fact, each evidence ref’s file and line, in the repo or package or in a pinned download under $GP_HOME/work, skipped with a notice when that isn’t there), and fidelity.toml, if there is one, against the model. A profiles.toml beside it is checked too. Prints the facts by source. Exits 1 on any problem |
gp model derive |
Derive the model’s hand-written facts from what their evidence cites (docs/derivation.md): the constant, immediate or data row a ref names in assembly source (evidence), the value the routine’s code computes there by constant propagation (code), the table the line’s label names lifted through the asset map, the asset slots against the map, and the generator scripts the evidence names rerun over the lifted assets (data, with --assets), and the feel parameters measured from recordings (recordings, with --recording). Each fact either agrees or differs, or is new or underivable (with the class that could derive it and why); a question goes into questions.toml where a derived value differs |
gp model diff |
List every fact that differs between two models, by model path. Exits 1 if any does |
gp model fmt |
Fail if the model or contract isn’t in canonical form. Rewrite model.toml and fidelity.toml in their canonical form, the one text each model has. With --check, write nothing and exit 1 if either isn’t in it |
gp model gate |
Hold a patch to a game in the games repo to its corpus: PASS or FAIL, and what passes lands |
gp model mechanics |
A model’s mechanic catalog: every mechanic it uses, from the record the simulation’s components and the model’s hooks declare (system, parameters with types, units and ranges, reads and writes, events, assumptions, invariants, measures, the primitives it’s built from, and for a hook the general mechanic it’s like), the class of every model path (mechanic, parameter, content or presentation), the hooks that are still game-specific code, and the problems found by holding the model to the records (docs/mechanics.md). Exits 1 when the model and a record disagree |
gp model mutants |
Write the model’s mutants ([[mutant]]): each number up by one (a fraction by a sixteenth) and each flag turned over (constant, or period for period, every and after), each transition deleted, each condition, stops entry and tile kind dropped (input), and each pair of adjacent systems swapped (order). Pictures and documentation are left alone |
gp model propose |
Measure the model’s feel parameters from store recordings. gp track finds the player and the enemies, and their positions and the controller give the player’s movement (walk and run speed, acceleration), its jump (speed, gravity, held gravity, fall limit and rise by hold time) and the enemies’ steps, periods and speeds. Each is proposed as a fact by model path, compared with the model’s own, and where the measurement can’t decide, a question goes into the directory’s questions.toml (docs/mechanics.md) |
gp model questions |
List the questions in a working copy’s questions.toml, and answer them: an answer to a number’s question is written into the model as a stated fact |
gp model refine |
Refine a working copy of a game’s model against the original, clip by clip from its corpus, through the lockstep: the clips checked against the ROM first, numbers fitted from the original’s state at each clip’s start and written as facts with evidence, shape questions asked in questions.toml. Without –lockstep, the loop measures store recordings (–recording) as gp model propose does and runs gp validate between rounds: a measured fact a failing check backs is written, answered questions are written as stated facts, the rest asked |
gp model schema |
Print the JSON Schema of the format WHICH names. Print the JSON Schema of the format WHICH names. gp self schemas writes them all to schema/ (just docs) |
gp model static |
Stage 0, the static harvest, is every part of a model the ROM’s code settles without running it, from the ROM and the asset map only (docs/plan-extraction-process.md). Elements from the code’s dispatch and what each routine touches; constants, thresholds and periods; state machines from the bytes the code branches on and writes by constant; mapping rows; model facts, each with the instruction it comes from; and open facts with the routine and bytes that decide them. --grade KEY grades it against a game’s answer key (games/mosshop/static-key.toml). On an arcade romset it reads the main Z80’s code alone: routines and their roles, the interrupts, record tables, state machines, counters, timers, input and the random routine (docs/code-reading.md) |
gp package hooks |
Print the hash of a package folder’s hook code |
gp package scan |
Sort every file and every field of a package folder into four buckets: ours, reference, from the ROM and needs rewrite. Compares with each ROM of its [[rom.entry]] found by hash in $GP_ROM_DIR and prints no ROM byte. With no ROM it says that nothing was compared. Exits 1 on any needs-rewrite item or a failed rebuild, or with –baseline only on a needs-rewrite item the baseline doesn’t list |
gp registry check |
Test a registry from outside, against its root if –root is given |
gp registry grant |
Grant a namespace in a registry that exists, so packages named NAMESPACE/… can be installed from it |
gp registry grants |
List the namespaces a registry has granted, with each one’s status and number of keys |
gp registry host |
Where hosting your own registry on GitHub stands, step by step, and its raw address for a page |
gp registry init |
Make a registry in a folder or s3://BUCKET |
gp registry publish |
Publish a folder of files as one exact version |
gp registry reindex |
Rewrite the list files from these name@version entries, signed if –key is given |
gp registry serve |
Serve a folder registry and a built page on this machine only |
gp registry submit |
Offer a game or theme to a registry you can’t write to that takes submissions, as a pull request its owner merges or not. Name its repo with –to; lex00/gp-registry takes no one else’s themes (host your own: docs/host-your-own.md) |
gp registry yank |
Withdraw a published version: add it to yanks.toml with a reason and a severity, or take it back out with –undo |
gp roms add |
Copy ROM files you own into $GP_ROM_DIR/nes/, or a romset (a MAME zip) into $GP_ROM_DIR/arcade/, identifying each one. A ROM no game names yet is added too, as unknown, with the gp game new line that starts a game for it |
gp roms clean |
Write a cleaned copy of a NES image: header from the game’s roms.toml (or the file’s, by the header rules), no trainer, no trailing bytes. Never changes the input. Exits 1 when the cleaned data matches no game’s roms.toml |
gp roms diff |
Compare the PRG and CHR data of two NES images. Either side may be a raw PRG binary, such as a disassembly build |
gp roms scan |
Identify every NES image and arcade romset (a MAME zip) in $GP_ROM_DIR, whatever it’s named, by the game whose roms.toml holds its hash, and report junk around an NES image’s game data. Each is listed by its path in $GP_ROM_DIR, the path gp game new --rom takes; for a ROM no game names it prints the gp game new line to run |
gp roms sets |
The arcade romsets the tools know, by MAME’s names: each one’s title, its identity (the sha256 a game’s roms.toml gives it) and the files its zip must hold, each with its size and SHA-1, from the [[source.chip]] rows of the games’ roms.toml files. Reads no ROM: this is what to bring, not what you have. With no games checkout the tools know no set, and it says so |
gp serve |
Game Printer’s page, at http://127.0.0.1:7710/: a game’s tabs CLIPS (record clips of the original, hand them to your agent, review them on the model), REFINE (the background work scoring and refining the model), PLAY (the model) and THEMES, with your agent’s log beside them. gp mechanic start and watch open it |
gp template build |
Build the assets of a game made here (source.how = “authored”) from its authored.toml: a data image that nothing plays (to $GP_HOME/work/images/), its asset map, and the lifted directory. Exits 1 when the asset map or template.toml’s pins are stale, unless –write updates them |
gp template check |
Check a ROM against the template: accepted hash, map pin, lift pin |
gp template cites |
Index the ROM addresses ($8000 and up, written $C46B or 0xC46B; on an arcade romset any inside the main CPU’s program) that templates’ model.toml, mapping.toml, probes.toml, delta.toml and hooks (the [ext] crate’s sources, a derived template’s base’s) cite, each with its files and lines and the routine of the code map it is in, so a planner can see what is covered (docs/code-reading.md) |
gp template derive |
Make a derived template’s files (template.toml’s [derive]). They are the base template’s per-game files (model, contract, state mapping and the rest), with its source renamed to this template’s and the delta merged over them (docs/templates.md, “Derived templates”). Exits 1 when a file is stale; --write rewrites them |
gp template extract |
Turn a template into a copy filled from your own ROM: check the ROM’s hash against the template’s source declaration, lift its assets with the template’s asset map, check the lifted files against the ROM byte for byte and against the pinned digest, copy the model, and check its slots against the lifted assets. Every hash goes in extract.toml beside the copy. Exits 1 when a check fails and 2 when no accepted ROM is found |
gp template font |
The font check (docs/templates.md, “The font check”): every character the model writes (HUD counters and text, level labels, screen text such as a turn screen’s) has a glyph with ink, no two characters share a tile, every charset in the asset map agrees with the font’s, and no other art draws a glyph’s tile. Lists the font bank’s free tiles, the only ones a generator may put a new glyph in. Exits 1 on any problem |
gp template pack |
Write an asset-free copy of a template, with its asset map inside, as a directory or, for an output ending in .zip, a zip archive with fixed timestamps (the same template always packs to the same bytes). Runs the asset-free checks first (gp package scan on a package folder, and the pins when an accepted ROM is found) and refuses a template that fails them |
gp template served |
Check that a game’s folder, as it would be published, holds none of the original game’s data: no line of 24 characters or more of its built files may be held by the original’s lifted files, and none of its bytes or lifted files may be the ROM’s. With –folder, the same for every file of a folder to be served. Exits 1 on any find, and 2 when a ROM isn’t found |
gp theme check |
Check a model’s theme stack: each theme’s file, its restyles’ slot names against every model in its for list (read from the templates of the same game), then the readability check and the Style checks on the themed art. Exits 1 when a theme is invalid or a restyle names a slot or entry no model has. It also exits 1 when the readability check refuses or a Style check fails. Without theme options it checks the model’s own stack (--themes) |
gp theme fetch |
Fetch a published theme by the game’s index: the manifest by its hash, its signature, and each file by its hash, from the local store or the first mirror that has it, every hash checked, into OUT (default $GP_HOME/themes/packages/GAME/THEME) |
gp theme fit |
Fit art to a game’s slots (docs/theme-kit.md, “Fitting”). Each sprite slot’s frames come from ART/<slot id>/<frame>.png (any size, any colors) or from the filled grids of gp theme sheet (–sheets, read through sheets.json). Each frame has its background cleared (alpha, the key color or a flood from the edges) and is cropped to the figure. One scale serves the whole slot. The frame is placed by the anchor, downscaled by area averaging, and cut into the game’s tiles by one lightness split for the slot. Each picture slot (ART/<slot id>.png, or the sheets’ picture) is kept whole. Needs the kit’s local part (gp theme kit --rom). Merges into OUT’s theme.toml when it has one. With –large it fits the filled grids into a large-art theme folder instead (docs/theme-kit.md, “Fitting a large-art theme”): a picture and a pic line for each game picture a cell stands for, placed by the original’s body in that frame, and theme/made-from.txt |
gp theme generate |
Make a theme’s art with Runway’s API (docs/theme-kit.md, “Generating with Runway”). It makes the style board and turnarounds on gen4_image first. Then it makes each sheet of gp theme sheet on gpt_image_2, and every picture on gen4_image with those as references. Then it runs gp theme fit and gp theme check --original, makes single-cell calls for refused slots, and draws a contact sheet. Every call is in the run folder’s ledger, so running it again continues without paying twice. --dry-run prints the calls and their cost and makes none; a paid run asks on the terminal or needs --yes, and stops before passing --budget. The key comes from RUNWAY_API_KEY, the keychain (service game-printer-runway) or $GP_HOME/secrets/runway (mode 600) |
gp theme kit |
Write a game’s theme kit (docs/theme-kit.md) as kit.toml in the template’s themes/kit/ (or OUT). For each art slot the kit gives its role and size. It also gives the slot’s frames with their timing, and its colors and anchor. Its description of each slot names no character. For each sound role it gives the cue, length and loop. With –rom (checked against the template’s accepted hashes) it also writes the local part, the tiles each frame is cut into and a reference sheet, under $GP_HOME/work/theme-kits/GAME/, never into the kit |
gp theme list |
List the themes published for a game. Each entry gives a theme’s title, author and licence. Its size and package are given too, with the check results and whether the local store has the theme |
gp theme look cells |
An arcade room’s cells as its #+ room rules see them: a grid of the screen’s 32 by 30 cells from your own romset, each with its tile code in hex and its colour bank, and the class its rules put it in (the class’s first letter, . for none), with the classes’ letters listed. For writing #+ room_cells tests; printed only, never written to a repo |
gp theme look check |
Check a large-art theme folder against a game, the way the page reads it: package.toml, look.txt and art.txt, every picture a rule names, the game’s kit (every slot and pose drawn, nothing named the game lacks), how each picture sits on its body’s box and feet row, names the kit denies, and ROM data (gp template served, when your ROM is here). Exits 0 with no problems (warnings allowed), else 1 |
gp theme look new |
Start a large-art theme for a game in a new folder: package.toml, theme/look.txt, theme/art.txt with one line per picture the game’s kit lists (still to draw), a README and a .gitattributes. Writes nothing from a ROM, and refuses a folder that already holds files |
gp theme look play |
Play a large-art theme folder in the game without publishing it. It runs the check first (problems stop it unless –anyway; warnings are printed), then serves the game on 127.0.0.1 with your theme chosen. A game played from a ROM gets the page that plays any game by name, from a registry made in a temp folder: the game (read from the real registry, or built here when it isn’t there) and its published themes, and your folder as a theme only this page sees. You load your own ROM in the page. A game with pictures of its own (a template, or a copy of one) is built for the browser with your theme added and needs no ROM. An arcade game plays from your romset zip on that page, your theme drawn over its board’s pictures. With –shots DIR it plays the game’s route in headless Chrome instead, on each ROM of the game that is here, and saves the game at named moments (the game’s theme-shots.toml, else the page check’s route, else the title and the first stage); with –against it does the same for a second theme and writes the pairs side by side. Nothing is published |
gp theme look sheet |
For an arcade game drawn by its board’s art: the names a theme may give the board’s pictures that the game shows, and a contact sheet of each entity’s sprite codes, from your own romset and the game’s recorded plays (its inputs/). A theme names a screen by its slot (screen_saloon), a sprite by its entity and code (sprite-mug-4d), a counter’s digits as counter-score-7. Written under $GP_HOME/work/theme-kits/MODEL/board, or a folder you name outside any repo: they are pictures of your ROM’s game, never to commit. gp theme look check then warns of a sprite code the game wasn’t seen to show |
gp theme look take |
Bring named pictures from a theme folder (your copy, under $GP_HOME/work/themes) into a theme folder in a games checkout or a worktree of one (GAME/themes/NAME), for a change that lands them: each file under the paths named is written at the same place under the target’s theme/ folder, put in the repo’s Git LFS store when the repo keeps it in LFS, and marked to add, so git diff in the repo shows it as its LFS pointer. Nothing else in either folder changes |
gp theme paint |
Paint a restyled-assets theme for a model from its roles: a sprite for each entity role and a cell for each tileset item role, in a paper-cutout style, as .pix files with a theme.toml naming them (CC0-1.0, origin generated). Writes OUT; refuses an OUT that exists unless --force |
gp theme picture accept |
The person’s ACCEPT, from a terminal: put the proposed picture in the theme, keeping the old one for undo. The page’s ACCEPT does the same. Refused to an agent. Example: gp theme picture accept 1763140000000-1a2b3c4d |
gp theme picture list |
The proposals and the person’s answers: open ones still waiting, then the ones answered (accepted, rejected with their words, or put back), newest first. Reading an answer here marks it told, so next stops showing it. Example: gp theme picture list |
gp theme picture propose |
Propose a new picture for one art file of the person’s own copy of a large-art theme (a theme folder under $GP_HOME/work/themes/). It is checked first: a PNG, its shape fits every art.txt rule that draws it, gp theme look check on the theme with it in place finds no problem the theme didn’t have, and it holds no ROM data. A proposal that passes waits on the person’s page as a card with the old and new pictures, ACCEPT and REJECT; nothing in the theme changes until they accept. Writes only the proposal, under $GP_HOME/work/proposals/pictures/. Exits 1, with why, when a check refuses it. Example: gp theme picture propose ~/.gameprinter/work/themes/clay –game rooftop –picture art/hero.png –png /tmp/hero-red.png –why “A red cap, as you asked.” |
gp theme picture reject |
The person’s REJECT, from a terminal: drop the proposal, with what to change for the agent. Refused to an agent. Example: gp theme picture reject 1763140000000-1a2b3c4d –words “Keep the hat blue.” |
gp theme picture undo |
Put the old picture back after an ACCEPT (the page’s PUT THE OLD ONE BACK). Refused to an agent. Example: gp theme picture undo 1763140000000-1a2b3c4d |
gp theme publish |
Publish a theme version for a game (docs/theme-publishing.md). It refuses an id a theme the game ships with already has, runs every check (readability and Style, originality against the game’s ROM when it is here, geometry), and refuses on any failure. Then it makes the package, scans it for game data and signs its manifest with a maintainer’s SSH key. It keeps the package in the local store, copies it to the mirrors in mirrors.toml and adds it to the game’s themes index, themes/index/GAME.toml, through the gate (GAME is the template’s game, else its id). A game with no ROM art gets a look package (the theme, the look gp drew, the check results); a game lifted from a ROM gets a source package (the theme’s own files and the check results, nothing drawn from the ROM’s art). –dry-run stops before the store and prints what would be published |
gp theme recheck |
Check a published ROM theme (a source package) on a model of its for with a ROM on this machine, and add the result to the game’s themes index: for a model the publisher had no ROM for, or to confirm one. Reads the package by its id from the local store or a mirror (every hash and the signature checked), runs the same checks as publish for the model, compares the look drawn here with the one recorded, and lands the index line with the model’s result, slot fingerprint and look digest through the gate. A look that differs from the recorded one is reported and not added. The package and its signature are left as they are. –dry-run writes nothing. With –registry TARGET, GAME and THEME are package names and the theme is one the registry offers for the game: it is read as the page’s lift reads it over your ROM, and the date, pass or fail and why go into its line of the registry’s by-game list (recheck), which the page shows when it failed |
gp theme schema |
Print the theme format’s JSON Schema with theme, or the stack format’s with stack |
gp theme sheet |
Write starting grids and prompts for an image model from a game’s kit and a style card (docs/theme-kit.md, “Sheets”). Each grid holds a subject or a group of small slots. Its cells are sized by slot, and each has a label, a box and a line, with a neutral pose figure. The command writes a prompt file per grid for gpt_image_2 and for gen4_image (1000 characters at most); the style board and turnaround prompts to make first; a prompt per whole picture; and sheets.json, which gp theme fit --sheets reads back. OUT must be outside the repo |
gp theme sound accept |
The person’s ACCEPT, from a terminal: write the change into the copy, keeping what it had for undo. The page’s ACCEPT does the same. Refused to an agent. Example: gp theme sound accept 1763140000000-1a2b3c4d |
gp theme sound list |
The proposals and the person’s answers: open ones still waiting, then the ones answered (accepted, rejected with their words, or put back), newest first. Reading an answer here marks it told, so next stops showing it. Example: gp theme sound list |
gp theme sound propose |
Propose a change to how one of the person’s copies sounds (a copy under $GP_HOME/work/mcp/, as template_fork makes): sound_edit’s ops, checked first (every song an op names must be ready, and nothing is clamped). The clip song is rendered as it sounds now and with the change, and the proposal waits on the person’s page as a card that plays both, with ACCEPT and REJECT; nothing in the copy changes until they accept. Writes only the proposal, under $GP_HOME/work/proposals/sounds/. Exits 1, with why, when a check refuses it. Example: gp theme sound propose my_hop –ops ‘[{“op”:“transpose”,“song”:“theme”,“semitones”:-12}]’ –why “A lower tune, as you asked.” |
gp theme sound reject |
The person’s REJECT, from a terminal: drop the proposal, with what to change for the agent. Refused to an agent. Example: gp theme sound reject 1763140000000-1a2b3c4d –words “Keep it as fast.” |
gp theme sound undo |
Put the old sound back after an ACCEPT (the page’s PUT THE OLD ONE BACK). Refused to an agent. Example: gp theme sound undo 1763140000000-1a2b3c4d |
gp theme style list |
List the style cards, personal and shared |
gp theme style new |
Write a style card with the look, the cast in your own words and palette hints. Shareable cards go to themes/styles/ in the repo and must name no game; –personal writes $GP_HOME/themes/styles/ |
gp theme style show |
Print a style card |
gp theme video |
Run a model on an input, through its game’s module when it has hooks, and write its frames, drawn with a theme stack, as an animated PNG. An arcade model that names board art is drawn as the screen measure draws it, with its board’s own pictures. Prints the digest of the per-frame state hashes, which is gp interp run’s for the same input with any theme: the presentation reads the world and never writes it |
The lab set
Section titled “The lab set”For research, tests and the workflow’s own tools: what an agent or a contributor uses. May change without notice.
| Command | What it does |
|---|---|
gp agent approve |
Keep an attempt (what the page’s keep does): marks it approved and writes it to $GP_HOME/work/agents/approved.json for the driver |
gp agent attempt |
Record an attempt at a clip: with --worktree, builds that worktree’s gp and trial preview, scores the clip and every active clip with them, and records the score before and after, the clips better and worse, the preview and the commit |
gp agent bench |
The loop’s efficiency in one table (docs/agents.md, “Loop efficiency”) covers rounds and fixes per hour by source, and seconds per round with LLM calls per fix. It also gives exact and fidelity over a window, and is read-only |
gp agent brief |
Everything an agent needs to start on a clip, in one call: the clip, its first wrong frame and each wrong measure’s values around it, and the mechanics that own those measures with their parameters. It also gives the code the evidence cites (file, line and routine), what the original’s code read to write the first wrong measure (the Z80’s on an arcade game), the open questions and the person’s tells, with the attempts so far and the next commands written out in full. It is read-only and, with --json, has a fixed shape (schema) |
gp agent clips |
The run’s active clips with their scores, those that don’t match first. Read-only; the brief lists the first 20 |
gp agent done |
Say the work on a clip stopped, and why |
gp agent integrate |
Run by the coordinator, it picks the approved attempts not on main, in order, onto a new branch of this checkout, numbers the versions once, regenerates the schema, writes the attempts’ CHANGE.md notes into the ROADMAP, and runs gp model check on the games. Stops at the first conflict. It doesn’t merge into main or score: the tool gate lands the branch (docs/agents.md, “Merging attempts”) |
gp agent note |
Post a progress note, shown on the clip’s card and the REFINE tab. --on says in plain words what the work is on until another --on or done |
gp agent score |
Score every active clip of a run on a model folder with this build, as JSON: what an attempt reads from a worktree’s gp |
gp agent state |
Who is working on what, and the attempts, in words |
gp agent tell |
Tell the agent something about a clip, as the person does from the clip. It goes to the inbox of the clip agent working on the clip, or waits for the next one |
gp agent tells |
The tells and their replies; --open for those without a reply |
gp author |
A prototype of the authoring API: a proposer edits a base template’s mechanic parameters from a short request, gp’s checks verify each proposal (schema, mechanics, the public tier, reach, a playthrough, difficulty against a target, the asked-for feel), the failures feed the next proposal, and one log row is written (docs/author.md). The proposer is scripted; only --dry-run is built |
gp baseline check |
Record each baseline into a temporary store and check its frame hashes, lag frames and RAM assertions. A baseline whose ROM isn’t in $GP_ROM_DIR is skipped; our own test ROM is built in, so its baselines always run. Exits 1 if any check fails |
gp bench clips |
Grade the ROM-only clip tools on a game whose answer key is known (docs/benchmarks.md). The tools run in a home of their own (–work) on the hand-written model and mapping, over the game’s corpus. Only the grader reads the answer key. The report holds the measures of docs/plan-extraction-process.md and the mutants each kind of wrong model leaves uncaught. Its hash leaves out the times, so a rerun gives the same hash |
gp bench report |
Print the measures tables of the last gp bench scratch and gp bench clips runs of a game, from their report.json files. Status reports quote this table (docs/plan-extraction-process.md, “Guards”). Exits 2 when neither report exists |
gp bench scratch |
Run every stage from scratch and grade it (docs/benchmarks.md). The start holds only the header the schema needs. Each stage’s tools run on what the stage before left, and their output is graded against the real model and mapping. The report leads with the minutes of run time per second of gameplay played exactly. Stage 0 refuses a tool that reads the source or the labels. Each stage’s output has a hash of its own, for telling which stage a change moved |
gp capture background |
The run’s background queue (docs/show.md, “The background work”). It shows the queue’s state, or scores clips here in the foreground. A job scores the next active clip not scored on the model as it stands. While the queue is on, gp serve does this work itself, and refines the working copy on the clip that drifts apart earliest |
gp capture carry |
What the game’s clip starts can’t carry into the rebuilt game (gp_interp::carry), for each start and, with --every, for frames sampled through the starts’ presses. It lists every loaded object a start there can’t carry and why, grouped by cause, with the starts each gap alone holds back |
gp capture dense |
Dense clips (docs/research/dense-clips.md) are a few short clips that each run much more of the original’s code. Candidates from a coverage-guided search of presses at the game’s clip starts, valued by the code, branches and measure values they reach on the original, chosen by greedy set cover. They are written as a clip set into a scratch folder (--into); the game read from is unchanged. The same seed, ROM and game give the same clips |
gp capture events |
Print a run’s events after a sequence number, one JSON object a line, from the running gp serve |
gp capture fidelity |
The run’s fidelity: gp corpus score on the run’s game, every clip made again from the ROM and played through the model, with its fidelity line and record (game-printer’s capture fidelity) |
gp capture impact |
What a change since an earlier score reaches (docs/gate.md, “Affected clips”), and how many of the run’s clips it would score again by what each read. Scores none: gp corpus score GAME --run RUN --reuse FILE --impact |
gp capture list |
List the runs: every game of the games checkout, with the round and state of gp serve’s background work on it |
gp capture regenerate |
Make a game’s kept clip set again from the ROM and check each clip’s curve against the set’s: gp corpus score TEMPLATE --run RUN (game-printer’s capture regenerate). Exits 1 when a curve differs or a clip can’t be made |
gp capture schema |
Print the event format’s JSON Schema (schema/capture-events.json) |
gp capture verify |
Make every clip again from the ROM and check every curve hash: gp corpus verify GAME --run RUN. Exits 1 on any difference |
gp catalog |
The pattern library’s finders on a template, beside what its model holds (docs/catalog-patterns.md). It lists each entity’s patterns and whether they are components or hooks, and the asset map sorted by pattern. RAM slot arrays from the game’s labels are set against the mapping’s [slots] and, with --recording, tracked objects fitted to the behaviour patterns against the entities the mapping names |
gp chunks |
A template’s level chunk catalog, listing the groups of cells its levels are built from (the format’s objects and patterns mined from the decoded grids), what each does for the player and how they sit together. It is written under $GP_HOME/work/chunks/<template>/ (docs/chunks.md) |
gp clip feasible |
Whether a person could make a corpus clip’s presses: each clip’s own presses (from its start) against a human floor (a press of at least 50 ms, at least 50 ms let go between two presses of one control, at most 8 presses a second on one control; the table is in gp-cli/src/feasible.rs with its source), at the model’s frame_rate. Prints each clip’s shortest press, shortest gap, most presses a second and presses under the floor, its verdict (a person could, a person could not, with the first press under the floor), and how many clips of each source a person could play. Reads only: no clip is changed |
gp clip log |
Write a clip’s input log from power-on: for a mechanic session’s clip, the stored path up to its start, then the clip’s own inputs, the start checked against the state hash the clip was saved with; for a corpus clip, the presses to its start, then its own presses or presses file. Prints the file and the frame the clip starts at, the frame to give gp interp compare --from |
gp clip presses |
Save a played clip as a corpus clip: its input from power-on split at its start into inputs/ID.start.presses and inputs/ID.presses (an arcade clip’s with its set’s arcade line), the clip added to the game’s corpus plan with its recipe-set hash made again, and the files read back as the scorer reads them. With the ROM, replays the clip and prints the state hash at its start and end; a mechanic session’s clip must replay to the start state it recorded |
gp clip score |
Score corpus clips on a model: each clip’s lockstep from its start, straight through and with resync, both with the original’s random draws when the state mapping sets score_draws. Prints the frames together both ways, the frame pairing, the exact stretches, the first lasting split and the splits by measure, and writes each clip’s log, both lockstep JSONs and its score into OUT/CLIP/ (OUT/SESSION-NNN/ for a session’s clip). Refuses a sealed session |
gp clip screen |
Run the screen measure on a corpus clip’s original against itself: the clip played live, writing a score tape, then from that tape, every frame’s pictures measured with the platform’s options and the sprite mask. Exits 1 unless every frame measures 0. With –mask, writes one frame’s picture beside its sprite mask in red (outside any repo) |
gp code listing |
Print the ROM’s routines (the static harvest’s code map) with how often each instruction ran and each branch’s ways (taken, fell), over the clips and frames chosen. Without clips, the code alone. Writes nothing in the repo: the listing goes to standard output, or to –write’s file outside any git work tree |
gp code tables |
Find the ROM tables the code reads with a RAM byte as the index (lda $53; asl a; tax; lda table,x). Each is listed with its rows and their readers. The row each value of the byte reads is named, with where a pointer row points. An asset map entry follows for each table |
gp coverage check |
Check coverage against the thresholds in each game’s definition (every level visited, every object type seen, the main input combinations). Exits 1 if a threshold isn’t reached, 2 if no definition has thresholds |
gp cycles chain |
gp-cycles runs the CPU on its own from the NMI at FROM to TO: it takes each NMI where the vblank grid puts it (89342 PPU dots a frame, 89341 on an odd frame whose pre-render line has rendering on) after the right instruction, counts the idle loop’s passes at --idle, and keeps the --keep bytes as its own while taking the rest of RAM from the original at each NMI. Reports the frames whose pass count and NMI entry match, and the first frame the kept bytes differ |
gp cycles check |
Each call of each ROUTINE on an input against gp-cycles’ cost of it, run on the RAM, registers and controller at the call |
gp cycles readset |
Each call of ROUTINE inside the NMI handler on an input: its cycles and the RAM bytes it reads before writing them (not the stack). A routine’s cost is a function of these: distinct read-states with no ambiguous one shows it |
gp cycles slice |
Write the slice gp-cycles runs, the cartridge’s program ROM, from the user’s ROM to $GP_HOME/work/cycles/prg.bin and slice.json (the ROM’s hash, where the program sits). Mapper 0 (NROM) only |
gp cycles split |
Each frame’s NMI handler from FROM to TO split by routine: the handler’s cycles from its entry to its RTI, and each routine it calls at any depth with the cycles of its calls that frame, callees included. One JSON line a frame to --out, for finding which routines move the frame’s cost |
gp dataset gaps |
What ROM datasets still leave open, ranked: open rows by kind and by what would settle them, RAM bytes by the role the runs suggest, and constants with no unit, per dataset and over all of them. Reads the datasets only, never a key: the list the next rule is picked from (docs/research/extraction-ledger.md) |
gp dataset grade |
Grade a ROM dataset against its game’s key (docs/formats/rom-dataset-key.md) and print the stage 0 scorecard’s column for the ROM. The coverage rows run the ROM with stage 0’s starts, so their denominators never come from the dataset; they apply with no key too. On an arcade romset a key’s constants are checked on the main Z80’s program. The ROM is found by the dataset’s hash (the key’s rom_file, $GP_ROM_DIR, $GP_HOME/work/sealed) unless given. --counts prints counts only, nothing of the key |
gp dataset rom |
Extract one ROM into a ROM dataset (docs/formats/rom-dataset.md), from the ROM alone. The dataset is Parquet tables with a card and Croissant metadata. Its tables hold routines and branches, RAM and elements, and state machines and constants. Further tables hold mechanics and model facts, and open questions and runs. Two runs on one ROM write identical bytes. Fails if a written file holds bytes of the ROM |
gp element explain |
What is at a spot of the screen on one frame of a clip, from evidence: the sprite or background tile drawn there (its slot or cell and picture number), the game object the state mapping says it is with its values, the routine that drew it and the one that moves it with every input that code reads, what the model draws there and whether the two games agree on it, and what the tools could not determine. Read-only. Answers a person’s “what is this?” from the page (docs/element.md, “What is at a spot”) |
gp element inputs |
The routine that wrote a measure’s byte on a clip’s first wrong frame, and every byte and branch condition its value depends on, each with its label and role: the element-extraction skill’s steps 2 and 3, from the original’s trace. Read-only |
gp env |
Show resolved paths, versions and store state |
gp events |
List a recording’s events (interrupts, sprite 0 hits, bank switches, controller reads, register writes). Read from its event stream, or by replay when it has none |
gp explore |
Search for presses that run code no run has run yet, with no model (gp-explore, docs/research/rom-event-model.md). It starts at the end of each of stage 0’s own starts and --start’s clips, aims at the routines the code map has that no start clip ran (or those named, or the targets of the places the reader stopped), ranks each candidate by the fewest calls from a routine it ran to a target, and writes what it keeps as clips from power-on. Its output depends only on the ROM, the start and the seed |
gp farm |
A decision model plays a level, by search from savestates: it orders the moves, the emulator says which work (docs/research/laya-level-play.md) |
gp farm-topdown |
Blind mode for a top-down game (docs/research/topdown-extension.md). It plays from power-on through a class select and reads the player’s bytes on both axes and the health that drains. Its search moves in eight ways, in an order a decision model gives |
gp findings confirm |
Run the gate on a finding. A finding with a clip is replayed from its checked start, its video made (every frame checked), and the detector its kind names run again. Confirmed only if the detector fires |
gp findings cut |
Cut clips of real inputs for findings that are still leads: a farm run’s places, deaths and level end come from its path log (real inputs from power-on), cut around the frame the player first does it. Each clip is written in the snapshot format (path, start, state hash, inputs) to the game’s findings session |
gp findings ingest |
Read what the tools have written for a game (mechanic sessions and their measured clips, harvest clips, farm and blind runs, jumpathon strips, the localizer’s egg clips, queue findings and fitted rules) and add or update one record each. A record already confirmed or rejected keeps its status |
gp findings list |
Counts by kind, method and status, and the top leads not yet confirmed |
gp gaps all |
All three from one read of the recording |
gp gaps changes |
State that changes during play that the model doesn’t account for: RAM, sprites, background, sound and code, each ranked |
gp gaps drawn |
The model’s sprite boxes against the original’s sprites for the same objects: offsets and size differences per entity kind |
gp gaps interactive |
Every background cell that changes during play and every handler routine that fires, with its context, clustered into interactive element kinds (docs/formats/interactive.md) |
gp host record |
Record a run of a working copy as a scenario in the copy: the variant’s own baseline |
gp host scenarios |
Run a working copy’s (or a template’s) scenarios in parallel |
gp host search |
Search for button holds that reach a goal in a working copy’s own model, starting from a baseline’s holds: a winning run for a variant, to record with host record |
gp host serve |
Run the host on 127.0.0.1 for sessions and scenarios, background builds and playable links. It prints its URL, then serves until stopped |
gp host speed |
Hold speed measurements to their budgets: concept plan time, time to the first playable link, tweak time |
gp input-log check |
Parse a log and report its frame and lag counts |
gp input-log fork |
Fork a run at a frame with new presses: the run’s input as it was up to the frame, then only the presses given. For a clip that takes a branch the corpus doesn’t, from a run that already gets close to it (gp record --input OUT, then gp clip presses). An NES or an arcade log, in the run’s own layout |
gp input-log generate |
Write an input log from button spans, for scripted recordings |
gp interp baselines |
Replay every model baseline in MODEL/baselines/ in the interpreter, each from its level, and compare its digest and expectations. Exits 1 if any differs |
gp interp compare |
Run the original and the model on the same input, and compare them frame by frame through the model’s state mapping. Each mapped model path gets a line with its agreement and its first difference, and the lockstep’s report follows. Exits 1 if any path disagrees |
gp interp draws |
Record the original’s random draws on an input, at the draw sites the state mapping’s [[draws]] names: each read of a site’s random byte by its instruction, with the frame, in order. The script lets the lockstep make the rebuild choose as the original did (docs/formats/draws.md). With --find ROM and no model, find the game’s random register and its draw sites from the run instead and propose [[draws]] entries for review, as that page’s section “Finding draw sites” says; a model or --mapping given too scores them against its hand-written sites |
gp interp moments |
The game’s own moments in a run of the original (jumps, landings, deaths, lives lost, counter changes, level changes), read from the state mapping’s measures, and what the model does at each on the same presses from the original’s state half a second before it. An example line reads “jump 1 at frames 218-250 (3.6 s) rises 66 px; the model too, on the same frame, 52 px” |
gp interp odds |
The random-choice behaviour check: the model’s branches at each [[draws]] site tested against the rule’s own odds |
gp interp reach |
Check that each level’s goal can be reached by the player’s own moves (gp_interp::reach, the player alone) and measure the jump’s envelope, through the game’s module. With --record, also search each level with its enemies and rules for a run to the goal and write it as a model baseline, MODEL/baselines/<level>.toml. Exits 1 when a goal can’t be reached or no run is found |
gp interp run |
Run a model through an input log, through its game’s module or the built-in interpreter, and print its frame count, the digest of its per-frame state hashes, and its state at the last frame by model path |
gp interp scenarios |
Run the scenario ladder: short generated presses, on the original and on the model from the original’s state, measured apart |
gp interp slots |
Measure the model’s enemies (their components and ext hooks) against the original’s enemy slots, slot life by slot life |
gp interp translate |
The original’s state as a model state, through the state mapping read in reverse: at a frame of an input, or in a snapshot file of the original. Prints a note for every part (loaded, approximated or missing when the mapping doesn’t hold it). With --out it writes the canonical model state, which any runtime of the model loads with the runtime protocol’s load-state |
gp labels check |
Check that every RAM address a state mapping reads has a label, and list the ones that don’t. Exits 1 if any is missing |
gp labels lookup |
Find labels by RAM or CPU address (0x0400, $0400) or by name. Exits 1 if nothing matches |
gp labels propose |
Draft a labels file from a run of an arcade romset (its access log on the main Z80): the work RAM written, with its writers and readers, the routines that ran, with their callers, and the ROM read as data. Names come from addresses or the mapping; a person or agent renames and keeps what holds. Writes to –out (outside any git work tree) or standard output, never over a game’s labels.toml |
gp labels show |
List a game’s labels, which cover RAM variables and routines and data tables |
gp level difficulty |
Search a level for a run to its goal (or to --to) with the player’s own moves, measure how many frames earlier or later each input can come and still clear, and score the level from those windows, by section. This is a research spike, so the run is the first one found and a window is a lower bound |
gp level edit |
Change a level of a copy, checked against the level kit before anything is written. Each –op is one named operation, run in order: move girder N x=.. y=.. shape=.. step=.. count=.. dx=.. dy=.., move ladder N x=.. y=.. shape=.. dx=.. dy=.. (its top or stop moves with it), move spawn ENTITY[#K] x=.. y=.., make ladder N full|broken, set row SLOT ROW V,V,... –from replaces the level’s data whole (the data gp level show gives, as JSON or TOML). A change that breaks a rule is refused with the rule and the piece, and nothing is written (exit 1). Only a copy in this home is edited, never a games checkout’s original or a published package. Each edit is kept in the copy’s level-edits.jsonl for gp level undo, and returns the picture by kind and the play measures against the kit’s tolerances |
gp level kit |
Write a game’s level kit (docs/level-kit.md): level-kit/kit.toml and level-kit/level-kit.md, what a designer needs to make a stage by hand. The levels’ sizes, the hero’s moves and the goal come from the model and the asset map, and so do the things’ boxes and the data slots. The hand-written level-kit/rules.toml gives the rest. That file says what’s data and what’s fixed in code, and the limits and the play measures to land near. It also gives how to verify, a worked example and what is still open |
gp level list |
List a game’s levels: each one’s name, what it is, its size in cells, its starts and the slots its pieces are in, whether the level kit’s rules cover it, and whether the folder is a copy an edit may change. A game with no level kit says so in words |
gp level measure |
Measure a stage of sloped girders and ladders on the model (gp_interp::stage). It gives the stage’s girders, ladders and things. It also gives each ladder’s climb and the direct route to the top. For the rollers (barrels) it gives their routes, as the girders they roll on, the ladders they take and the frames from the throw to the end, and the jump window over each roller that meets the player on each girder |
gp level render |
Draw a level as a PNG. By default by what each piece is, with no ROM art: girders red, full ladders cyan and broken ones dim, tops and stops, each start as a box by its role, the goal’s row, and the numbers gp level edit names pieces by. That picture can be shown anywhere. With –art, the model’s own picture at the start of play from the person’s lift, with the pieces outlined: it stays on this computer, outside any repo |
gp level show |
One level as data, in the level kit’s terms: its girders (the ground’s runs, by row), ladders (with the girders each joins, whether it reaches the one above, its top or stop), each thing’s start, the rows of every slot the kit names as the stage’s data (under data, the shape gp level edit --from takes back), the kit’s rules, limits and play measures, and any rule the level breaks now |
gp level undo |
Put back a copy’s newest level edit, as it was before it, from the copy’s level-edits.jsonl. Run it again for the one before |
gp level verify |
Verify a level on the model, in plain words: the kit’s rules, whether the stage can be finished with the enemies in, every play measure against the kit’s tolerance (the barrels’ routes and jump windows too), and how far the layout is from the original’s (by the person’s own lift, in memory). A girder stage plays its direct route up the ladders, or, when that can’t finish it, a search of walks, jumps, climbs and waits that rides the bodies its ground carries the player on and plays a stage with no goal until it ends; a tile stage plays the reach search and the playthrough. It plays the level named, reached as the game reaches it: each stage before it ended at its goal by the model’s own rules. Exits 1 when a rule breaks, it can’t be finished, it is too close to the original’s layout, or it couldn’t be played to its end (NOT CHECKED, never a pass) |
gp localize |
Find play no run has made yet: branches that only went one way, what guards them, where in a level that could change, and a search sent there (docs/localize.md) |
gp loop clean |
Clear the build folders the loop left: each ended worker’s cargo target ($GP_HOME/work/target/loop-STEP, or under $GP_TARGET_DIR) and the folders of $GP_HOME/work/regenerate no run touched in six hours, and of those still in use (the gate’s home’s too) the score cache files older than a day, and the worktrees ($GP_HOME/work/loop/trees/STEP) of workers that ended a day ago with no card open, holding a yes or running on their step (their branches stay), and print what each freed. A live worker’s build and worktree are kept. The branch (loop/STEP) of a worktree that is gone is deleted too, unless a card of its step still waits. gp serve’s runner removes a worker’s build itself when its step ends; this is for what is left (gp loop health says PROBLEM under 20 GB free) |
gp loop health |
Is the loop set up to run on its own? The checks the agent watching the loop runs instead of doing the work: a gp serve answering for the home on the published build, the runner on with a worker command, no halt, the yes cards taken and none failing, no row marked working with no worker on it, the games checkout clean (local changes block every landing), 20 GB free on the home’s disk (else the biggest folders gp loop clean clears), the workers’ trees and branches left, how the last day’s workers ended, the open rows with no target, whether the installed agent takes the flags the runner gives a worker, and, when nothing runs, what the loop waits on. Each problem says how to fix it. Then each game’s scoreboard (GAME/scoreboard.toml’s lines: the game state, background and sprites matched, and how each moved), as gp serve last measured it. Exits 1 on a problem. Reads only |
gp loop hook |
The gp plugin’s hooks for Claude Code (plugin/hooks/hooks.json, docs/plugin.md): reads the hook’s JSON on stdin and prints its answer. session-start puts the loop’s state and gp progress –next in the session; pre-tool-use refuses a hand edit in a game’s folder of a games checkout; stop refuses the first stop while a yes waits to be used or a card raised in the last half hour waits for the person. A worker the runner started (GP_STEP) gets none of them. Reads only |
gp loop replay |
Score the workers by running one again on a finished row (docs/worker-evals.md). –pick N makes the replay set: N archived rows with a landed commit, spread across tool, page and model fixes, each with the commit before its landing as its base. ROW (GAME/ROW, or a row’s name) runs its trials: a worker with today’s brief and tools in a fresh worktree of the base, in a scratch home of its own, then the gate’s dry run on what it made. Nothing lands, and the trial’s worktree and branch are removed. –report prints each label’s pass rate, the share of tasks that pass every trial, and the mean turns, cost and refusals. With no row it lists the set. It starts paid workers: only the person runs it |
gp loop resume |
Clear objection ID once a commit on the tool’s branch adds a line naming it (a test that pins the rule change). The tool gate does this itself for each patch it lands; this is for one that landed another way or before. Run in the gameprinter checkout. Only the person runs this |
gp loop set |
Change the home’s loop settings ($GP_HOME/loop.toml) and print them. With no flag, print them. Only the person runs this: gp_run refuses it, so an agent can’t turn the loop’s rules off |
gp loop set-aside |
Set aside the games checkout’s local changes under GAME/ (the files gp loop health names under its problem), so a landing there can go on: they go into a git stash of the checkout named for the game and the day, files git doesn’t track too, and git stash apply brings them back. Nothing is removed. Through gp_run it needs the person’s yes (its card lists the files), and runs in the person’s checkout, never a worker’s worktree |
gp loop stats |
What the loop’s workers cost and did over the last days: runs, landings (by workers and by hand), the cost of a worker’s landing, the cost of the runs that landed nothing, the cache hit rate, refused tool calls and turns a run, and the median time a card waited for the person against the median time a worker worked, in all and for each day. Read from the runs ledger gp serve’s runner writes as each worker’s try ends ($GP_HOME/work/loop/runs.jsonl, from each log’s result line), the gates’ landed lines and the cards. It records each whole day’s numbers in the metrics store (loop.workers.NAME), so a change to the brief, the tools or the model can be compared before and after. Reads only, but for those metrics |
gp loop steps |
The open steps of every game and copy in the home (docs/loop.md): each with its id (a hash of its command and the facts it was decided from), who does it, what it says, what it touches and the gp commands it runs. No two open steps touch the same thing. gp_run’s step cites one of these ids. Reads files only |
gp loop wrong |
Mark an open step wrong, with why: the loop halts (next emits no steps, gp_run runs none, the runner starts no worker) until a change to the tool that names the objection’s id lands through gp tool gate. The page’s WRONG does the same. Only the person runs this |
gp mcp setup |
How to connect your agent (Claude Code, Codex, Cursor, Gemini CLI, VS Code) to gp mcp: what this machine has of each, the line that connects it, and with –write the connection made after printing what it writes |
gp mechanic approve |
Lock a look the owner said yes to: the row’s clip (a corpus clip, or clip N once it is in the corpus), its frames and look (the game’s own) are measured on the game as it is and written to the game’s approved.toml, each frame’s pixels apart from the original. The model gate then fails a change that draws one of those frames further apart. Run it on the owner’s yes only, and again to move the lock (docs/gate.md, “Approved looks”) |
gp mechanic autoplay |
Runs the game’s own auto-player: the game whose romset --rom ZIP is (its identity in a game’s roms.toml) names one in its folder’s checks.toml [autoplay], a cargo package gp builds and runs or a program, and gets the flags as given (--rom ZIP --help lists them). A game without one has none, and this says so. gp mechanic triage runs it |
gp mechanic busy |
Say what you’re doing while it’s your turn (“measuring the jump”): the person’s page shows it until your next turn |
gp mechanic clip-save |
Save a clip in the snapshot format from an input log that runs from power-on: the frames before --start are stored once as a path, the state there is hashed (and checked on load), and the clip keeps only its own --frames frames. --as N writes it over clip N (to convert a clip saved the old way); else it’s the session’s next clip |
gp mechanic compare |
Answer a question that the measurements settle, with no model and no judgement: the tallest jump of clip NEW against that of clip OLD, measured from RAM (on an arcade game, whose player doesn’t jump, how far across each took the player). The person sees both clips together and only checks that the measured jumps are the ones in the clips |
gp mechanic contacts |
Find where the player’s head hit something in a clip and what changed then, read from RAM and sprites. A rise that turns over by 3 px a frame at once, where gravity turns it 1 px at a time, is a hit. The bytes that had held still and changed at the hit, and the sprites that appeared after it, are what the hit did. Uses the ROM dataset’s player bytes and names, or the game’s mapping; nothing about any one game. On arcade the board’s work RAM and sprite list |
gp mechanic demo |
Make a clip of the mechanic with a decision model at the controller: from a clip’s start in the session, every few frames the model gets the player’s state and the hint and picks the buttons to hold, until the mechanic shows (for a jump, --times jumps up and back down) or the frames run out. The page shows it as it plays. The clip goes into the session, made by the model, with each decision’s probabilities beside it. The player’s place is read from the game’s state mapping; on an arcade game the model picks among the board’s chords and plays its frames without counting jumps |
gp mechanic harvest |
Mechanics from a long recording in the store (a TAS run): it is replayed once and every detector runs over it; each kind of event gets an example clip per level (a session harvest-LEVEL) and the kinds are listed as candidate mechanics, matched to queue rows. --add notes the matches on their rows and adds the rest as “next” |
gp mechanic import |
An old home’s mechanic work for GAME, brought into this home: its sessions (clips, conversation, watch files), the quest log, the gate’s scores and the sealed runs. The old name is –old-name, else the games checkout’s corpus.toml [import] prefix (the old source id its clips were imported under), else GAME. Nothing here is overwritten: a session this home has but never used takes the old one’s place; one with clips or conversation of its own is kept and listed |
gp mechanic leads |
New mechanics to look at: every clip of every mechanic of GAME is replayed, and the routines and RAM bytes the ROM dataset says stage 0’s runs reached but no clip did are grouped by the routine (one the clips run) they branch off from. Each queue row’s open items are leads too. Best first; --add puts the top ones in the queue |
gp mechanic log |
Add a line to the log the person watches beside the game: what you’re doing now. The newest line is your status |
gp mechanic pin |
Pin a picture or a clip (png, jpg, gif, webp, mp4, webm) for the person to see beside the game: a sheet of frames, the original against the model. It’s copied into the session. The newest few show; --keep keeps one at the top. --drop N takes pin N off instead |
gp mechanic probe |
Run the game’s probe recipes, from its package folder’s probes.toml. Each starts from power-on, a stored path or a mechanic clip at a frame, plays its steps (presses, a walk to a RAM value, presses held until a RAM test holds), and takes its measures from RAM after each frame. A sweep plays one cell a value of its variable. Each measure with an expected value is checked, and a probe that names the clips it reproduces is compared with them, input for input from power-on. --save writes a cell with no saved clip into its session. --import SESSION:CLIP prints a saved clip as a probe to start from |
gp mechanic problem |
Add a row to the problem table the person watches: where, what is wrong, the change that fixes it and its state (open, working, fixed, wontfix). With --n, changes the fields given of row N |
gp mechanic propose |
Add a quest-log row the loop found it needs, with no card: status next, its note “Proposed by the loop: WHAT (from FROM)”. A worker that finds a problem outside its own row proposes it here, with its test (--goal, and the request the triage gives the person), which goes in the same call in the home’s triage.toml for the game, beside its quest log (never the games checkout), so the triage tries the row first. A row the quest log has (any status) is left as it is |
gp mechanic queue |
The game’s quest log, shown beside the game: each mechanic with its status (done, asking you, agent working, in line, next) and one plain line. With --status, adds the mechanic or changes it; without, prints the quest log. A row whose clips are in the corpus takes a line of scores from the gate’s status.json, and keeps its typed status; the typed note is shown under it. A row done for an hour is moved to the game’s archive by gp serve’s runner; --archived lists the archive instead (with a row’s name, that row; with words, the rows that hold them) |
gp mechanic say |
Say something to the person in a session: an answer, what is now known, a question or the clip you want next. It shows over their game, which pauses until they answer. With --choice they pick one with the controller. A clip replays under the words when --show is given |
gp mechanic screen |
Set what the game’s screen page shows (gp serve’s /mechanic/GAME/screen.html: the original and the model) and print what it shows, so the person sees what you talk about. The parts left out stay as they are; with none it only reads. The same as the screen_show tool |
gp mechanic show |
Show what a session holds, for the agent: the mechanic and its clips with their notes, the conversation and whose turn it is |
gp mechanic start |
Open a mechanic’s session and serve its page on 127.0.0.1: the game to play, record clips of the mechanic in and hand them to your agent. Makes the session if it is new. Runs until stopped |
gp mechanic sweep |
A sweep of one mechanic: a grid of clips from one spot, each played on the original and on a rebuilt model in lockstep. jump (the jumpathon) varies the takeoff speed, how long A is held and the steering in the air, from open flat ground found blind. The grid says which cells the model gets wrong and what parts first |
gp mechanic triage |
The tools try each quest log row and each lead first, with a budget, so the queue holds only play the tools can’t get: the corpus’s clips, the row’s scripted presses, the game’s auto-player with its search (from power-on and from save points), seeded presses from the row’s near point, and the demo with Laya. What a row has to show is its test in the package’s triage.toml. A run that shows it is saved into the row’s session as a clip made by the tools and the row is marked “made by the tools”; else “needs you”, with why, and a request: a start point (a path and a frame), what to do and when to stop, which the page’s PLAY FROM HERE loads |
gp mechanic video |
Make a clip’s video, the evidence a finding cites: the clip’s start is checked against the state hash it was saved with, its inputs from power-on are stored as a recording, and gp video draws its frames (checking each as it draws) into $GP_HOME/videos |
gp mechanic wait |
Wait until it is the agent’s turn (the person handed off a clip or answered), then print the session as show does. Run it in the background after each turn you give the person. Without a mechanic, waits on the one the person has open, and also returns when they pick another from the quest log |
gp mechanic watch |
The watch panel on a page of its own, on 127.0.0.1: what your agent is doing (its log, pins and problem table) and a box for your notes, for work with no game to play in the mechanic page, such as a new platform’s emulator. Makes the session if it is new. Needs no ROM. Runs until stopped |
gp metrics check |
Check metrics against a budgets file; fails if any is over, or missing from the run group |
gp metrics record |
Record one metric value |
gp metrics report |
Write the HTML trend report |
gp metrics time |
Run a command and record <name>.duration (ms) and <name>.exit |
gp movie diagnose |
Find where a recorded movie stops fitting the game: input changes the game never read (made on lag frames and gone by the next read) and changes inside lag runs. A TAS wastes no input, so the first one marks where the replay left the author’s path (docs/movies.md) |
gp movie hashes |
Print the hashes movies name a ROM by (FCEUX’s MD5, BizHawk’s SHA-1), for a game’s roms.toml, and check them against the registry |
gp movie import |
Turn an FCEUX .fm2 or BizHawk .bk2 movie, or a MAME .inp recording of an arcade set, into an input log. The movie must name the target ROM by hash (a .inp names its set); one made on another revision is refused with exit 2 and the revision it names. It imports buttons only, and gp record (or --record) derives the lag frames |
gp noop |
Do nothing, but record a run. Measures command startup cost |
gp oracle check |
Record baselines in gp-nes and in Mesen (on each platform), diff them and check every class is triaged, all in a temporary store. just check-mesen runs it. Known fork bugs are listed but don’t fail it. Baselines without their ROM in $GP_ROM_DIR are skipped. Exits 1 if a class isn’t triaged or two platforms’ Mesen runs differ. A game’s captures file (GAME/oracle/mame-captures.toml) plays each capture’s input on gp-arcade against the MAME capture it names by hash, kept under $GP_HOME/work/oracle/; a capture not on this machine is skipped with the command that makes it, and one that differs on a frame fails |
gp oracle diff |
Compare two recordings field by field. Each divergence is reported with the fields that differ and its classes, then the diff resyncs and looks for the next. A gp-nes recording as A runs live, so the resync copies B’s values into it. Stores the report in the store. Exits 1 if anything differs. An arcade recording as A is played on gp-arcade and compared frame by frame with a MAME capture as B (its RAM, input ports, picture hash and AY writes) |
gp oracle golden |
Mark a gp-nes recording golden after diffing it against its Mesen recording. Every class must be triaged and none a fork bug; then the verdict is stored with the triage records it relied on, and the recordings log gets a golden entry. Exits 1 if it can’t be golden. An arcade recording is held to a MAME capture that a game’s oracle/mame-captures.toml names (--against NAME), checked by its hash: golden when it ran the capture’s input and every frame matches |
gp oracle record |
Run a recording’s input log from power-on in Mesen 2, in its Docker image, and store what Mesen did as a recording of its own (runtime mesen2). Needs just mesen-build first. An arcade recording runs in MAME instead (just mame-build), its capture kept under $GP_HOME/work/oracle/ (docs/oracle-mame.md) |
gp oracle triage |
Set the triage of a divergence class in oracle/triage.toml |
gp picture |
The picture-gap detector: a scored run’s clips played again, and the screen measure’s boxes on each compared frame put down to a cause |
gp progress |
How far along printing a game is: a ladder of nine stages from the ROM to the whole game played identically (docs/progress.md). With --next, where the port stands and the one next step, and who does it |
gp query |
Read raw console state such as ram[0x0770] or cpu.pc at a frame of a recording. It reads the frame from the recording’s trace if it has one. For bus[...] or a recording without a trace it restores the nearest checkpoint and replays, and exits 1 if the state it reaches isn’t the one recorded |
gp reach |
Run a ROM under clips and say what its code did. It lists the PRG bytes the code executed and every transfer of control by bank, with the pointer values at each jmp (ptr). gp-events names these levels L0 and L1 (docs/research/rom-event-model.md). Each clip runs from power-on: its start’s presses (or a recording’s input) and then its own. Addresses are named as gp model static names them; the same ROM and clips give the same output. With –window or –diff-*, it reports by routine of the code map instead, and can compare two sides (docs/code-reading.md) |
gp record |
Run a ROM from power-on through an input log and store a recording (docs/recording.md) |
gp recordings list |
Every recording in the store, one line per name, oldest first. Reads the recordings log and the manifests it names |
gp recordings show |
Show a recording’s names and manifest summary, and the store objects it uses with their sizes |
gp replay |
Replay a recording and check every frame against it |
gp rule jump |
The rule for the player’s motion in the air during a jump: the bytes that carry its fractions and the gravity each frame, read from the clips, and how many frames of each jump the rule reproduces |
gp rule lane |
The rule for a player who moves between lanes (a server moving between bars): each lane’s row, the frames a move to another lane takes and keeps the stick busy, where the player lands on the new lane, the walk along a lane, and the step back after a send. Fitted from the clips and checked against the original frame by frame |
gp run-until |
Run a recording until a condition over raw state holds, such as ram[0x0770] == 1, and print the frame where it does. A recording with a trace needs no replay up to its last frame. It exits 1 if the condition never holds, or if the state it stops at isn’t the one recorded |
gp runs list |
The most recent runs |
gp scorecard |
What capture has found so far for each game: one row per game |
gp sealed leaks |
List every stored recording, mechanic-session clip and corpus clip of a game that plays one of its sealed runs, the ones every other tool refuses. Only the coordinator runs this command. It reads $GP_HOME/sealed itself, but prints only each leak’s ID and the name of the sealed run it matches, never frames or presses |
gp sealed score |
Score a sealed run on a model the way gp clip score scores a clip (straight through and with resync, with the original’s random draws when the mapping sets score_draws). It is for the coordinator alone; a worker never runs it, since the run’s frames and scores would tell it what the sealed run holds. Everything it writes stays under $GP_HOME/sealed/GAME/, the scores in scores/RUN/ and a line (the model’s hash, both percentages and the longest stretch) added to ledger.txt |
gp self check |
Say what works on this machine and what doesn’t, in plain words: gp’s home, an agent (whether one connected to gp mcp this week, which agents this machine has, and the line that connects one), your ROMs, a games folder, curl, git, Rust, the build sandbox, Node, a headless browser and MAME, each with what needs it and how to get it; then it uses what a released gp carries, from its bundle alone with the checkout gp was built from hidden: the page’s files, the templates, the module kit, a module built from it (when Rust and the sandbox are here) and the page’s server answering on a free port, each ready, failed with the path it tried, or skipped and why; then whether this machine is ready to make a theme, make a game, or port one. A gp built from source carries no bundle: it uses the checkout it was built from in its place, says so on its first line, and fails when that checkout is gone. A use it skipped is named on a line of its own at the end. Writes only under $GP_HOME. Exits 1 when gp can’t write its home folder or a use failed (or, with –strict, was skipped). Example: gp self check |
gp self commands |
Print every command this gp has, from its own command tree: each one’s words, help, and arguments and flags with their kinds, for gp mcp’s gp_commands and gp_run (docs/mcp.md, “Every command”) |
gp self docs |
Write the command list, CLI.md, from the commands gp has. With –check, fail if the file differs |
gp self features |
Print the named features this build knows as Markdown (the source of docs/features.md, which just docs writes) |
gp self path |
Print the newest published build: the file $GP_HOME/bin/gp points at, which the tool gate keeps at the newest commit it built gp for. A worker that isn’t changing Rust runs this build instead of building gp. Exits 1 when none is published yet |
gp self publish |
Publish this binary as the build of the commit checked out here, as the tool gate does after a landing. For a first setup, before any gate has run: just publish. Refuses a tree with uncommitted changes |
gp self schemas |
Write every format’s JSON Schema into DIR, one file per format with no version in its name, as schema/README.md says. just docs runs it on the schema/ folder |
gp self shell |
Write the runtime shell’s generated files (docs/shell.md): the storage interface’s bindings from wit/shell/storage.wit (a Rust trait in gp-present and the JavaScript host’s check) and the web preview’s copy of the key table (scripts/web/page/shell-keys.js). Run in the repo; just docs runs it |
gp solve |
Each non-exact clip of a scored run, its detector class and its proposals for the model’s numbers. Never writes the model |
gp sound banks |
List the sound banks. The APU synthesizer comes first, then the SF2 and SFZ files found in $GP_SOUND_BANKS and $GP_HOME/sound-banks |
gp sound capture |
Write a recording’s APU register log and derive its songs, effects and instruments (docs/formats/apu-log.md, docs/formats/songs.md) |
gp sound compare |
Hold a register log to the original’s, frame by frame: the frames whose writes are the same, and those whose every channel’s state is (gp_sound::compare). gp interp compare and gp clip score measure the same in their lockstep. Exits 1 when a frame’s channels differ |
gp sound decode |
Read songs from the game’s music data with a registered driver’s decoder, and cross-check them against a capture’s songs. On arcade the driver’s decoder reads an AY register log (--ay-log) |
gp sound drivers |
The sound drivers the registry knows |
gp sound fidelity |
Hold songs to the register log they came from: note onsets, pitch and volume per frame, and the two renders’ loudness |
gp sound render |
Render a song, or a register log, to a WAV file through the APU synthesizer (or a sound bank mapping). An AY register log or AY songs play through the arcade board’s sound (gp_arcade::sound) |
gp sprites capture |
Capture every sprite frame of every entity: the frames the game’s sprite tables define (sprites.toml says where and in what shape) and every distinct frame the recordings show on each entity, merged into one sprite-set with each entity’s clips by model state, their timing, palette variants and coverage. The set is written to the lifted assets; the model with its sprites is written beside it as a proposal, or over the template’s with --apply |
gp sprites schema |
Print the schema of the image format config as JSON (schema/image-config.json) |
gp store gc |
Delete objects that no recording uses and that were unused at the previous gc --yes too (docs/recording.md). Without --yes, lists what it would delete and writes nothing. It deletes nothing and exits 2 if a manifest or log line can’t be read. It also exits 2 while another command writes to the store |
gp store get |
Write an object to a file, or to stdout |
gp store put |
Add a file; prints its hash |
gp store reindex |
Read the recordings log and the manifests it names, and report what they hold. gameprinter keeps no index file (it reads the log each time), so this writes nothing |
gp store stats |
Object count and total size |
gp store unreferenced |
List objects that no recording in the recordings log uses, without deleting anything. Exits 2 if a manifest or log line can’t be read, since the objects it names would then be listed wrongly |
gp store verify |
Re-hash every object and report any that changed |
gp testroms built |
List our own test programs, which are built rather than downloaded: each one’s path under $GP_HOME/work/test-roms and the source in the repo it’s built from, tab-separated. just build-testroms reads it |
gp testroms fetch |
Download every test ROM that’s missing into $GP_HOME/work/test-roms, checking each against its pinned SHA-256. Exits 1 if a file’s hash differs from its pin, 2 if a download failed |
gp testroms run |
Run the suites and report each ROM. Downloads missing ROMs first and skips, with a notice, any it can’t get. Records each suite’s pass count as testroms.<suite>.passed and .total. Exits 1 on a failure not listed as known in the manifest, a known failure that now passes, or a download whose SHA-256 isn’t its pin. The suites are the NES’s; an arcade board is held to MAME with gp oracle diff |
gp tool gate |
Hold a patch to gameprinter to the tool’s checks (just check, which holds Moss Hop through the patched gp, and every test), and land it when it passes (docs/gate.md) |
gp trace diff |
Compare two recordings frame by frame and report the first frame whose state differs, with the fields that differ. Exits 1 if they differ |
gp trace fields |
Print the field table a recording’s states follow: each field’s name, kind and width, in order |
gp trace frame |
Print the state at one frame, by field. Read from the recording’s trace, or by restoring a checkpoint and replaying when it has none |
gp trace instructions |
Print one line per CPU instruction over a window of frames, in the layout of nestest.log, by restoring the nearest checkpoint and replaying up to the window. An arcade recording prints both Z80s’ instructions in time order, M the main CPU’s and S the sound CPU’s |
gp trace verify |
Check a recording’s trace against its frame hashes. Exits 1 if a frame doesn’t match |
gp track |
Find a recording’s objects from its frame trace without a hand-written mapping: sprites followed from frame to frame, the RAM bytes that hold their positions, and a proposed [slots] section (docs/formats/tracks.md) |
gp validate |
Hold a model to its fidelity contract against recordings of the original (docs/validation.md): the contract’s rules compiled into checks, each recording’s input run on the original (read through the state mapping) and on the model, and compared. With neither --against nor --store, the check that fits the game, chosen from what its folder holds and said in words: that contract against the checkout’s recordings of its original when there are some, a port’s corpus score (NES or arcade), or, for a game changed on purpose or made new, its model well formed and every stage reached and finished. Exits 1 when a check fails, 2 when no recording could be run |
gp video |
Replay a recording with video rendering on and write it as an animated PNG with frame, input and event overlays (docs/video.md). Each frame is checked as it’s drawn; exits 1 if one differs, unless another runtime made the run. An arcade recording draws the board’s picture |
gp watch detail |
L3 for frames A..B (or A..=B) of a recipe the session ran, as gp reach --detail gives it |
gp watch events |
Print a session’s events after --after (a seq), one JSON line each. With --follow, keep printing new ones as the writer adds them, until it is done |
gp watch explore |
Search again from the session’s start clips (as gp explore, aimed at the stops left by default), writing into the session |
gp watch list |
List the sessions, with their ROM and how many events each has |
gp watch point |
What is under a box of the screen (--rect X,Y,W,H in picture pixels) at a frame of a recipe: the sprites there and the routine that last wrote each one’s bytes in the sprite table |
gp watch rerun |
Run the session’s recipes again watching addresses (--watch $F0) and hooking instructions (--hook 01:8000, --hook sub_C1FB; on an arcade romset a main-CPU address, --hook 0158), writing each write and call as watch and hook events, a hook with its CPU’s registers (at most 200 for each in each recipe; the rest are counted) |
gp watch start |
Open a session and run stage 0 in it: read the ROM alone, run the start clips (stage 0’s own starts, and --start’s), writing each frame’s novelty (code, banks, edges, pointer values, stops passed) as it comes, read again with the runs, then search as gp explore does and write each clip it keeps with its novelty. The events go to $GP_HOME/watch/NAME/events.ndjson |
gp worker confined |
Run python3 or cp confined to the worktree it is started in: the program may write only under that worktree and the temp folder, and has no network (sandbox-exec on macOS, bwrap on Linux; refused where neither is there). A loop worker’s shell is not allowed python3 or cp themselves, since either writes anywhere the person can; this is how it draws a theme’s pictures with a script or copies a file into its worktree. Give the program and its arguments after --: gp worker confined -- python3 draw.py. Exits with the program’s exit code |
gp worker env |
Print a worker’s setup. The setup is its private output folder ($GP_HOME/work/workers/NAME, made if missing), the cargo target folder of the worktree it runs in ($GP_HOME/work/target/BRANCH/HASH, HASH from the worktree’s path; $GP_TARGET_DIR replaces $GP_HOME/work/target), the build profile (fastdev) and the gate’s published gp ($GP_HOME/bin/gp), a nice level from the machine’s load, a job limit of its cores divided by the loop’s workers in a tool worktree now, and the rules every brief repeats. It says when gp serve’s runner started the target folder as a clone of the tool gate’s build. With --shell, the same as lines for eval "$(gp worker env NAME --shell)": exports of GP_WORKER, GP_WORKER_OUT, CARGO_TARGET_DIR, GP_PROFILE, GP_BIN, GP (the gp the games repo’s just check runs), CARGO_BUILD_JOBS and GP_JOBS, $GP_HOME/bin put first on PATH (so gp is the published build) unless --rust, a renice of the shell, and the rules as comments |