Unofficial fan mod. Clawd is Anthropic's mascot, and his name and sprites belong to Anthropic. This mod is not made, endorsed or supported by Anthropic. See NOTICE.
Clawd moves in above your Claude Code prompt. He locks in while Claude works,
chills when it goes quiet, celebrates when a long turn ends and hops when you
talk to him. Under him, a line forecasts the context
window, counts down to the prompt cache going cold and shows what is left of
your 5-hour, weekly and Fable limits, and a context bar opens into a live /context
breakdown. One click moves all of it to a sidebar.
Runs in the terminal and in the desktop app's Code tab. Needs Claude Code 2.1.289 or later.
/plugin install clawd-buddy --marketplace lperezmo/clawd-buddy-mod
Or in two steps:
/plugin marketplace add lperezmo/clawd-buddy-mod
/plugin install clawd-buddy@clawd-buddy-mod
On top of his eight rides he now has the 36 Lottie animations from claude.dev, from coffee and a laptop to fishing, a nap and confetti. What he picks follows the session's mood.
| Mood | When | Clawd |
|---|---|---|
| Lock in | Claude is calling tools | about every other pick a ride (walk, skate, car, scooter, bike, kite), the rest work: laptop, desktop, notebook, phone, thinking, coffee, lightbulb, watch, a turn about. Edits lean to the laptop and desktop (the notebook for docs), shell commands to the skateboard and a coffee once one runs a while, web fetches to the kite and the lightbulb, subagents to the car, MCP tools to the phone and the bike |
| Chill | 20 seconds of quiet | thinks or looks around; after a minute, picks the way claude.dev does: a nap, headphones, sunglasses, fishing, watering, the pool, space and more; after 3 minutes he naps or floats in the pool until something happens |
| Celebration | a turn of 30 seconds or more, or 5 tools or more, ends | one act (confetti, a dance, juggling, the arcade and others), then a double hop and "yay" |
And always:
- You send a prompt: hops, "!". With "thanks", "thank you" or "yay" in it, a double hop and "yay".
- A tool call fails: shakes, "?!".
- A short turn ends: double hop, "yay".
- Otherwise: blinks and hops now and then.
A ride always finishes before the next thing starts. Chill gives way at once to anything that happens. He picks the same thing twice in a row only when there is nothing else to pick.
Once Claude has answered once, a line under Clawd reads the session's figures, the same ones the status line has:
☀ Clear 18% of ctx (36k/200k) ▃▅█ ▲ +16k cache 42m 5h ━━━━━━━━ 93% left ↻ 2h 10m week ━━━━━━── 77% left ↻ 3d 4h fable ━━━━━━━─ 89% left ↻ 4d 6h
- Left: how full the context window is, as weather (Clear, Cloudy, Showers, Storm, Compact soon), the tokens, and a chart of the last 12 turns.
- Cache: how long until the prompt cache goes cold. Each of Claude's requests
starts its time to live again, so it counts down from the last one. The TTL
is what
CLAUDE_CODE_PROMPT_CACHE_TTL,FORCE_PROMPT_CACHING_5MorENABLE_PROMPT_CACHING_1Hpins, else what the requests' timing proves (a cache read after more than 5.5 minutes idle means 1 hour), else Claude Code's own pick: 1 hour on a Pro or Max plan, 5 minutes on an API key. It readscoldonce it has expired, when the next request pays to write the prompt to the cache again. - Right: what is left of the 5-hour and weekly usage limits, then the Fable limit (the weekly limit on Fable models), and when each resets. Green above 50%, yellow above 20%, red below. Only Claude's replies carry them, so between replies they hold the last figures, and a window whose reset has passed reads full.
The limits only show on a Claude subscription; on an API key there are none to
read. Claude Code reports the 5-hour and weekly limits itself; the Fable limit is
read from the rate-limit headers of the replies to Claude Code's own model requests.
The figure is the one the last reply from a Fable model in the session carried:
only those replies carry it, so it holds while you use other models. ↻ refresh
does not read it again, and after a plugin reload it is not on the line until the
next Fable reply. It needs a Claude Code build that lets mods see the engine's model
requests (seen working on 2.1.322); on a build without that, the Fable window just
does not show.
On a narrow terminal the line gives way in this order: the chart, the reset
countdowns, of ctx (leaving 18% (36k/200k)), the meters, the token counts
(leaving 18% ctx), the forecast word, then the word left after each limit but
the last (☀ 18% ctx 5h 93% week 77% fable 89% left), and last the Fable
window (☀ 18% ctx 5h 93% left week 77% left), so a terminal that fits the
5-hour and weekly limits still fits them.
Under the weather line, the context window as one bar, colored by category the
way /context colors them, with the compaction buffer and the free space after:
x: ▸ context ████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 14% · 140.8k / 1M
Press x: ▸ context (click it, or x with the band focused) and it opens in
place into a row per category, the growth of the last turns, how many more fit
before auto-compaction, and the threshold:
140.8k of 1M used · 14% · claude-opus-5-5
system prompt █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.2k 0%
system tools █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 36.6k 4%
messages ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 100k 10%
autocompact buffer █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 33k 3%
free space ██████████████████████████████░░░░░░ 826.2k 83%
growth +6k last turn, +5k average over 3 turns
headroom 99+ turns at that rate, 826.2k left
limit 967k, where auto-compaction runs
counted locally, as an estimate r: count exactly
It updates after every turn from a local estimate that sends no requests.
r: count exactly counts each category with the token-count API, as /context
does; that is the only thing in the mod that sends anything, and only when you
press it.
d: sidebar (or /clawd sidebar) moves the lines into a pane beside the
conversation, with room for each: the context fill and its forecast, the usage
limits with when they reset, the prompt cache with the time it goes cold, and
the context by category. l: ↻ refresh reads the session's figures again: the
context and the 5-hour and weekly limits, not the Fable limit, which only the
next Fable reply brings. Clawd keeps the band either way. Close it with
d: close sidebar, the pane's close mark or ctrl+x x, and the lines come back
under him. It stays on across sessions; on a terminal under 144 columns it
waits for room and the lines stay in the band.
m: compactin the band, orc: compact nowin the sidebar, compacts the conversation the way/compactdoes. It asks for a second press within four seconds first, so a stray click does nothing. Claude has to be between turns.y: clearin the band clears the conversation the way/cleardoes, after the same second press./clawd clearasks in a dialog first instead.- Auto-compact, in the sidebar:
uturns it on, and a slider picks the threshold, from 300k to 900k tokens in steps of 100k (up to the window, if it is smaller), each stop labeled with its own little number. Click a dot or its number. After the turn that passes the threshold, Clawd compacts. No threshold under 200k is ever taken. Claude Code's own auto-compaction near the end of the window still runs as before; this one comes first when you set it lower. The setting is kept across sessions.
Every file Claude edits, writes or reads this session is kept, newest first, with the line Claude left it at (where the last edit landed, or where the read began).
Files open in VS Code (code -g) unless your $VISUAL or $EDITOR names an editor that
opens path:line from the command line (VS Code, Cursor, Windsurf, VSCodium, Zed or Sublime
Text); then they open there. /clawd editor picks any other.
z: open <file>in the band opens the file Claude changed last in your editor, at that line.- Files, in the sidebar, lists them all (
✎edited,+written,·read,×3for three edits). Click one to open it there.z: project in <editor>opens the whole folder. In a git repository each file carries git's mark:Mchanged,Aadded,Ddeleted,Uuntracked. f: followin the sidebar (or/clawd follow) opens each file in your editor the moment Claude changes it, at the changed line, so the editor follows along. It is kept across sessions./clawd editor <command>picks another editor; the file goes after it aspath:line. For Zed:/clawd editor zed. It is kept across sessions.
/multiply [1-3] opens that many more Claude sessions (one if you give no number), each in
a new PowerShell window in the same folder, started with claude. Clawd splits into copies
while it happens. Three is the most; /multiply 30 opens three. It is only offered on
Windows.
Turn on the multiplyRemoteControl option to start each clone with
claude --remote-control instead, so you can reach it from claude.ai or your phone. Set it
with /plugin configure clawd-buddy@clawd-buddy-mod and restart Claude Code.
Each clone hops in saying which clone it is. It learns its number from CLAWD_CLONE, which
its window sets for it.
- Buttons under Clawd: jump, Celebrate, Lock in, Chill. Each mood button plays one pick
from that mood, then he goes back to what the session is doing. Click them, or focus the
band (
ctrl+x tab) and press j, c, k or n. /clawd <mood>does the same (celebrate,lock in,chill);/clawd <ride>sends him on one (walk, skate, scooter, bike, car, kite, space, pool), and/clawd <act>plays an act by name (/clawd dancing,/clawd coffee)./clawdalone makes him hop./clawd context(or/clawd c, quick to type from a phone over remote control, or/clawd status) reads the figures again and answers with the band's figures as plain text: the context by category, growth and headroom, the cache countdown, the 5h, week and fable limits (the fable one as the last Fable reply left it), and the auto-compact setting. Handy on the phone, where remote control shows a command's answer but not the band.- Hide just Clawd:
h: hide clawd(or/clawd hide) keeps the lines and tucks him away;h: show clawdor/clawd showbrings him back. It sticks across sessions. d: sidebarmoves the lines into a sidebar; see above.l: reload pluginsruns/reload-pluginsfor you.- Hide everything: collapse the band with
[-]orctrl+x ctrl+a.
The band is 17 rows tall plus the line and the button row, and shrinks on short terminals. The few acts taller than that (the heart, confetti, fishing) lose a row or two of sky at the top.
In the desktop app Clawd is the same pixels drawn as an SVG, three CSS pixels each by
default, so he stays sharp at any size. The sidebar there has a Clawd size slider from
2 to 4 that resizes him at once and remembers it; the desktopSize option sets the
starting size. He stands on the button row
there, so he stays in view when a press scrolls the band, and walks its whole width.
- Commands it runs:
/reload-pluginswhen you pressl,/clearwhen you pressytwice or say yes to/clawd clear. - Compaction: compacts the conversation when you press compact twice, or after a turn that passes the auto-compact threshold you turned on. That and clearing are the only things that change the conversation.
- Programs it starts: your editor (see above), when you press a
file or the project button, or as Claude changes files while follow is on; PowerShell, to
open a window per clone on
/multiply; andgit rev-parseandgit status, read only, for the marks by each file. - Hooks: the
/clawdcommand (and/multiplyon Windows), the band above the prompt, prompt, turn and tool-call events to pick his moods, the session's usage figures for the line, and the responses to Claude's own model requests, for the Fable limit. It never changes a prompt, a tool call or its result, or a request to Claude or its response. - What it reads: whether a prompt has "thanks", "thank you" or "yay" in it (nothing else
of what you or Claude write), each tool's name and whether it failed, the path a file tool used
(and, after an edit, the file itself, to find the edited line), the context window's fill and
token counts per category, the usage limits' percentages, the rate-limit headers of Claude's
responses (for the Fable limit; nothing else of the response), when each request goes out,
three settings,
CLAUDE_CODE_PROMPT_CACHE_TTL,ENABLE_PROMPT_CACHING_1HandFORCE_PROMPT_CACHING_5M,VISUALandEDITORto pick your editor, andOSandCLAWD_CLONEfor/multiply. No other tool input, and no tool output. - What it stores: whether Clawd is hidden, whether the sidebar is on, the auto-compact setting, your editor command, whether follow is on, and when the session's last request went out (so a reload keeps the cache countdown), in the plugin's own store.
- What it sends: nothing, unless you press
count exactly, which asks the token-count API for each category the way/contextdoes.
Clawd and his sprites are Anthropic's, from claude.dev.
bun tools/extract-sprites.ts rebuilds them from the site (its pixel sheets and its Lottie acts) and
bun tools/render-preview.ts redraws the sprite preview in docs/clawd.gif. The forecast follows Anthropic's
token-weather mod (Apache-2.0), and
the context view is modeled on
context-lens.
This is an unofficial fan mod; Anthropic did not make it and does not support it.
The code is MIT, see LICENSE. Clawd's sprites are not covered by it, and the token-weather parts stay Apache-2.0; NOTICE has the details.
Issues and pull requests are welcome; see CONTRIBUTING.
