dlepold

Prompt Draft Autosave Restore — Development skill for Claude Code

Development community

A Claude Code mod that keeps your unsent prompt draft across reboots, crashes and claude --resume.

How to install Prompt Draft Autosave Restore

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dlepold/prompt-draft-autosave-restore and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Prompt Draft Autosave Restore does

A Claude Code mod that keeps your unsent prompt draft across reboots, crashes and claude --resume.

Alternatives in Development

  • Memo — Memo MCP -- save and restore conversation across agents 109 ★
  • Resume Skills — Offline, local-only context migration skills across 9 coding-agent sources × 9 destination hosts (registry-der 43 ★
  • Zehn — Fuzzy-find any prompt across claude, codex, pi & opencode histories, then resume that session 28 ★

README

A laptop that just came back on after a power cut, the half-written prompt still in its input line

prompt-draft-autosave-restore

**A Claude Code mod that keeps the prompt you have not sent yet.** Type a long message, then lose the terminal before you press Enter: a reboot, a crash, a closed window. When you resume the session, the draft is back in the prompt box.

Demo: a prompt typed into Claude Code but not sent, the process killed, claude --resume, and the unsent draft back in the prompt box

Why

Claude Code saves your conversation, so `claude --resume` brings back everything that was sent. The text still sitting in the prompt box is not part of the conversation. It lives in memory only and is gone when the process ends.

How it works

The mod is a hooks module of about 230 lines. It runs inside Claude Code; there is no wrapper process and no extra binary.

  1. Every edit of the prompt box raises an event. 0.8 seconds after the last one, the mod writes the draft to its own store, keyed by the session id. Saving all the time, not only at exit, matters: a shutdown gives exit hooks almost no time, and a crash gives none.
  2. When the session starts again (claude --resume , or a terminal manager that restores its sessions), the mod waits until the prompt box is free, also through start-up dialogs, and puts the draft back. Nothing is sent for you.
  3. Sending the message, clearing the box or pressing Ctrl+C deletes the saved draft. Drafts older than 30 days are removed.

Drafts stay on your machine, in `~/.claude/plugins/store/prompt-draft-autosave-restore_*.json`. The mod makes no network connections.

Install

At the prompt of a Claude Code session in a terminal:

/plugin install prompt-draft-autosave-restore --marketplace dlepold/prompt-draft-autosave-restore

Answer `y` to add the marketplace, th