A one-line TL;DR under Claude's long replies, written by Claude Haiku; the notify mod uses the same line as its turn summary

Mods for Claude Code: small plugins that add to its screen and behavior. Each folder is one mod. Turn on the ones you want (see Setup) and change their settings in /config, under the mod's name.
Each mod works on its own, and a few work better together. notify tells you when something happens; with say it can tell you out loud, with tldr its turn summaries reuse tldr's line instead of writing their own, and with ghostty it stays quiet while you're looking at the session. In Ghostty, clicking its notification brings you back to the session's tab.
Shows how full Claude's context window is, as a colored bar above the prompt.
/context-bar hides or shows it for this session.Shows how much of your 5-hour and weekly usage limits you've used, as two small meters under the context bar. They turn yellow at 70% and red at 90%, and you get a warning inside Claude once a limit passes 90%. (notify also warns, as a desktop notification or out loud, at a threshold you set.)
Shows this session's ID in the bottom-right corner of the screen.
claude --resume <id> command.Adds a receipt to the line that closes each turn ("✻ Baked for 42s"): how many tools ran, which files were edited, the tokens used and what the turn cost.
Adds a one-sentence summary under Claude's longer replies, written by Claude Haiku.
/config sets how long a reply must be (600 characters by default).Tells you when something happens in a session: as a desktop notification, out loud through say, or both. With the ghostty mod on, it only tells you when you're away from the session (another app or tab in front), so it never interrupts you while you're watching. Without it, nothing can tell whether you're looking, so it always tells you.
/config under notify: both, banner (the desktop notification), voice (spoken by say) or off. By default the first three are both, and background tasks and check-ins are voice.voice alerts are skipped and the banners still go out.| Command | What it does |
|---|---|
/notify test | Sends a desktop notification right away. macOS can't tell a mod whether your terminal may show notifications, so this is how to check. The first time notify starts, it reminds you once. |
/notify settings | Opens the switch in System Settings: Ghostty's own entry in Ghostty, the Notifications list elsewhere. |
Gives Claude a voice, through murmur. The notify mod decides what gets said and when; say is the voice it speaks in.
/config./config under say.Everything else is one command, /say:
| Command | What it does |
|---|---|
/say | Names this session's voice and plays a short sample of it. |
/say pick | Lists every voice with its grade and switches this session to the one you pick, with a sample in it. The choice sticks to the conversation, so resuming it keeps the voice. |
/say pick <name> | Switches directly, like /say pick emma. Part of the name is enough. |
/say pick random | Switches to a random voice, other than the current one. Better-graded voices come up more often. |
/say read | Reads Claude's last reply aloud. |
/say tldr | A spoken 2–3 sentence summary of the session so far. |
/say hush | Mutes this session; run it again to unmute. |
/say help | Lists these. |
Ties Claude into the Ghostty terminal. All its settings start with "Ghostty" in /config.
/title gets a new one right away. A resumed session gets its old title back./workspace saves and reopens whole windows of sessions: see Workspaces./goto lists your open Claude sessions, the ones waiting on you first, and jumps to the one you pick. /goto next jumps straight to the one waiting longest; /goto <words> jumps to the one whose title matches./keybind add <keys> <text> makes a Ghostty key type something into Claude, like /keybind add super+ctrl+h /say hush for ⌘⌃H. /keybind lists them, and /keybind remove <keys> removes one. For ⌘⌃G to open /goto, run /keybind add super+ctrl+g /goto, or turn on Ghostty: install Claude keybinds in /config. The mod changes your Ghostty config only when you do one of these: it adds one line that loads its own claude-keybinds file.A workspace is a Ghostty window of Claude sessions you can put away and bring back later. It remembers every tab and split: each Claude session with its conversation, and each shell with its folder. Reopening it brings back the whole window, with every conversation picking up where it left off.
| Command | What it does |
|---|---|
/workspace save [name] | Saves this window. With no name, it keeps the name the window already had, or Claude Haiku picks one from the tabs. |
/workspace close [name] | Saves this window, then exits every Claude session in it and closes their tabs. Your current tab stays open at the shell, and shell tabs stay open. If another session is still working or waiting on you, it closes nothing and names them; /workspace close --force closes them anyway. |
/workspace list | Shows your saved workspaces, newest first. Press a number or Enter to reopen one, or Tab to ✕ delete to remove it. |
/workspace open <name> | Reopens a saved workspace in a new window. Part of the name is enough. |
claude --resume, so they continue their own conversation, with the tab title they had when you saved. A tab saved without a title gets a new one from its conversation. Shell tabs open at the prompt./workspace close. Pick it up tomorrow: /workspace list, then press its number.~/.claude/workspaces/, one JSON file per workspace. Saving never overwrites a different workspace that happens to have the same name: the new one gets a file of its own.Install the mods you want, one line each, at the prompt of a Claude Code session:
/plugin install context-bar --marketplace whilestevego/claude-mods
Answer y to add the marketplace, then pick a scope. The mods are context-bar, rate-limits, session-id, turn-receipt, tldr, notify, say and ghostty.
CLAUDE_CODE_PLUGIN_DIRS, separated by :, in the env block of ~/.claude/settings.json: "env": {
"CLAUDE_CODE_PLUGIN_DIRS": "/path/to/claude-mods/context-bar:/path/to/claude-mods/say"
}
To try one mod for a single session: claude --plugin-dir /path/to/claude-mods/tldr.
CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 in the same env block, so Claude Code doesn't overwrite the tab title./notify test checks; /notify settings opens the page.The first time a mod controls Ghostty, macOS asks for permission. Allow it.
Editing a mod's files reloads it in running sessions. A mod newly added to CLAUDE_CODE_PLUGIN_DIRS loads only in sessions started after that.
claude plugin validate context-bar # check a mod the way Claude Code will load it
claude plugin test context-bar # run its tests
Mods can call each other through nouns on $: say adds $.voice.say({ text }), which notify speaks through, and ghostty adds $.ghostty.isFocused(), which notify asks before alerting. Their types are in each mod's types/index.d.ts.
IDEAS.md has ideas for more mods.
hooks/register.tsx 57 lines1import { atom, read, update } from 'claude-code'
2import type { EngineInterface, Register } from 'claude-code'
3
4import { cleanLine, tldrPrompt } from './line'
5
6// Shown under the turn's closing line ("✻ Cooked for 11s"). turn-receipt reads it too, since it redraws that line.
7const byDuration = atom({ plugin: 'tldr', key: 'byDuration' } as const, {})
8
9/** Writes the turn's TL;DR (none for a reply under `minChars`) and publishes it for other mods. */
10async function summarize($: EngineInterface, turnId: string, durationMs: number, request: string, answer: string, minChars: number) {
11 let text = ''
12 if (answer.length >= minChars) {
13 const r = await $.model.complete({ model: 'haiku', prompt: tldrPrompt(request, answer), maxTokens: 80, timeoutMs: 8000 })
14 text = r.isAnswered ? cleanLine(r.text) : ''
15 }
16 if (text) {
17 // ponytail: two turns with the same durationMs share a TL;DR; key by a real turn id if the line ever carries one.
18 await update($, byDuration, all => Object.fromEntries([...Object.entries(all), [String(durationMs), text]].slice(-500)))
19 }
20 // Published for other mods (notify uses this same line as its turn summary). Empty text: nothing to wait for. Only tldr writes it.
21 await $.state.set({ plugin: 'tldr', key: 'line' }, { turnId, text })
22}
23
24export const register: Register = (on, options) => {
25 const minChars = typeof options.minChars === 'number' && options.minChars > 0 ? options.minChars : 600
26 let request = ''
27
28 on('prompt.submit', ($, e, next) => {
29 if (e.origin.kind !== 'task-notification') request = e.text
30 return next(e)
31 }).catch(($, e, next) => next(e))
32
33 on('turn.complete', async ($, e, next) => {
34 const result = await next(e)
35 if (e.agentId) return result
36 // Haiku answers after the turn has completed, never holding it up; the closing line redraws when it lands.
37 void summarize($, e.turnId, e.durationMs, request, e.reason === 'answer' ? e.answer : '', minChars)
38 .catch(() => $.state.set({ plugin: 'tldr', key: 'line' }, { turnId: e.turnId, text: '' }))
39 // Not returned as text beneath the answer: Claude Code labels that row with every mod on the event.
40 return result
41 })
42
43 // Under the closing line. When turn-receipt drew that line it already added the TL;DR, so it isn't added twice.
44 on('ui.render', { component: 'TurnDuration' }, async ($, e, next) => {
45 const line = await next(e)
46 const text = (await read($, byDuration))[String(e.props.durationMs)]
47 if (!text || JSON.stringify(line).includes('TL;DR')) return line
48 const { Box, Text } = $.ui.resolve(e)
49 return (
50 <Box flexDirection="column">
51 {line}
52 <Text dimColor> TL;DR: {text}</Text>
53 </Box>
54 )
55 })
56}
57hooks/line.ts 24 lines1/** The prompt for one line that works both under the reply and spoken aloud. */
2export function tldrPrompt(request: string, answer: string): string {
3 return [
4 "A coding assistant just finished replying. Write its TL;DR: ONE plain sentence of at most 20 words",
5 "saying what was done or concluded, and anything the developer must act on. It is shown under the",
6 'reply and read aloud, so: no markdown, code, file paths, quotes or a "TL;DR" prefix.',
7 '',
8 `Request: ${request.slice(0, 1500)}`,
9 `Reply: ${answer.slice(0, 4000)}`,
10 ].join('\n')
11}
12
13/** The model's line, cleaned to one safe sentence; empty when unusable. */
14export function cleanLine(reply: string): string {
15 const line = reply
16 .replace(/[\u0000-\u001f\u007f-\u009f]/g, ' ')
17 .replace(/^\s*(tl;?dr:?\s*)/i, '')
18 .replace(/[*_`#>]/g, '')
19 .replace(/\s+/g, ' ')
20 .trim()
21 return line.length >= 3 && line.length <= 240 ? line : ''
22}
23
24types/index.d.ts 12 lines1/** This turn's TL;DR; empty `text` when the reply was too short for one. Other mods (say) read it. */
2export type TldrLine = { turnId: string; text: string }
3
4/** Each turn's TL;DR keyed by its duration in ms, the one thing the turn's closing line shares with turn.complete. */
5export type TldrByDuration = Record<string, string>
6
7declare module 'claude-code' {
8 interface PluginState {
9 tldr: { line: TldrLine | null; byDuration: TldrByDuration }
10 }
11}
12