Park side-ideas mid-task with /idea, without Claude seeing them; list them with /ideas and send one later as a prompt.

Four mods for Claude Code:
Type these at the prompt of a Claude Code session in a terminal:
/plugin install prompt-enhancer --marketplace aravindsriraj/claude-code-mods
/plugin install design-picker --marketplace aravindsriraj/claude-code-mods
/plugin install assumption-tracker --marketplace aravindsriraj/claude-code-mods
/plugin install idea-shelf --marketplace aravindsriraj/claude-code-mods
The first time, Claude Code asks whether to add the marketplace (github:aravindsriraj/claude-code-mods): answer y. Then choose a scope; the user scope is listed first, and Enter picks it. The mod starts working in that session right away, and with the user scope in every session after.
Mods built on Claude Code's hooks API need a recent Claude Code; the API is in early access and may change between releases.
A one-line bar above the prompt box with an ✨ Enhance button.
fix the export bug.ctrl+x tab, then e. The bar shows "Enhancing…", then your draft is replaced with a rewritten prompt.s) or just Enter. Undo (u) puts your original draft back.The rewrite sees what the main model sees: your CLAUDE.md and memory files, the installed skills, and the conversation so far, so "the bug" can become a real file and function. On the first prompt of a new session, before there is a conversation, it reads your instruction files and skill names directly.
Good to know:
@file mentions or pasted images, and the transcript shows the message as sent by the mod. For those prompts, press Enter instead.When Claude asks you to choose a design direction with its AskUserQuestion tool (often while using the frontend-design skill), each option is drawn as a mockup above the usual list:
preview is an SVG it is shown as is; otherwise the card shows the label, description, color swatches for any hex colors mentioned, and the preview text.Press Pick on a mockup, or answer in the list below it as usual; whichever you do first is the answer Claude gets.
Which questions it takes: single-pick questions whose header or text mentions design, direction, aesthetic, visual, theme, palette, colour, typography, layout, mockup, UI or UX, when every question in the call is one. Everything else, including a call that mixes design and other questions, is drawn exactly as before.
Good to know:
While Claude works, it records each assumption it acts on: a requirement nobody stated, a project convention, a fact about the code it hasn't checked. It does this by calling the mod's record_assumption tool, which the mod lists in Claude's tools and tells it about in the system prompt, then keeps working without stopping to ask.
ctrl+x tab, then a. That opens a side pane listing every assumption, with Claude's reason when it gave one.Good to know:
/clear starts the list over.Park a side-idea without derailing what Claude is doing, and send it later.
| Command | What it does |
|---|---|
/idea <text> | Puts the idea on the shelf with a timestamp. Runs at once, even while Claude is working, and shows a 💡 toast. |
/ideas | Opens the shelf in a side pane, numbered, with a Send button per idea. Press its number (or click Send) to run it. Esc closes. |
/idea-send <n> | Sends idea n as a prompt and takes it off the shelf. |
A sent idea is submitted as your own prompt (the transcript labels it "Prompt from the idea-shelf plugin"). If Claude is busy it waits its turn. If the send is refused (by a hook, say), the idea goes back where it was on the shelf and a toast says why.
An idea that starts with / or ! would run a command or a shell line, so it is never submitted for you: it goes into your prompt box instead, and runs only if you press Enter.
Your idea's text is kept out of the conversation. The mod passes your /idea command on with its text replaced by [shelved for later; hidden from Claude], so Claude only learns that something was shelved, and /ideas draws the list in a pane outside the conversation. With Claude Code 2.1.308, the session file's records of the command (the queue entry and the command record) and your prompt history (up-arrow) get the placeholder too. Older versions can still write the text there.
Limits:
~/.claude/idea-shelf.md if you ask, as with any file.The shelf lives in ~/.claude/idea-shelf.md, one idea per line (- [2026-10-09 14:32] your idea), shared by every project and session. The mod keeps it readable by you alone (chmod 600, as Claude Code does for settings.json; not on Windows). You can edit it by hand: control characters and escape sequences are stripped when an idea is shelved and when the file is read. If HOME isn't set, /idea refuses rather than writing somewhere else.
Each mod is a folder with .claude-plugin/plugin.json, hooks/hooks.json and the hooks module hooks/register.tsx; .claude-plugin/marketplace.json at the root lists them all.
claude plugin validate .
claude plugin validate ./prompt-enhancer
claude plugin test ./prompt-enhancer
claude plugin validate ./design-picker
claude plugin test ./design-picker
claude plugin validate ./assumption-tracker
claude plugin test ./assumption-tracker
claude plugin validate ./idea-shelf
claude plugin test ./idea-shelf
To try a change, start a session with the mod loaded from your working copy: claude --plugin-dir ./prompt-enhancer. Claude Code then writes the API's type declarations into .claude-plugin/types/ and a tsconfig.json beside them, so tsc -p ./prompt-enhancer type-checks it; both are gitignored.
hooks/register.tsx 195 lines1import { atom, read, update } from 'claude-code'
2import type { EngineInterface, Register } from 'claude-code'
3
4import type { Idea } from '../types'
5
6const PANE = 'idea-shelf'
7const HIDDEN = '[shelved for later; hidden from Claude]'
8const NO_HOME = 'Not shelved: HOME is not set, so there is no ~/.claude to keep the shelf in.'
9
10const ideas = atom({ plugin: 'idea-shelf', key: 'ideas' } as const, [] as Idea[])
11
12/** The shelf file: plain markdown in ~/.claude, so it outlives sessions and can be edited by hand. Undefined without HOME. */
13const shelfPath = async ($: EngineInterface) => {
14 const home = await $.env.get('HOME')
15 return home ? `${home}/.claude/idea-shelf.md` : undefined
16}
17
18/** Text safe to keep and draw: escape sequences dropped, control and bidi characters spaced out, whitespace collapsed. */
19const clean = (s: string) =>
20 s
21 .replace(/\u001b\[[0-9;?]*[ -/]*[@-~]/g, '')
22 .replace(/[\u0000-\u001f\u007f-\u009f--]/g, ' ')
23 .replace(/\s+/g, ' ')
24 .trim()
25
26const LINE = /^- \[([^\]]+)\] (.*)$/
27
28const parse = (file: string): Idea[] =>
29 file.split('\n').flatMap(line => {
30 const m = LINE.exec(line)
31 const at = clean(m?.[1] ?? '')
32 const text = clean(m?.[2] ?? '')
33 return at && text ? [{ at, text }] : []
34 })
35
36const format = (list: readonly Idea[]) => `# Idea shelf\n\n${list.map(i => `- [${i.at}] ${i.text}\n`).join('')}`
37
38const pad = (n: number) => String(n).padStart(2, '0')
39const stamp = (ms: number) => {
40 const d = new Date(ms)
41 return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}`
42}
43
44/** Reads the shelf file (empty when there is none yet) and mirrors it into state for the pane. */
45async function load($: EngineInterface): Promise<Idea[]> {
46 const path = await shelfPath($)
47 const list = path && (await $.fs.exists(path)) ? parse(await $.fs.read(path)) : []
48 await update($, ideas, () => list)
49 return list
50}
51
52// ponytail: read-modify-write, so two sessions shelving in the same instant can lose one; fine for one person.
53async function save($: EngineInterface, list: readonly Idea[]) {
54 const path = await shelfPath($)
55 if (!path) throw new Error(NO_HOME)
56 await $.fs.write(path, format(list))
57 // Ideas can be private: owner-only, as Claude Code keeps settings.json. No chmod (Windows) leaves it as written.
58 await $.process.run(['chmod', '600', path]).catch(() => undefined)
59 await update($, ideas, () => [...list])
60}
61
62const isSame = (a: Idea, b: Idea) => a.at === b.at && a.text === b.text
63
64/** An idea that would run a command or shell line goes to the prompt box, for the person to send. */
65const isCommand = (idea: Idea) => /^[/!]/.test(idea.text)
66
67/**
68 * Takes `idea` off the shelf and sends it as the person's own prompt, or for a `/` or `!` idea puts it in
69 * the prompt box. A refused send puts it back where it was. Resolves to what to tell the person, if anything.
70 */
71async function sendIdea($: EngineInterface, idea: Idea): Promise<string | undefined> {
72 const list = await load($)
73 const at = list.findIndex(i => isSame(i, idea))
74 if (at === -1) return 'That idea is no longer on the shelf.'
75 await save($, list.filter((_, i) => i !== at))
76
77 const putBack = async (why: string) => {
78 const now = await load($)
79 if (!now.some(i => isSame(i, idea))) await save($, [...now.slice(0, at), idea, ...now.slice(at)])
80 return `Not sent (${why}); the idea is back on the shelf.`
81 }
82
83 try {
84 if (isCommand(idea)) {
85 const filled = await $.prompt.fill({ text: idea.text })
86 if (!filled.isFilled) return putBack(filled.refusal ?? 'the prompt box is busy')
87 return `It starts with "${idea.text[0]}", so it's in your prompt box: press Enter to run it.`
88 }
89 const sent = await $.prompt.submit({ text: idea.text, asUser: true })
90 return sent.drop === undefined ? undefined : putBack(sent.drop)
91 } catch (error) {
92 return putBack(error instanceof Error ? error.message : 'the send failed')
93 }
94}
95
96export const register: Register = on => {
97 on('session.start', async ($, e, next) => {
98 await $.command.register({
99 name: 'idea',
100 description: "Park a side-idea on the shelf for later, kept out of Claude's conversation",
101 argumentHint: '<text>',
102 immediate: true,
103 })
104 await $.command.register({ name: 'ideas', description: 'Show the idea shelf, with a Send button per idea', immediate: true })
105 await $.command.register({ name: 'idea-send', description: 'Send shelved idea n as a prompt and take it off the shelf', argumentHint: '<n>' })
106 await load($)
107 return next(e)
108 })
109
110 on('command.run', { command: 'idea' }, async ($, e, next) => {
111 const text = clean(e.args)
112 if (!text) return { text: 'Usage: /idea <text>' }
113 if (!(await shelfPath($))) return { text: NO_HOME }
114
115 const list = [...(await load($)), { at: stamp(await $.clock.now()), text }]
116 await save($, list)
117 $.ui.toast(`💡 Shelved #${list.length}: ${text}`)
118 // Passed on masked, so the engine's records of this run (the transcript's command row) hold no idea text.
119 await next({ ...e, args: HIDDEN })
120 return { text: `Shelved as idea #${list.length}. Parked for later, not part of the current task.` }
121 }).catch(($, e, next) =>
122 // Failed before passing the masked args on: answer here, so the command never runs with the idea in it.
123 next.called ? next(e) : { text: 'Not shelved: idea-shelf hit an error. Your idea was not saved.' },
124 )
125
126 on('command.run', { command: 'ideas' }, async $ => {
127 await load($)
128 await $.ui.open({ id: PANE, title: 'Idea shelf', focus: true, closeOnEscape: true })
129 return {}
130 })
131
132 on('command.run', { command: 'idea-send' }, async ($, e) => {
133 const n = Number(e.args.trim())
134 const list = await load($)
135 const idea = Number.isInteger(n) ? list[n - 1] : undefined
136 if (idea === undefined) {
137 return { text: list.length === 0 ? 'The idea shelf is empty.' : `Usage: /idea-send <n>, n from 1 to ${list.length}. /ideas lists them.` }
138 }
139 // A command's own hook may not submit (the prompt would wait on the turn it holds): send just after.
140 $.clock.after(0, () => void sendIdea($, idea).then(note => note && $.ui.toast(note)))
141 return { text: isCommand(idea) ? `Putting idea #${n} in the prompt box.` : `Sending idea #${n} as a prompt.` }
142 })
143
144 // Where the idea text would still reach the conversation or the transcript: the `/idea <text>` command row,
145 // and the message queue's record of the line as typed. Both keep the command, not the idea.
146 on('session.append', async ($, e, next) => {
147 const mask = (text: string) =>
148 e.door === 'queue'
149 ? text.replace(/^\/idea\s[\s\S]*$/, `/idea ${HIDDEN}`)
150 : text.replace(/(<command-name>\/idea<\/command-name>[\s\S]*?<command-args>)[\s\S]*?(<\/command-args>)/, `$1${HIDDEN}$2`)
151
152 let isMasked = false
153 const content = e.message.content.map(b => {
154 if (b.type !== 'text' || typeof b.text !== 'string') return b
155 const text = mask(b.text)
156 if (text === b.text) return b
157 isMasked = true
158 return { ...b, text }
159 })
160 return next(isMasked ? { ...e, message: { ...e.message, content } } : e)
161 })
162
163 on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
164 const { Box, Button, Text } = $.ui.resolve(e)
165 const list = await read($, ideas)
166
167 const sendOne = async (idea: Idea) => {
168 await $.ui.close({ id: PANE }) // first: the prompt box takes no fill while the pane holds the keys
169 const note = await sendIdea($, idea)
170 if (note) $.ui.toast(note)
171 }
172
173 return (
174 <Box flexDirection="column">
175 {list.length === 0 && <Text dimColor>{'The shelf is empty. Park an idea with /idea <text>.'}</Text>}
176 {list.map((idea, i) => (
177 <Box key={`idea:${i}`} flexDirection="row">
178 <Button
179 key={`send:${i}`}
180 label="Send"
181 {...(i < 9 ? { hotkey: String(i + 1) } : {})}
182 onPress={() => sendOne(idea)}
183 />
184 <Text>
185 {' '}
186 <Text bold>{i + 1}.</Text> {idea.text} <Text dimColor>({idea.at})</Text>
187 </Text>
188 </Box>
189 ))}
190 {list.length > 0 && <Text dimColor>Press a number or click Send to run that idea as a prompt. Esc closes.</Text>}
191 </Box>
192 )
193 })
194}
195types/index.d.ts 10 lines1/** One shelved idea: when it was parked (local time, `YYYY-MM-DD HH:MM`) and its text. */
2export type Idea = { at: string; text: string }
3
4declare module 'claude-code' {
5 interface PluginState {
6 /** The shelf as last read from its file, for the pane to draw. */
7 'idea-shelf': { ideas: Idea[] }
8 }
9}
10