Skip to content

Jev directory

CommunityJev Cookbooks

Snake Jev

A desktop Snake experiment where Jev assesses the board each tick and Python combines its answers into a move; one recorded run reached 29 foods in 461 ticks before trapping itself.
Stars
2
Language
Python
License
MIT
Reading time
3 min
Published by
Community
Author
siroccomask
Last verified
Sep 2026

siroccomask/snake-jev

User repository on GitHub

View on GitHub

Snake controlled by parallel Jev assessments, with one API call per game tick.

Forks
1
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

A desktop Snake experiment powered by Jev / System One. Jev assesses the board; Python combines its answers into a move. The original p5 Snake game handles movement, food, growth, and collisions. One recorded run reached 29 foods in 461 ticks, then trapped itself in its body. That is one run, not a reliability guarantee. The agent detects immediate hazards; it does not plan a route through the full body layout.

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

Highlights

  • Each tick makes one real API request with nine questions: wall collision, body collision, and food progress for turn left, straight, and turn right.
  • Code composes only Jev's answers: it prefers food progress among collision-free actions, then lowest assessed collision risk, then straight.
  • Inputs per direction are moves_before_wall, body_distance_moves, and food_offset_moves; behind is observed but not an available action.
  • Redacted traces in .jev_traces/ hold the request, the API answers, the code composition, and before/after board snapshots.
  • The agent detects immediate hazards but does not plan a route through the full body layout, so an incorrect assessment can still kill the snake.

Quickstart

bash
git clone https://github.com/siroccomask/snake-jev.git
cd snake-jev
uv sync
cp .env.example .env
uv run python sketch.py

Watch out

MIT-licensed. Needs uv, a desktop with OpenGL support, and your own Jev API key (JEV_API_KEY); tested on macOS with Python 3.12, other platforms are unverified, and each tick may incur API charges.

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