A folder-tree card beside the status bar listing your projects by category, read from ~/.claude/project-box.json.


Claude Code now has mods: plugins made of TypeScript function hooks that can draw UI right inside the terminal, react to everything Claude does, and change how it works. This repo contains four mods I use every day. There's a pixel critter that lives above your prompt, a control panel for model, effort and parallel agents, a project launcher box, and a live status bar. It also has everything you need to build your own in about 10 minutes.
![]()
⚠️ Mods are early access. The function-hooks API can change between Claude Code releases. Everything here was built and tested on Claude Code 2.1.294.
Open Claude Code in a terminal and paste:
/plugin install pixel-buddy --marketplace Bocskay-Botond/claude-code-mods
Answer y to add the marketplace, press Enter for the user scope, and you're done. A little orange critter appears above your prompt. Start typing and watch it pull out a laptop. 🧡
Want the full setup? 👉 quick-start/
All four running together: the status bar, pixel-buddy, project-box and the Tristen's Tools menu.

| Mod | What it does | Commands |
|---|---|---|
| 🐾 pixel-buddy | A 12×4 pixel Claude critter above the prompt. It types on a tiny laptop while you type, patrols while Claude works, celebrates when a turn finishes, plays when you're idle (football with a goal, dancing, jump rope, butterflies, bubbles, reading a book), reacts to greetings, thanks, commits, pushes and tool-call combos, shows how much of your 5-hour budget is left, and falls asleep after 3 minutes. Now and then a shot misses and knocks project-box apart, and the box rebuilds itself. | /buddy /pet |
| 🛠️ tristens-tools | A tools menu and status line: model & effort picker, Clean View (hides tool noise and shows a simple checklist), Prompt Upgrade, Agent Dock (split each request across 1–100 helper agents and watch them live), and a Roadtrip racing minigame. | /tools /dock /roadtrip |
| 📁 project-box | A folder-tree card beside the status bar listing your projects by category. Click a category, then a project, to see its note and path. pixel-buddy walks over and "types the cd" for you. On a narrow terminal it folds into one row of category buttons. | /projects |
| 📊 statusbar | A minimal one-line status bar: working/idle, tool count, last tool, last turn duration, turns. The simplest real mod in the repo, so read this one first. | — |
| 👋 hello-mod | The tutorial example: a slash command, a toast and a band in about 35 lines. | /hello |
▰▰▱ 20%), past 90% it turns red and blinks and the critter sweats. When the budget runs out the critter goes grey and slumps like a flat battery, with a countdown to the reset (⧗1:23). When the window resets it jumps up: "recharged!". Try it with /buddy limit./pet counter, a nightcap after 23:00).Install any of them the same way:
/plugin install <mod-name> --marketplace Bocskay-Botond/claude-code-mods
claude-code-mods/
├── .claude-plugin/
│ └── marketplace.json # makes this repo a plugin marketplace
├── mods/
│ ├── pixel-buddy/ # 🐾 the critter
│ ├── tristens-tools/ # 🛠️ tools menu, Agent Dock, Roadtrip
│ ├── project-box/ # 📁 project launcher card
│ └── statusbar/ # 📊 one-line status bar
├── examples/
│ └── hello-mod/ # 👋 your first mod, fully commented
├── quick-start/ # ⚡ 5-minute setup
├── docs/
│ ├── installation.md # every way to install & manage mods
│ ├── writing-your-own-mod.md
│ ├── api-cheatsheet.md # events, $ nouns, UI elements
│ └── troubleshooting.md
├── mod-builder-prompt/ # 🤖 a prompt that makes Claude build mods for you
└── assets/ # 🖼️ social preview + demo GIFs
Every mod is the same four small files:
my-mod/
├── .claude-plugin/plugin.json # name, version, description
├── hooks/hooks.json # { "modules": ["./register.tsx"] }
├── hooks/register.tsx # the code
└── types/index.d.ts # the state your mod keeps (optional)
on(event, hook) / next(e) middleware chain worksclaude plugin test and ship it as a GitHub marketplaceclaude --version)No Node, no npm install, no build step. Claude Code compiles the TypeScript itself.
The fastest way is to ask Claude. Inside Claude Code:
Make me a mod that shows a 🍅 pomodoro timer above the prompt and plays a toast when it ends.
Claude Code has a built-in skill for this: it writes the mod, hot-reloads it into your session and tests it. For a better result, paste the prompt from mod-builder-prompt/ first.
Prefer to do it by hand? docs/writing-your-own-mod.md walks through hello-mod line by line, and docs/api-cheatsheet.md has the events and elements you'll use most.
project-box shows a demo list until you give it yours. Copy the example and edit it:
# macOS / Linux
cp mods/project-box/project-box.example.json ~/.claude/project-box.json
# Windows (PowerShell)
Copy-Item mods\project-box\project-box.example.json $HOME\.claude\project-box.json
Restart Claude Code (or run /reload-plugins) and your projects show up. Colors can be any terminal color name (magenta, cyan, green, yellow, blue, red). Set "live": true for a green dot.
| Problem | Fix |
|---|---|
| Nothing appears after install | Run /reload-plugins, or restart Claude Code. Make sure you're in a terminal: /plugin isn't available in the desktop app's Code tab. |
Marketplace file not found | Check the repo name: Bocskay-Botond/claude-code-mods |
| A mod silently does nothing | Start with claude --debug. A failing hook is skipped and logged with the reason. |
| Small window or phone (SSH) | Every mod adapts to the terminal width. Below about 70 columns project-box stacks above the status rows, pixel-buddy gets a row of its own, and the tristens-tools line shortens. |
| Two bands fight for space | pixel-buddy, project-box and tristens-tools are designed to stack. Turn things off with /buddy, /projects, or /plugin → disable. |
More: docs/troubleshooting.md
Built a cool mod? PRs are welcome!
mods/<your-mod>/ (four files, see above)claude plugin validate mods/<your-mod> and claude plugin test mods/<your-mod> pass.claude-plugin/marketplace.json and to the table in this READMEMIT. Do whatever you want, just don't blame me if your critter falls asleep on the job. 😴
tristens-tools (Clean View, Agent Dock, Roadtrip and the tools menu). Go watch it!If this made your terminal a little more fun, ⭐ star the repo and share it with someone who lives in Claude Code.
Now go build a mod. Your terminal has been boring for long enough. 🚀
hooks/register.tsx 231 lines1import { atom, read, update } from 'claude-code'
2import type { EngineInterface, Register } from 'claude-code'
3
4import type { Bump, Category, Layout } from '../types'
5
6// Shown until ~/.claude/project-box.json exists (see project-box.example.json).
7const DEMO: Category[] = [
8 {
9 id: 'ai', name: 'AI & Agents', color: 'magenta',
10 projects: [
11 { id: 'assistant', name: 'Home Assistant', dir: 'projects/assistant', note: 'Multi-agent assistant with a FastAPI dashboard' },
12 { id: 'voice', name: 'Voice Wake-up', dir: 'projects/voice', note: 'Wake word -> STT -> LLM -> TTS' },
13 ],
14 },
15 {
16 id: 'web', name: 'Websites', color: 'green',
17 projects: [
18 { id: 'booking', name: 'Booking App', dir: 'projects/booking', note: 'Node/Express/SQLite appointment booking, live at example.com', live: true },
19 { id: 'landing', name: 'Landing Page', dir: 'projects/landing', note: 'GSAP-animated landing page' },
20 ],
21 },
22 {
23 id: 'auto', name: 'Automation', color: 'yellow',
24 projects: [
25 { id: 'news', name: 'Daily News', dir: 'scripts', note: 'Scheduled morning news email', live: true },
26 { id: 'mods', name: 'Claude mods', dir: 'claude-code-mods', note: 'This repo: buddy, tools, this box' },
27 ],
28 },
29]
30
31const WIDE = 46
32// The closed card's width: room for the longest category name.
33const narrowOf = (cats: Category[]) => Math.min(30, Math.max(24, ...cats.map(c => c.name.length + 8)))
34// Below `narrow + STACK_GAP` columns (a half-screen window, a phone over SSH)
35// the card no longer fits beside the status rows: it stacks above them instead.
36const STACK_GAP = 42
37
38const isHidden = atom({ plugin: 'project-box', key: 'isHidden' } as const, false)
39const openCat = atom({ plugin: 'project-box', key: 'openCat' } as const, '')
40const openProject = atom({ plugin: 'project-box', key: 'openProject' } as const, '')
41const categories = atom({ plugin: 'project-box', key: 'categories' } as const, DEMO)
42// published so neighbours (pixel-buddy) lay out around the card instead of guessing
43// starts empty so the write in session.start is a real change readers see
44// (a write equal to the initial value never reaches another plugin)
45const layout = atom({ plugin: 'project-box', key: 'layout' } as const, { narrow: 0, wide: 0, stack: 0 } as Layout)
46// pixel-buddy's football now and then misses and hits this card (read only):
47// it shakes, falls apart, then comes back row by row
48const bump = atom({ plugin: 'pixel-buddy', key: 'bump' } as const, { phase: 'none', step: 0 } as Bump)
49
50const isCategory = (c: unknown): c is Category => {
51 const x = c as Category
52 return typeof x?.id === 'string' && typeof x.name === 'string' && Array.isArray(x.projects)
53 && x.projects.every(p => typeof p?.id === 'string' && typeof p.name === 'string')
54}
55
56const loadConfig = async ($: EngineInterface): Promise<Category[]> => {
57 const home = (await $.env.get('USERPROFILE')) ?? (await $.env.get('HOME'))
58 if (home === undefined) return DEMO
59 const text = await $.fs.read(`${home}/.claude/project-box.json`).catch(() => undefined)
60 if (text === undefined) return DEMO
61 try {
62 const list = (JSON.parse(text) as { categories?: unknown }).categories
63 if (!Array.isArray(list) || !list.every(isCategory)) throw new Error('bad shape')
64 return list.map(c => ({
65 ...c,
66 color: c.color ?? 'cyan',
67 projects: c.projects.map(p => ({ ...p, dir: p.dir ?? '', note: p.note ?? '' })),
68 }))
69 } catch {
70 $.ui.toast('project-box: ~/.claude/project-box.json is not valid, showing the demo list')
71 return DEMO
72 }
73}
74
75export const register: Register = on => {
76 on('session.start', async ($, e, next) => {
77 await $.command.register({ name: 'projects', description: 'Show or hide the project box' })
78 const list = await loadConfig($)
79 await update($, categories, () => list)
80 await update($, layout, () => ({ narrow: narrowOf(list), wide: WIDE, stack: narrowOf(list) + STACK_GAP }))
81
82 return next(e)
83 })
84
85 on('command.run', { command: 'projects' }, async $ => {
86 const hidden = await update($, isHidden, h => !h)
87
88 return { text: hidden ? 'Project box hidden.' : 'Project box shown.' }
89 })
90
91 // The card sits inside the band, to the right of the status rows.
92 on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
93 const below = await next(e)
94 if (e.props.hasSurvey || (await read($, isHidden))) return below
95
96 const { Box, Text, Button } = $.ui.resolve(e)
97 const [cats, cat, proj] = await Promise.all([read($, categories), read($, openCat), read($, openProject)])
98 const total = cats.reduce((n, c) => n + c.projects.length, 0)
99 const narrow = narrowOf(cats)
100 const width = cat === '' ? narrow : Math.min(WIDE, Math.max(narrow, e.props.bodyColumns - 40))
101
102 const toggleCat = async (id: string) => {
103 await update($, openCat, cur => (cur === id ? '' : id))
104 await update($, openProject, () => '')
105 }
106 const toggleProject = (id: string) => update($, openProject, cur => (cur === id ? '' : id))
107
108 // Narrow: one wrapped row of category buttons above the band; an open
109 // category drops its projects below it, full width, one line each.
110 if (e.props.bodyColumns < narrow + STACK_GAP) {
111 const open = cats.find(c => c.id === cat)
112 return (
113 <Box flexDirection="column">
114 <Box flexWrap="wrap">
115 <Text bold>◆ </Text>
116 {cats.map((c, i) => (
117 <Box marginRight={1}>
118 <Text color={c.color}>{c.id === cat ? '▾' : '▸'}</Text>
119 <Button key={`cat:${c.id}`} plain hotkey={i < 9 ? String(i + 1) : undefined} label={c.name.split(' ')[0]} onPress={() => toggleCat(c.id)} />
120 </Box>
121 ))}
122 </Box>
123 {open && (
124 <Box flexDirection="column" borderStyle="round" borderColor={open.color} paddingX={1}>
125 {open.projects.map(p => (
126 <Box flexDirection="column">
127 <Box>
128 <Text color={p.live ? 'green' : 'gray'}>{p.live ? '● ' : '◇ '}</Text>
129 <Button key={`p:${p.id}`} plain label={p.name} onPress={() => toggleProject(p.id)} />
130 </Box>
131 {p.id === proj && (
132 <Box flexDirection="column" paddingLeft={2}>
133 <Text dimColor wrap="wrap">{p.note}</Text>
134 <Text dimColor wrap="truncate-middle">{p.dir === '' ? '~' : `~/${p.dir}`}</Text>
135 </Box>
136 )}
137 </Box>
138 ))}
139 </Box>
140 )}
141 {below}
142 </Box>
143 )
144 }
145
146 const hit = await read($, bump)
147 if (hit.phase !== 'none') {
148 const shift = (i: number) => ' '.repeat((i * 7 + hit.step * 3) % 4)
149 const strew = (text: string, i: number) =>
150 text.split('').map((ch, k) => ((k + i + hit.step) % 3 === 0 ? ` ${ch}` : ch)).join('')
151 const back = hit.phase === 'rebuild' ? Math.ceil((hit.step / 10) * cats.length) : 0
152 const title = hit.phase === 'hit' ? '◆ Projects ✸' : hit.phase === 'scatter' ? strew('◆ Projects', 0) : '◆ Projects'
153 return (
154 <Box flexDirection="row" alignItems="flex-end">
155 <Box flexDirection="column" flexGrow={1} flexShrink={1}>
156 {below}
157 </Box>
158 <Box width={width} flexShrink={0} marginLeft={2} flexDirection="column" borderStyle="round" borderColor={hit.phase === 'hit' ? 'red' : hit.phase === 'scatter' ? 'yellow' : 'gray'} paddingX={1}>
159 <Text bold wrap="truncate-end">{title}</Text>
160 {cats.map((c, i) => {
161 const row = c.name
162 if (hit.phase === 'hit') {
163 return <Text wrap="truncate-end"><Text color={c.color}>{shift(i)}▸ </Text>{row}</Text>
164 }
165 if (hit.phase === 'scatter') {
166 return (i + hit.step) % 2 === 0
167 ? <Text dimColor wrap="truncate-end">{shift(i)}{strew(row, i)}</Text>
168 : <Text dimColor wrap="truncate-end">{shift(i + 1)} · ·</Text>
169 }
170 return i < back
171 ? <Text wrap="truncate-end"><Text color={c.color}>▸ </Text>{row}</Text>
172 : <Text dimColor wrap="truncate-end"> · · ·</Text>
173 })}
174 </Box>
175 </Box>
176 )
177 }
178
179 return (
180 <Box flexDirection="row" alignItems="flex-end">
181 <Box flexDirection="column" flexGrow={1} flexShrink={1}>
182 {below}
183 </Box>
184 <Box width={width} flexShrink={0} marginLeft={2} flexDirection="column" borderStyle="round" borderColor="gray" paddingX={1}>
185 <Box justifyContent="space-between">
186 <Text>
187 <Text bold>◆ Projects</Text>
188 <Text dimColor> {total}</Text>
189 </Text>
190 {cat !== '' && <Button key="close" plain dimColor label="✕" onPress={() => toggleCat(cat)} />}
191 </Box>
192 {cats.map((c, i) => {
193 const isOpen = c.id === cat
194 return (
195 <Box flexDirection="column">
196 <Box justifyContent="space-between">
197 <Box>
198 <Text color={c.color}>{isOpen ? '▾ ' : '▸ '}</Text>
199 <Button key={`cat:${c.id}`} plain hotkey={i < 9 ? String(i + 1) : undefined} label={c.name} onPress={() => toggleCat(c.id)} />
200 </Box>
201 <Text dimColor>{c.projects.length}</Text>
202 </Box>
203 {isOpen &&
204 c.projects.map((p, j) => {
205 const isLast = j === c.projects.length - 1
206 const isSel = p.id === proj
207 return (
208 <Box flexDirection="column">
209 <Box>
210 <Text dimColor>{isLast ? ' └ ' : ' ├ '}</Text>
211 <Text color={p.live ? 'green' : 'gray'}>{p.live ? '● ' : '◇ '}</Text>
212 <Button key={`p:${p.id}`} plain label={p.name} onPress={() => toggleProject(p.id)} />
213 </Box>
214 {isSel && (
215 <Box flexDirection="column" paddingLeft={5}>
216 <Text wrap="wrap">{p.note}</Text>
217 <Text dimColor wrap="truncate-middle">{p.dir === '' ? '~' : `~/${p.dir}`}</Text>
218 </Box>
219 )}
220 </Box>
221 )
222 })}
223 </Box>
224 )
225 })}
226 </Box>
227 </Box>
228 )
229 })
230}
231types/index.d.ts 26 lines1export type Flag = boolean
2export type Id = string
3export type Project = { id: string; name: string; dir: string; note: string; live?: boolean }
4export type Category = { id: string; name: string; color: string; projects: Project[] }
5/** The card's outer width: closed (narrow) and the cap when a category is open (wide); below `stack` columns it stacks above the band instead. */
6export type Layout = { narrow: number; wide: number; stack: number }
7/** pixel-buddy's football hitting the card: 'hit', 'scatter' (step = frame), 'rebuild' (step 0..10 = rows back). */
8export type Bump = { phase: 'none' | 'hit' | 'scatter' | 'rebuild'; step: number }
9
10declare module 'claude-code' {
11 interface PluginState {
12 'project-box': {
13 isHidden: Flag
14 openCat: Id
15 openProject: Id
16 categories: Category[]
17 layout: Layout
18 }
19 // read only: pixel-buddy's shot into the card (mirrors its own contract)
20 'pixel-buddy': {
21 isShown: boolean
22 bump: Bump
23 }
24 }
25}
26