Repository navigation
feat: phase 3, jump to agents, pause, OpenCode and live Claude status - #4
Merged
Merged
Conversation
Live status for discovered Claude sessions from Claude's session records, OpenCode agents from its SQLite database, Enter to jump to an agent's tmux session or Ghostty window, p to pause, and SVG screenshots for the README. The process fallback is dropped. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code keeps a small record per running process in ~/.claude/sessions/<pid>.json. Runeway now reads three fields from it (pid, sessionId, status) and never opens the .key files beside them. - A discovered Claude session takes Claude's own status: busy → running, idle → idle, anything about waiting or permission → waiting, so a discovered agent can stop at the gate too. Unknown values keep the transcript-age status. - Records whose process is gone are ignored. - Session::pid carries the process id, for jumping to the agent. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode keeps its sessions in one SQLite file (~/.local/share/opencode/opencode.db). Runeway now opens it read-only, with a 200 ms busy timeout, and reads only session_v2 and session_message. - Discovery lists top-level, unarchived OpenCode sessions updated in the last 10 minutes: named after their folder, running while OpenCode marks them busy. An agent-deck OpenCode session in the same folder is not shown twice. - Each poll asks for the newest assistant message's last tool call: read → reading; grep, glob, web → searching; edit, write, patch → editing; shell running / done / failed; a question → waiting for you. Only the tool name, its status, a file name and a command's first word are read. Tokens come from the session totals. - `runeway check` gains an opencode line; --opencode-db PATH overrides the location. A missing database is silent; a locked or unexpected one never panics or hangs. - New dependency: rusqlite 0.43 (bundled SQLite), which needs Rust 1.89, so rust-version and the CI MSRV job move to 1.89. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- An agent-deck session with a tmux session: inside tmux, Runeway switches to it; outside, the footer shows the attach command. - Any other agent: Runeway finds its process (the exact pid from Claude's session record; for Codex and OpenCode, the one process of that name in the agent's folder) and walks up its parents to the window that owns it, then asks Hyprland to focus it. Two Codex or OpenCode agents in one folder: it says it can't tell which instead of guessing. - jump::plan is pure and reads process info from a proc root passed in, so it is tested against a fake /proc (loops and odd process names included). The binary's jumper runs tmux / hyprctl without a shell, captures their output, and turns the result into a 3-second footer notice. - Hyprland 0.57+ takes Lua dispatches (hl.dsp.focus); older versions get the classic focuswindow form. - The help box no longer covers the top bar or the agent-deck notice. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- p stops every lane where it is and says "paused · p resume" in the footer; p again carries on from the same frame. Keys, the help and jump notices keep working while paused, and nothing is drawn at the full frame rate. - The animation clock keeps running while paused and the lanes simply skip those ticks, so resuming never races through the missed time. - The footer and help list Enter and p. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- examples/screenshot.rs plays the demo for 15 s and writes the world and list views as SVGs (docs/screenshots/): runs of one colour become one rect per half-row and text stays text, so they are small, sharp and reproducible with `cargo run --example screenshot`. - README: the world screenshot at the top, the list one beside the jump notes; Enter and p; OpenCode and Claude's session records in the sources table; Rust 1.89. - Demo agents now work at different paces, so their token counts and context meters differ. - The list footer mentions ⏎ jump. - tests/originality.rs also scans examples/, and matches "1-1" and "1up" only as words of their own, so dates no longer trip it. Project contributor 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the whole-branch review: - The list view (l) now shows jump notices and "paused" in its footer; before, Enter there gave no feedback at all. - A Claude session record only counts when its process started when the record says (procStart = /proc/<pid>/stat field 22). A pid the kernel has reused for another program no longer shows as a busy Claude or gets its window focused. - Finding a Codex or OpenCode agent's process now skips background services with no terminal (Codex's app server, `opencode serve`) and counts a wrapper and the process it starts once, so a single agent next to them is no longer "can't tell which". - If OpenCode's database fails for a poll (locked, mid-migration), its lanes stay instead of vanishing and coming back. 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 3 of the spec ("Delivery" item 3): Runeway can take you to an agent, pause, show OpenCode agents, and show a discovered Claude's real status. The README gets real screenshots.
What changes
Entergoes to the selected agent.tmux attachcommand outside.tmuxandhyprctlrun without a shell, with their output captured.hl.dsp.focus); older versions getfocuswindow.ppauses. Lanes freeze, keys still work, and resuming doesn't race through the missed time.~/.local/share/opencode/opencode.db:session_v2andsession_messageare read.runeway checkgains anopencodeline, and--opencode-db PATHoverrides the location.~/.claude/sessions/<pid>.json:pid,sessionId,statusandprocStartare read; the.keyfiles are never opened.busy→ running,idle→ idle, waiting → the gate.cargo run --example screenshotdraws the demo's world and list views as SVGs indocs/screenshots/. The README shows them and documents everything above.tests/originality.rsalso scansexamples/and no longer trips on dates.rusqlite0.43 (bundled SQLite) needs it. The CI MSRV job moves to 1.89.Verification
cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testall pass (149 lib + 27 bin + 11 CLI + 4 originality tests).opencode.db(v2.4.1) opens and queries with its real schema.Enteron the agent-deck lane showed the attach command, and on a Claude lane focused its Ghostty window.Known follow-ups (minor):
hyprctl clients -jruns on every Enter, with no timeout.tmux -tis not exact-match.checkwording for a broken database.Plan:
docs/superpowers/plans/2026-11-27-runeway-phase3-polish.md.👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code