prompt-rail

Reviewed at commit 0c6cc5e New version, not yet reviewed

A rail of your session's prompts beside the transcript or above the prompt; hover to read one, click to jump to it.

Made by
oikon48
What we checked

Shows a rail of your session's prompts beside the transcript, above the prompt box or now also under it, with each prompt's duration, tool count and edited file names on hover; clicking or a /prompt-rail command jumps to a prompt. It reads the session's own transcript file, makes no network calls, and only stores its layout choice and recent transcript paths.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since e01f450; the rest carries over from the review at that commit. Carried over: a fourth mode, below, draws the rail on a row under the prompt hint line (ui.render PromptHint, terminal only; the desktop app keeps the band above), with step buttons, and /prompt-rail <mode> answers with a small text picture of the placement. When no classic SessionStart or Stop hook names the transcript, the plugin finds it itself: from $.plugin.root it derives the Claude config folder (only for a plugin installed under plugins/cache), builds <config>/projects/<cwd with non-alphanumerics replaced by ->/<session id>.jsonl for the launch directory, $.session.cwd and $.session.root, checks $.fs.exists, and for over-long folder names lists the projects folder with $.fs.list and uses only the names for prefix matching. This is the current-session transcript; no other session's file is chosen and no folder names are shown or stored. It resets its list on session.end for clear or resume, re-reads the transcript on turn.complete, and shows a one-time toast if no transcript is found. Hooks: session.end, ui.render PromptHint, turn.start, turn.complete and the classic SessionStart/Stop hooks. Transcript reading, the tail/PowerShell streaming for transcripts over 4 MB, the store and config calls are unchanged. Still no $.http, fetch, environment reads or eval. What changed in this version: a new boolean setting classicHooks (default true) in plugin.json; when the user turns it off, the module skips registering classic.SessionStart and classic.Stop (the handler bodies are only re-indented, not changed), so the rail then relies on the transcript lookup above. README text also changed. The tests, README and the unchanged pane rendering were not re-reviewed.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for prompt-rail

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/prompt-rail.svg)](https://modsforclaude.com/mods/prompt-rail/)

← All mods