Skip to content

vipulgupta2048/token-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

token-snake

๐Ÿ token-snake

An LLM-themed Snake game for your terminal.
Eat tokens. Dodge hallucinations. Grow your context window.
Play while your AI agent thinks.

npm version license node version zero deps


โšก Play now

npx token-snake
token-snake-demo.mp4

Want music? Add --music for chiptune beats.

npx token-snake --music

Or install globally so it's always one keystroke away:

npm i -g token-snake
token-snake

๐ŸŽฎ How to play

Move the snake. Eat the good tokens. Avoid the bad ones. Don't hit the walls, obstacles, or yourself.

Key Action
W A S D / Arrow keys Move
H J K L (vi-style) Move
P Pause / Resume
Q Quit
Enter Restart (after game over)

๐Ÿ—๏ธ How it was built

An AI built the game you play while waiting for AI.

The stack is intentionally minimal:

  • Pure TypeScript
  • Zero runtime dependencies
  • Renders directly via fs.writeSync(1) to bypass Node.js stream machinery
  • Use alternative screen buffers and DEC Private Mode 2026 to eliminate any flickering

๐Ÿ“„ License

MIT ยฉ Vipul Gupta

About

๐Ÿ An LLM-themed Snake game for your terminal โ€” eat tokens, dodge hallucinations, grow your context window. Play while your AI agent thinks.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors