Skip to content
kxzkPublic

About

📸 gotta find 'em all; spatial reasoning benchmark for LLMs

Resources

Stars

169 stars

Watchers

1 watching

Forks

Latest commit

 

History

64 Commits

Folders and files

Repository files navigation

SnapBench

A wildlife photography benchmark for vision-language models.
Inspired by Pokémon Snap. Piloted by AI.

Zig 0.16.0 Rust 2024 edition Python 3.11 or newer Models via OpenRouter

Quick start  ·  Benchmarks  ·  Results  ·  Development

Aerial view of Mariner Island showing coastal woodland, meadows, and animals along the paths
Mariner Island · Three animals to find · One drone camera

The task

A model pilots a drone around Mariner Island and photographs three animals. Each observation pairs a first-person image with the drone's pose; the world pauses while the model decides its next move.

Explore Frame Photograph
Navigate woodland, meadows, and coastal paths. Adjust position, altitude, and camera tilt. Capture a visible animal at sufficient image size.

Under the hood: Zig/raylib runs the world, a Rust controller calls models through OpenRouter, and Python runs the benchmark suite.

Results

Results coming soon.

Quick start

Tool Requirement
Zig 0.16.0
Rust 2024 edition support
Python 3.11+ with uv
Graphics OpenGL 3.3 or newer

Tested on macOS with Apple Silicon. Run commands from the repository root so assets can be found.

Fly it yourself

No API key needed. Change SEED to explore another layout.

git clone https://github.com/kxzk/snapbench.git
cd snapbench
make sim SEED=42
Flight controls
Control Action
WASD / arrow keys Fly relative to heading
Space / Shift (left) Ascend / descend
Q / E Turn
I / K Tilt the camera
Tab Switch chase / photography camera
P Photograph a framed animal
R Reset and return to manual control
F3 Toggle diagnostics
Esc Close

Let a model fly

Leave the simulation open. In a second terminal, from the repository root:

export OPENROUTER_API_KEY="your-openrouter-api-key"
make drone

The default controller uses Gemini 3 Flash Preview. To choose a model and limit the run to 50 decisions:

cargo run --release --manifest-path llm_drone/Cargo.toml -- \
  --model openai/gpt-5.6-luna --max-iterations 50

Run benchmarks

Close any manually running simulation first. Set OPENROUTER_API_KEY in the terminal running the benchmark. The runner builds the simulator and controller, then starts a simulation for each model/seed pair.

# All configured models; skip model/seed pairs with existing results
make bench

# One model
uv run bench/bench_runner.py --model google/gemini-3.8-flash

# Rerun that model, replacing its existing results as each run finishes
uv run bench/bench_runner.py --model google/gemini-3.8-flash --force
File or directory Purpose
bench/models.toml Model lineup and prices per million tokens
data/results-v2.csv New benchmark results
.snapbench/replays/ Controller replay records
data/results.csv Historical results from the original scenario

Development

make test   # Zig, Rust, and Python regression tests
make check  # Formatting, lints, and Python types

# With a simulation running: verify a full flight and replay it
make verify
make replay REPLAY=.snapbench/verification.jsonl

These checks require no model API calls.


Credits

About

📸 gotta find 'em all; spatial reasoning benchmark for LLMs

Resources

Stars

169 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages