r/ClaudeCode • • 10h ago

Built with Claude I built prompt-rail, a Claude Code mod for jumping back to earlier prompts in a session

I built prompt-rail , a Claude Code mod that draws a rail of the prompts you've sent in the current session. Hovering a tick shows the prompt and a short summary of that turn (duration, tool calls, edited files, and how it ended), and clicking it jumps the transcript back to that prompt. You can also step through prompts from the keyboard.

Mouse works best with "tui": "fullscreen". After installing, start a new session and the rail opens on its own.

From your shell:

claude plugin marketplace add oikon48/prompt-rail

claude plugin install prompt-rail@oikon48

Or inside a session:

/plugin marketplace add oikon48/prompt-rail

/plugin install prompt-rail@oikon48

There are three layouts, kept across sessions, via /prompt-rail horizontal, /prompt-rail vertical, /prompt-rail below, or the Rail mode row in /config. Horizontal (the default) is a row of bars above the prompt input. Vertical opens a pane beside the transcript, and in 0.11.0 the top of that pane has a card: the prompt being read, which updates when you hover a row. Below puts the bars under the hint line, next to the status line.

A few limits: in the Claude desktop app the rail and hover cards draw, but a click cannot jump, because the app gives plugins no way to scroll the transcript. The below layout is for the terminal; the desktop app draws it above the prompt instead. A /compact command's own row cannot be jumped to, next cannot scroll further near the end of the transcript, and the mods API may still change between Claude Code releases.

It's free and MIT licensed. It reads the current session transcript locally, never sends your prompts or transcript anywhere, and collects no analytics. The only network request is optional and only if you confirm it. After 10 jumps, a jump in a later session may show a one-line, one-time survey asking whether to star oikon48/prompt-rail with your own gh login. It only runs gh after you confirm, and it goes away after 30 seconds or when you send a prompt. Privacy details: https://github.com/oikon48/prompt-rail/blob/main/plugins/prompt-rail/README.md#privacy

Source, screenshots, and the rest of the commands ⭐️:

https://github.com/oikon48/prompt-rail

If you try it and run into anything weird, let me know.

0 Upvotes

2 comments sorted by

•

u/AutoModerator 10h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/calunicornia 10h ago

arrow up for the win