Skip to content

Jev directory

CommunityJev Cookbooks

Jev Plays Pokemon Red

Pokémon Red under PyBoy where ordinary Python owns the route and arithmetic and Jev is asked only at branches, with each battle turn's faint prediction scored by Brier.
Stars
8
Language
Python
License
MIT
Reading time
4 min
Published by
Community
Author
valentynkit
Last verified
Sep 2026

Pokemon Red on PyBoy: code owns the route and the arithmetic, Jev picks at branches in about 100 ms, calibration measured instead of assumed

Forks
2
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

Pokemon Red played by a model that only outputs probabilities. Code reads the Game Boy's memory into a typed snapshot and hands the model a menu of the moves that are actually legal; it returns a probability for each one. The bars are those probabilities. uv run jpp play --rom /path/to/your/red.gb --overlay. That is a real cartridge under PyBoy, not a mockup. The agent walks out of the bedroom, crosses Pallet Town, takes Charmander from Oak, and wins the rival battle without anyone touching a key.

Quoted from the project's README. Read the full README.

Highlights

  • Code reads the Game Boy memory into a typed snapshot and hands Jev a menu of only the moves that are actually legal.
  • Measured through the Vercel AI Gateway shim at about 1.3 decisions per second and $0.14 per hour at ~725 input tokens a call.
  • Calibration is deliberately unpublished: the longest labeled run is n=5 turns, too small to beat a constant predictor.
  • Every battle turn carries a faints_this_turn Noul labelled from RAM, and measure prints the Brier beside the base rate.
  • In a recorded run Jev answered yes, 0.61 to taking Charmander and no, 0.58 to a nickname, which no fixed button survives.

Quickstart

bash
uv sync
cp .env.example .env
uv run jpp play --rom /path/to/your/red.gb --overlay

Watch out

MIT-licensed. Contains no game data, so you must supply your own Pokémon Red ROM, and tests run offline against fixtures without a key.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

Hacker News: Software Bombe and live Enigma demo where Jev ranks cribs and judges plaintext.

ag_212 pointsShow HN: Jev as the Bletchley Park Analyst: A Software Bombe on EnigmaRead the thread on Hacker News

Hacker News: Show HN for public Minecraft PvP where a diffusion LM picks moves from structured state.

2 pointsShow HN: Minecraft PvP against DiffusionGemma-as-Jev, 24 ms per decisionRead the thread on Hacker News

Hacker News: Show HN: Jev finished a Pokémon Red run, with the Hall of Fame stats on the landing page.

pancomplex272 pointsShow HN: Jev Plays Pokémon RedRead the thread on Hacker News

Hacker News: Show HN: a mouse colony where each next move is Jev or a fixed rule.

1 pointShow HN: Jev-mice – mouse colony simulation using Jev and deterministic engineRead the thread on Hacker News

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai