Repository navigation
feat: phase 2, the platformer world view - #2
Merged
Merged
Conversation
Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude and Codex sessions that wrote to their transcript in the last 10 minutes now get a lane even when agent-deck does not list them. - sources::discover::Discovery scans the Claude projects folders and the recent Codex day folders; Running within 60 s, Idle after that, dropped after the quiet limit. - sources::discover::Combined puts agent-deck's sessions first and leaves out discovered ones agent-deck already covers (same Claude project folder, same Codex cwd). If agent-deck fails, discovered sessions are still listed and the reason shows as the source error (new SessionLister::last_error). - Session::transcript lets a lister name the file to follow; the collector then follows only that file. - --no-discover turns it off; check still asks agent-deck alone. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The base of the platformer renderer, all in the library and pure. - world::pixels::Pixels: an RGB buffer with clipped set, fill_rect and sprite blit (palette index 0 transparent, optional mirror). - world::palette: Runeway's original 16-color palette with named indices (night sky, skyline shades, rune cyan and violet, glyph gold, gem green, brass, steel and more). - world::halfblock: pack two pixels into each `▀` cell, or one averaged pixel per cell for --lowres. An odd last row takes the buffer's background as its bottom pixel, so there is no stripe. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runeway's own pixel art, drawn as text maps of palette keys in world::sprites, with no asset files. - Cast (12×12, the drone 12×9): hooded rune-runner (Claude), brass automaton with a chimney puff (Codex), hover-drone (OpenCode), twin-spirit orbs (Gemini) and a visored cyber-runner tinted per agent (everyone else). Each has run frames plus jump, stumble, sit, stand and cheer poses. - Tiles (8×8): ground, rune brick, sigil block; a light-bar rune gate and a beacon tower. Items (6×6): glyph coin, data gem, spark; a cosmetic cyber-critter; three parallax backdrop strips. - examples/sprite_sheet.rs prints every sprite at 4× for a visual check. - tests/originality.rs fails the build if a borrowed game name shows up in src/ or the README. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- world::mapping::state_for turns an agent's activity and agent-deck status into a runner state, following the spec's table: reading collects coins, editing smashes a brick, a command enters a machine section, a failure stumbles, a pass or a new helper celebrates, waiting stops at the gate, idle sits, finished reaches the beacon, and an error or stopped agent loses signal. - world::runner::Runner holds the state, pose and frame and a little physics: a jump arc for smashing, a timed knock-back for stumbling, a timed cheer, then back to running. scroll_speed is 0 whenever the runner is stopped. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
world::lane::LaneSim turns one agent's lane state into a moving scene, drawn into a Pixels buffer. It is pure: time is tick(), randomness is a seeded xorshift (world::rng) keyed by the session id, so the same agent always gets the same level. - Layers: night sky with twinkling stars (1/4 speed), a backdrop strip chosen per agent (skyline, server racks or rune pillars, 1/2 speed), hanging sigil blocks and patrolling cyber-critters, then the ground. - Activity: each file read drops a glyph coin to collect; an edit hangs a rune brick that the jump breaks and a data gem pops out; a command shows turning gears and steam; a failure flashes red and knocks the runner back; a pass showers sparks; a new helper brings a companion; waiting stops at a rune gate with a pulsing gold glyph; finished reaches the beacon; an error greys the lane out with scanlines. A runner with nothing new for 30 s sits down. - agent-deck's idle and ready statuses now sit the runner down. - Snapshot test: a Claude lane editing, at tick 40, 160×22 px, stored as palette indices in tests/snapshots/lane_claude_tick40.txt (RUNEWAY_UPDATE_SNAPSHOTS=1 rewrites it). Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The live view now opens on the world: one lane per agent, drawn with half-block pixels. The phase 1 list is one key away (l). - Top bar, shared with the list: runeway · N agents · M waiting · Σ tokens. - Each lane is 12 rows: a HUD row (name, tool, glyph-coin token count, a context meter that drains as context fills, the current action), then 11 rows (22 px) of world from the lane simulation. - The selected lane has a cyan edge; a lane waiting for you has a gold one. - Lanes that do not fit become one compact line each, and the footer says how many are not shown in full; the selected agent is always drawn in full. - A terminal too small for one lane shows "make the window taller" (or wider) instead of a broken frame, and resizing never panics. - --lowres draws one averaged pixel per cell. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pacing: the animation clock runs at 30 ticks a second; frames are drawn at once on new data, a key or a resize, at --fps (5–60, default 30) while any lane moves, and at about 8 FPS otherwise. Between frames the loop sleeps until the next one is due. - --demo plays four scripted agents on a one-minute loop: a rune-runner reading, editing and passing its tests; an automaton whose command fails and then passes; a drone that waits at the gate; a twin-spirit that starts a helper and finishes at the beacon. - examples/frame_bench.rs draws 12 lanes at 160×48 cells for 300 frames: mean 0.30 ms, p95 0.34 ms in release here (target < 4 ms). - CI on GitHub Actions: fmt, clippy -D warnings, tests and docs on stable, plus cargo check on Rust 1.88. - README: the world view, the cast, what each activity looks like, keys and flags, discovery of agents outside agent-deck. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ore" From the whole-branch review: - When agent-deck fails for one poll (a timeout under load), Combined now keeps its last good list instead of answering with discovered sessions only. Before, every agent-deck lane vanished, came back as a discovered lane, and lost its animation state for a second. - A runner only sits down after 30 s with nothing new on its lane at all: streamed tokens count as activity. A long command (tests, a build) stays in the machine section until it ends. - The footer's "+N more" now counts only agents not on screen; lanes shown as one-line entries are not counted as hidden. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 turns Runeway's live view into a retro side-scroller: each agent gets a lane with an original pixel-art runner. It also adds agents running outside agent-deck, a
--demomode and CI.What changes
--no-discoverturns discovery off.▰▰▰▱▱and the current action. Below it are 11 rows of half-block pixels. The selected lane gets a cyan edge, a lane waiting for you a gold one. Agents that don't fit become one-line entries, and the footer counts the ones not on screen.lswitches to the phase 1 list.tests/originality.rsfails the build if a borrowed game name appears.--fpssets 5–60), about 8 when idle, and right away on input or new data.--lowresdraws one pixel per cell.--demoplays four scripted agents on a one-minute loop.-D warnings, tests and docs on stable, pluscargo checkon Rust 1.88.Verification
cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testall pass (146 tests).cargo +1.88.0 check --all-targetspasses.cargo run --release --example frame_benchdraws 12 lanes at 160×48 cells: mean 0.30 ms, p95 0.34 ms (target < 4 ms).runeway --demodrew frames, quit onqwith exit 0 and restored the screen.cargo run --example sprite_sheetshows every sprite at 4×.Before merge
cargo run --release -- --demo, thencargo run --releasewith real agents.Known follow-ups (minor): discovery rescans the whole Claude projects tree each second; titles of discovered Claude sessions use the last part of the folder name;
--lowresdoesn't reduce colors.Design:
docs/superpowers/specs/2026-11-27-runeway-design.md. Plan:docs/superpowers/plans/2026-11-27-runeway-phase2-platformer.md.👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code