A docked side panel for the Claude desktop app's Code tab: a rotating pixel-art backdrop with a live dashboard floating over it.
Everything is in one rounded box at the bottom of the picture:
- Context: the stacked context-window bar (one colour per
/contextcategory), a marker at the wrap-up point and at auto-compact, and a pace line: tokens added per turn and how many turns are left before the wrap-up. - Session: model and reasoning effort, git branch with dirty count and ahead/behind, cache hit rate, session cost, session age, turn count, and a live run timer (
▶ running 1m 12s, then■ last run 45s). - Limits: your 5-hour and weekly usage windows (and any per-model weekly window your account reports), each with a bar and a reset countdown.
- Activity: the last tool calls, running subagents, and todo progress.
- Backdrops: a random picture on start and a new one every 15 minutes.
/backdrop nextchanges it now.
It can also hand a long conversation off to a fresh chat. See The 700k hand-off, and read it before you turn the mod on.
- The Claude desktop app, Code tab. The backdrop is drawn only there; on the terminal the panel shows the same dashboard without the picture.
- Claude Code 2.1.286 or newer. The mod uses Claude Code's early-access plugin API, which Anthropic says may change between releases without notice. If an update breaks it, open an issue.
- Built and tested on Windows. The code has no OS-specific parts, but I have not run it elsewhere.
-
Download this repository (Code → Download ZIP, or
git clone). -
Point Claude Code at the
code-hudfolder inside it. Pick one:Windows (PowerShell):
setx CLAUDE_CODE_PLUGIN_DIRS "C:\path\to\code-hud-side-panel\code-hud"Any system: add this to
~/.claude/settings.json(merge it with what is already there):{ "env": { "CLAUDE_CODE_PLUGIN_DIRS": "/path/to/code-hud-side-panel/code-hud" } }The value is the folder that contains
.claude-plugin/. To load several mods, separate the paths with;on Windows or:elsewhere. -
Fully quit and reopen the app, then start a new chat. The panel opens by itself.
To check the install first: claude plugin validate code-hud and claude plugin test code-hud.
| Command | What it does |
|---|---|
/hud |
Show or hide the panel |
/backdrop or /backdrop next |
Show another backdrop now |
/handoff |
Ask this chat to wrap up and hand off to a new one, now |
/handoff cancel |
Never ask this chat to hand off |
The panel also has next image and close buttons.
When a run finishes with the context at or past 700,000 tokens, the mod sends the chat this message as if you had typed it, once per conversation:
This chat is nearly out of context. Please wrap up your current tasks and start a new Claude Code chat to complete your goals.
Alongside it, hidden from you, the chat gets instructions to finish its step, update the project's tracking documents, commit on its own branch (never merging or pushing), write a HANDOFF.md, rename itself "Old N ", and offer a new chat titled <name> that reads the hand-off file first. The rename asks for your approval if you named the chat yourself.
That is a lot of automatic behaviour, so know what you are turning on:
- It is per conversation and sent once.
/handoff cancelstops it for a chat. - It needs the desktop app's session tools. On the terminal the chat just tells you the hand-off is ready.
- It will not run in headless (
-p) or SDK sessions, and not for subagents. - To switch it off for everyone, set
WRAP_AT_TOKENSincode-hud/hooks/register.tsxto a number larger than your context window.
Edit the constants at the top of code-hud/hooks/register.tsx:
| Constant | Default | Meaning |
|---|---|---|
WRAP_AT_TOKENS |
700_000 |
Fill at which the hand-off message is sent |
ROTATE_MS |
15 minutes | How often the backdrop changes |
REPORT_EVERY |
0.1 |
The chat hears its context usage each time it grows by this share of the window (0 turns it off) |
HANDOFF_FILE |
HANDOFF.md |
The hand-off file the outgoing chat writes |
The picture set lives in code-hud/assets/bg/. To use your own:
pip install pillow
python tools/make-backdrops.py "path/to/your/pictures"It shrinks each picture to fit the app's inline-image size limit and rewrites the folder. An optional labels.txt in your picture folder (filename.png = Name) sets the names /backdrop reports.
- The pane size is estimated from character cells, so the picture may not match the pane exactly. It is cropped to cover, not stretched.
- A per-model weekly limit (such as a model-specific weekly window) appears only if your account reports one; the plugin API documents just the 5-hour and weekly windows.
- Todo progress is read from the model's
TodoWritecalls, which are not part of the typed plugin API, so it may stay empty. - Rounded corners rely on the app honouring a
roundborder style.
code-hud/ the mod (point CLAUDE_CODE_PLUGIN_DIRS here)
.claude-plugin/ manifest
hooks/ register.tsx, the whole mod
types/ the mod's state contract
assets/bg/ backdrop pictures and manifest.json
tests/ claude plugin test suite
tools/ make-backdrops.py
Everything here, the code and the pictures in code-hud/assets/bg/, is MIT licensed. See LICENSE.
