Grok Bot adds an evaluation loop that helps Jev recover from below the stage in Melee
Source read in fullRead first
Overview
To test Jev's reaction speed in Super Smash Bros. Melee, the author uses Grok Bot between matches to research tactics, annotate replays, build evals and write tactics. Jev plays in the inner loop with Cursor Agent SDK.
Workflow
- Trigger: Try Jev's seven-plus decisions per second in a fast game. The author first used Jev in 2048 a few weeks earlier and found a rare combination of quality, speed and low cost. Turn-based games waste that speed, so the author tests Super Smash Bros. Melee, known for fast play and good CPU opponents, and shares highlights of Jev playing Marth against level 9 CPU Falco.
- By hand: Define an inner and outer loop. Grok Bot maintains the outer loop and improves evals. Cursor Agent SDK and Jev run the inner loop, with one decision model reading deterministic state and selecting the best action from a deterministic tactic playbook. It runs about seven times a second and Jev picks in about 95 ms.
- By hand: Compute deterministic inputs first and distill each frame to text. Initially Jev inferred positions from game pixels each decision. Code now computes typed state: distance to stage edges, whether either fighter is offstage, frames until an attack hits, usable moves in range, incoming lasers and whether the opponent is shielding. Text is cheaper, faster and avoids pixel misreads. The same frame gives the same state and decisions can be replayed in evals. Jev never sees raw frames.
- Bot: Research tactics and build character-specific harnesses. Grok Bot researches tactics and combos online and creates a catalog for each character. Jev gets a lean system prompt and picks a named tactic such as recover_safe. Code translates it into stick and button inputs. The author says characters noticeably improved by reacting consistently to the same situation.
- Bot: Annotate replays and build eval sets. Grok Bot replays matches and labels the correct tactic at each point, or the author coaches a match and supplies notes. Use real traces, such as every frame at jab range where Falco hits Fox first, without a live game. Run the same code as live play and compare Jev's choice with labels.
- Bot: Decide what to do on a miss. Grok Bot is slower and more flexible. When hill-climbing stalls the author assumes the catalog probably lacks the right answer and writes a new tactic.
- By hand: Log state, selected tactic and executed playbook separately. Diagnose bad frame description, missing tactic, wrong selection or correct selection with failed execution. One state still said Falco's move was about to hit after it hit Fox's shield, so Jev kept shielding instead of countering. After the match logs show position, intent, decision latency and staleness when a pick took effect.
- Bot: Run the outer loop to add tactics. When evals stop improving, find uncovered moments in real matches and write tactics. Require eval passes and sometimes a live drill before adding them to the catalog.
- Bot: Add a recovery route for Marth below the stage. The old playbook died below the stage. A rewrite passed every offline eval but a drill starting below the stage drifted out and died because the eval pool had no such frames. Grok Bot added recover_marth_under_jump_out to jump outward first when the arc clears the underside and then use up-B to return. A live drill verified that Marth now makes it back most times. The drill runs before every formal match.
- Check: Use actual matches and comparison drills. For Fox versus level 9 CPU Falco on Battlefield with two stocks, 605/606 answers landed, median decision time was 95.5 ms and new answers landed at 7.38 per second. Falco won one stock to zero. Compare Marth's same recovery drill before and after the tactic: death below the stage versus successful recovery.
Key points and results
- Give the decision model text state. Pixels initially required position inference on every turn. Text is cheaper, faster and unambiguous, with repeatable state and replayable decisions.
- Choose tactics instead of individual buttons. The author calls the original button selection lazy and inefficient. Character performance improved after choosing named tactics and reacting consistently.
- A missing tactic cannot be selected. Recovery inputs depend on location: aim up-B toward the stage from above, toward the ledge from low, and jump out first beneath the stage to avoid hitting the underside and dying. Jev can select correctly from an incomplete catalog and still die.
- Offline evals miss live situations. Marth's rewrite passed every offline eval and drifted to death in a below-stage drill. Those frames were absent (author's claim, not reproduced).
- One live match measured. Fox against level 9 CPU Falco: 605/606 answers landed, 95.5 ms median, 7.38 new answers per second. Falco won one stock to zero (author's claim, not reproduced).
- Log separate parts to isolate failures. State, selected tactic and executed playbook identify an inaccurate frame description (shield hit still shown as imminent), missing tactic, wrong selection or failed execution. Fix each separately.
- Four parallel rules for a software factory (the author's view). Provide failing tests, type errors and diffs rather than raw data. Give agents tested scripts or functions to select for jobs like migrations and dependency updates. Turn real failures into labeled tests and rerun on changes. Wrap a fast agent in a slower flexible one that hill-climbs where possible and writes a new playbook otherwise.
- The author rates verification loops above skills and plug-ins. Much 2026 work pushed agents with skills and plug-ins. The author credits evals and verification for making Jev an expert-level Melee player and predicts a focus on inner and outer verification. The source gives no comparison figures.
Source
- Platform
- Blog
- Author
- Ryan Perry
- Published
- Categories
- Code and repos, Research
What this evidence label means
Source read in full
We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.