SLOPSHOPPER

vesuvius-theme

Spinner, righe delle tool call e fine turno nei colori del design system Vesuvius

spinnerrowstimer
v0.1.0no licenseupdated 2026-10-18pompeitech/affreschi/plugins/vesuvius-theme
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · vesuvius-theme
› fix the failing auth test and add an audit log call ⏺ Read(src/auth.ts) ⎿ Read 6 lines ▍ ⟨Claude Code's own drawing⟩ ⏺ Bash(bun test) ⎿ 3 pass, 1 fail ● Done. refresh now rejects expired claims and logs an audit event. ▲ Erupted for 42s · Rumbling… ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts

Draws

Spinner
· Rumbling…
Turn line
▲ Erupted for 42s
Tool row
▍ ⟨Claude Code's own drawing⟩
README

affreschi

Claude Code interface mods, collected in a private pompeitech marketplace. Just as frescoes decorated the walls of Pompeii's houses, these mods decorate Claude Code's interface.

Layout

affreschi/
├── .claude-plugin/marketplace.json   # the list of mods
└── plugins/
    └── <mod-name>/                   # one folder (one plugin) per mod
        ├── .claude-plugin/plugin.json
        ├── hooks/
        │   ├── hooks.json
        │   ├── palette.ts            # Vesuvius colors
        │   └── register.tsx
        ├── types/index.d.ts          # the mod's $.state contract, when it has one
        └── tests/

Adding a mod

  1. Create the folder plugins/<mod-name>/ with its files.
  2. Add it to the plugins array in .claude-plugin/marketplace.json:
   { "name": "<mod-name>", "source": "./plugins/<mod-name>", "description": "..." }
  1. Check it: claude plugin validate ./plugins/<mod-name>

Development

Load a mod for the current session only (it reloads when you save):

claude --plugin-dir ./plugins/<mod-name>

Installing

/plugin marketplace add pompeitech/affreschi
/plugin install <mod-name>@affreschi

The mods

ModWhat it doesWhere it shows
vesuvius-themeA spinner with a glowing crater and volcanic words, a stripe of color beside every tool call (magma while it runs, lava when it fails, ash once done), and the end-of-turn line as an eruption (▲ Erupted for 1m 4s)Terminal; on the desktop, only the tool call rows
agent-usage/agent-usage opens a live pane (it polls every 2s while an agent runs) where every agent plays a character cast from its type or name: Pulcinella for the main conversation, the artist (beret and brush) for frontend and UI work, the nerd (glasses) for planners and architects, the explorer (head lamp), the reviewer (monocle), the guard (helmet) for security, the tester (lab mask) and the handyman (flat cap) for the rest; their eyes follow the status. In scena holds the main conversation, the agents at work and the ones that did something this turn; at the next prompt the finished ones move to the archivio, one row per role with count, tokens and failures (▸ opens it, svuota archivio clears it and keeps its tokens in the totals). Press a name for model, input/output/cache tokens, requests, tool calls and run time. Teammates and agents started before the mod loaded are listed too. The status line shows the subagents running, and a toast says what each one consumed when it finishesTerminal and desktop
pulcinellaThe band above the prompt: Pulcinella in true pixel art: an SVG of 14×16 pixels in the desktop app, a compact 10×10 drawn two pixels to a character with half blocks (five lines) in the terminal (floppy hat, black half mask, pink cheeks, white blouse), animated two frames per mood (the hat sways and a hammer swings while a tool runs, he blinks at rest, a little z floats while he naps), beside the context window, read again after every model request: the tokens used, the headroom before compaction (vineyard green, then magma and lava past 60% and 85% of the threshold), an estimate of the turns left at the recent pace, the window split by category in one bar, and the largest categories as chips (hide/legend toggles them). details or /context-map opens a pane with every category's tokens and share, the auto-compact threshold, and what fills the window: memory files, MCP servers, custom agents, skills He frets when a command fails, cheers green tests, gasps at changes of 300+ lines, naps after ten quiet minutes, and his line in Neapolitan sits under the bar. His hat grows a pixel per level with the tokens you spend (1M, 10M, 50M, 200M), kept across sessionsTerminal and desktop
maschere/maschera opens a picker (or /maschera arlecchino puts one on at once) and Claude answers in that mask's voice: Pulcinella warm and ironic with a Neapolitan word now and then, Arlecchino as terse as it gets, Balanzone thorough with the reasons and trade-offs. Only the tone changes: the mask's section goes last in the system prompt and says every other instruction wins. The mask worn shows in the status line and is remembered for the next sessionTerminal and desktop
spaccanapoliA row above the prompt with the git branch and its base, commits ahead and behind, files changed with lines added and removed (and a bar of the two), and the branch's PR from gh (open, draft, mergeable, conflicts). Changes made right on the base branch turn it into a red warning. Read again every 10s, after every tool that can change files and at the end of a turn; outside a repository it stays away. Next to pulcinella each keeps the other's bandTerminal and desktop
golfo/golfo opens Il Golfo: the last seven days as bars of cost and tokens, today and the priciest day picked out, and the week's cost by project, recorded across sessions (90 days kept). With a weeklyBudget set in the plugin's options, a bar shows how much of it is spent, and a toast warns at 80% and 100%Terminal and desktop
lazzaroneWhen Claude has been waiting on you for minutes (3 by default, in the plugin's options): a permission, a question, a plan to approve, or a turn of two minutes or more just finished, a system notification says what it waits for. One call per wait; answering or writing a prompt clears themTerminal and desktop
chiaveCounts, per project, the calls you approve by hand, as the rule that would allow them (Bash(npm run lint:*), WebFetch(domain:docs.github.com), an MCP tool), with a line under the permission dialog that keeps the tally. Past threshold approvals (3 by default) a toast says a rule is ready, and /chiave offers it: Consenti nel progetto writes it into .claude/settings.json, Solo per me into .claude/settings.local.json, Ignora never offers it again, togli takes an added rule back. Risky commands (rm, sudo, git push, curl, mv…) and chained or piped ones are never offered; a settings file that is not plain JSON is left aloneTerminal and desktop

The palette

The colors live in each mod's hooks/palette.ts (a plugin cannot import another plugin's files, so each keeps a copy). They are placeholders, to be replaced with the Vesuvius design system's.

Tests

claude plugin validate ./plugins/<mod-name>
claude plugin test ./plugins/<mod-name>
npx -y @biomejs/biome@2.2.4 check plugins

Code follows the officina standards: Biome in StandardJS style (biome.json), braced blocks set off by blank lines, no as casts beyond as const (values the engine hands over as unknown are narrowed by checks), and failures logged to the debug log with $.ui.log(..., { to: 'debug' }), never swallowed.

Source 2 files
hooks/register.tsx 117 lines
1import type { Register, Timer } from 'claude-code'
2
3import { VESUVIUS } from './palette'
4
5// The words for the spinner and the end-of-turn line, in place of Claude Code's.
6const WORDS: [string, ...string[]] = [
7  'Bubbling',
8  'Erupting',
9  'Smoking',
10  'Rumbling',
11  'Venting',
12  'Flowing',
13  'Heating the magma'
14]
15const PAST_WORDS: [string, ...string[]] = [
16  'Erupted',
17  'Bubbled',
18  'Smoked',
19  'Rumbled',
20  'Flowed',
21  'Vented'
22]
23
24// The crater's glow: one frame per tick, alternating colors.
25const FRAMES = ['·', '∘', '○', '◎', '●', '◎', '○', '∘']
26const TICK_MS = 140
27
28export function formatDuration(ms: number): string {
29  const seconds = Math.max(0, Math.round(ms / 1000))
30  const minutes = Math.floor(seconds / 60)
31
32  return minutes > 0 ? `${minutes}m ${seconds % 60}s` : `${seconds}s`
33}
34
35export function pick<T>(list: readonly [T, ...T[]], seed: number): T {
36  return list[Math.abs(Math.floor(seed)) % list.length] ?? list[0]
37}
38
39export const register: Register = on => {
40  // Module values: they reset on every reload, which is fine here.
41  let frame = 0
42  let word = WORDS[0]
43  let timer: Timer | undefined
44
45  on('turn.start', async ($, e, next) => {
46    word = pick(WORDS, await $.clock.now())
47    timer?.cancel()
48    timer = $.clock.every(TICK_MS, () => {
49      frame = (frame + 1) % FRAMES.length
50      $.ui.invalidate('ui.render')
51    })
52
53    return next(e)
54  })
55
56  on('turn.complete', async (_$, e, next) => {
57    timer?.cancel()
58    timer = undefined
59
60    return next(e)
61  })
62
63  // The spinner: redrawn in the terminal; on the desktop Claude Code's own stays,
64  // since there it says what the step is doing ("Creating notes.md").
65  on('ui.render', { component: 'Spinner' }, async ($, e, next) => {
66    if (e.surface !== 'terminal') {
67      return next(e)
68    }
69
70    const { Box, Text } = $.ui.resolve(e)
71    const text = e.props.message ?? word
72    const color = frame % 2 === 0 ? VESUVIUS.lava : VESUVIUS.magma
73
74    return (
75      <Box flexDirection="row" columnGap={1}>
76        <Text color={color} bold>
77          {FRAMES[frame]}
78        </Text>
79        <Text color={VESUVIUS.magma}>{text}…</Text>
80      </Box>
81    )
82  })
83
84  // Every tool call row: Claude Code's row, with a stripe of color on its left.
85  on('ui.render', { component: 'ToolUse' }, async ($, e, next) => {
86    const { Box, Text } = $.ui.resolve(e)
87    const theirs = await next(e)
88    const color = e.props.isErrored
89      ? VESUVIUS.lava
90      : e.props.isRunning
91        ? VESUVIUS.magma
92        : VESUVIUS.ash
93
94    return (
95      <Box flexDirection="row" columnGap={1}>
96        <Text color={color}>▍</Text>
97        {theirs}
98      </Box>
99    )
100  })
101
102  // The line that closes a turn ("Baked for 3s") becomes an eruption.
103  on('ui.render', { component: 'TurnDuration' }, async ($, e) => {
104    const { Box, Text } = $.ui.resolve(e)
105    const past = pick(PAST_WORDS, e.props.durationMs / 1000)
106
107    return (
108      <Box flexDirection="row" columnGap={1}>
109        <Text color={VESUVIUS.lava}>▲</Text>
110        <Text color={VESUVIUS.tuff}>
111          {past} for {formatDuration(e.props.durationMs)}
112        </Text>
113      </Box>
114    )
115  })
116}
117
hooks/palette.ts 22 lines
1// Vesuvius palette (placeholder): replace the hex values with the design system's.
2// Every mod in affreschi keeps its own copy, because a plugin cannot import another plugin's files.
3export const VESUVIUS = {
4  lava: '#E4572E',
5  magma: '#F28C28',
6  sulfur: '#F2C14E',
7  tuff: '#C9B79C',
8  ash: '#8A8D91',
9  gulf: '#2E86AB',
10  vineyard: '#7A9E4E'
11} as const
12
13// The order categories take their colors in, warmest first.
14export const SEQUENCE = [
15  VESUVIUS.lava,
16  VESUVIUS.magma,
17  VESUVIUS.sulfur,
18  VESUVIUS.tuff,
19  VESUVIUS.gulf,
20  VESUVIUS.vineyard
21] as const
22