Names each session from its first prompt, so it is easy to find in /resume.

Live panes, prompt bands, status line entries, toasts, and hooks for Claude Code, each shipped as a plugin.
/plugin marketplace add tartinerlabs/claude-code-mods
/plugin install <mod> --marketplace tartinerlabs/claude-code-mods
| | Mod | Where it shows | In one line | | :-: | --- | --- | --- | | โธ | auto-resume | Status line, toast | Picks a turn back up once a usage limit resets | | ๐ท | auto-session-name | Session title | Names each session from its first prompt | | โฑ | cache-clock | Band above the prompt | Counts down to the prompt cache going cold | | ๐ | limit-watch | Band above the prompt, toasts | Shows the 5-hour and weekly usage limits | | ๐ซ | pr-pilot | Band above the prompt, toasts | Shows the branch's PR checks and merges it with /merge | | ๐ | smart-compact | Toast | Compacts between turns, sooner at checkpoints or when the cache is cooling | | โ
| token-weather | Band above the prompt | Forecasts how full the context window is |
When a turn stops on a usage limit, waits until the limit resets and sends continue. Typing a prompt yourself or running /auto-resume cancel stops the wait.
โธ auto-resume in 1h 12m โ status line
Usage limit reset, resuming โ toast
<sub>๐ plugins/auto-resume</sub>
Names each session from its first prompt using Haiku and can give it a prompt bar colour, so it is easy to find with claude -r after a crash. Sessions already named with -n or /rename are left alone. Set the color option to red, blue, green, yellow, purple, orange, pink or cyan to colour named sessions; default leaves the colour alone.
> fix the flaky retry test in the upload worker
โ session titled "Fix flaky upload retry test"
<sub>๐ plugins/auto-session-name</sub>
Draws a countdown above the prompt to when the prompt cache goes cold, with the last request's hit rate. Once cold, it shows how much the next turn re-writes. Set the ttl option to 1h when extended caching is on.
cache โ 3:42 left ยท 96% hit โ green, yellow under a minute
cache โ cold ยท next turn re-writes 84.3k โ red
<sub>๐ plugins/cache-clock</sub>
Draws the 5-hour and weekly usage limits above the prompt with live reset countdowns, green under 60%, yellow to 80% and red past it. Toasts once a window passes 80% and again at 95%. Any other window the API reports, such as a gateway spend limit, shows under its own name.
5h 42% ยท 2h17m 7d 81% ยท 3d4h โ band
7d limit at 81%, resets in 3d4h โ toast
<sub>๐ plugins/limit-watch</sub>
Draws the current branch's open pull request above the prompt with its checks and whether it can merge, refreshed each minute and after every turn. Toasts when a run of checks finishes. /merge merges it with gh and deletes the branch, but only once every check has passed and nothing blocks it. On a gh-stack layer the band shows its place in the stack, and /merge merges the whole stack with gh stack merge once every unmerged layer has passed its checks and has no unpushed commits, then switches to the trunk and deletes every layer's branch, local and remote, once all of them have merged. Set the method option to merge (default), squash or rebase. Needs the GitHub CLI, signed in.
PR #42 โ 3/5 checks waiting โ band
PR #42 โ 1 failing: SonarCloud blocked โ red
PR #42 โ 5/5 checks ready ยท /merge โ green
PR #42 stack 2/3 โ 5/5 checks ready ยท /merge โ a gh-stack layer
PR #42 checks passed, ready to /merge โ toast
<sub>๐ plugins/pr-pilot</sub>
Compacts the conversation between turns, never during one, weighing several factors against the context's fill. Past the threshold option (60, 70 default, or 80%) it compacts about ten seconds after a turn ends. It compacts sooner when compacting is cheapest or most worth it:
gh pr, gh stack), had a plan approved, finished its todo list, or switched branch or worktree. The summary is told what to keep for each, such as the approved plan verbatim. A checkpoint counts only until the next turn starts. Set checkpoints to off to ignore them.Nothing takes it under the floor option (30, 40 default, or 50%), and it tries at most once per idle stretch. Set ttl to 1h when extended prompt caching is on.
Compacted at 52%: committed โ toast
Compacted at 55%: cache cooling โ toast
Compacted at 74%: context high, 5h limit at 86% โ toast
<sub>๐ plugins/smart-compact</sub>
Draws a forecast of the context window above the prompt, with tokens used, a sparkline of the last 12 turns and the change since the last turn.
โ Cloudy 38% of context 76.4k / 200k last turns โโโโโโโ
โ โฒ +4.1k last turn
| โ Clear | โ Cloudy | โ Showers | โ Storm | โฏ Compact soon | | :-: | :-: | :-: | :-: | :-: | | under 25% | under 50% | under 75% | under 90% | 90% and up |
<sub>๐ plugins/token-weather</sub>
MIT ยฉ Tartiner Labs
hooks/register.ts 54 lines1import type { Register } from 'claude-code'
2
3const PROMPT = `Write a 3-5 word title for a coding session that starts with the request below. Reply with the title only: no quotes, no trailing punctuation.
4
5<request>
6{prompt}
7</request>`
8
9export const register: Register = (on, options) => {
10 // `default` leaves the prompt bar colour alone.
11 const color = typeof options.color === 'string' && options.color !== 'default' ? options.color : undefined
12 // /color can't run while the turn waits on UserPromptSubmit, so it waits for turn.complete.
13 let colorPending = false
14 // A /color from the person or another plugin wins over the configured one.
15 let colorChosen = false
16
17 on('classic.UserPromptSubmit', async ($, e, next) => {
18 const result = await next(e)
19 // Leave sessions named by -n, /rename or another hook, and machine-sent turns.
20 if (e.session_title || result.sessionTitle) return result
21 if (e.source !== undefined && e.source !== 'user') return result
22 const prompt = e.prompt.trim()
23 if (!prompt || prompt.startsWith('/')) return result
24
25 const reply = await $.model.complete({
26 model: 'haiku',
27 prompt: PROMPT.replace('{prompt}', prompt.slice(0, 2000)),
28 maxTokens: 30,
29 timeoutMs: 5000,
30 })
31 if (!reply.isAnswered) return result
32 const title = (reply.text.split('\n')[0] ?? '').replace(/^["'`]+|["'`.]+$/g, '').trim().slice(0, 60)
33 if (!title) return result
34 colorPending = color !== undefined && !colorChosen
35 return { ...result, sessionTitle: title }
36 }).catch(($, e, next) => next(e))
37
38 on('command.run', { command: 'color' }, ($, e, next) => {
39 if (e.origin.kind !== 'plugin' || e.origin.name !== 'auto-session-name') {
40 colorChosen = true
41 colorPending = false
42 }
43 return next(e)
44 })
45
46 on('turn.complete', async ($, e, next) => {
47 const result = await next(e)
48 if (!colorPending || e.agentId !== undefined) return result
49 colorPending = false
50 $.command.run({ command: 'color', args: color }).catch(() => {})
51 return result
52 })
53}
54