Can you generate a system of face icons to represent Claude and the status of the task, like this
Face icon system
Read both references. The second one is the key: a face is background disc + face fill + head shape + eyes/mouth, composed from a small parts kit, and the first image is that kit laid out as a grid (shape columns × expression rows).
Plan:
components/face-icon.tsx: one SVG component that composes a face from parts:shape(round, skull, flame, burst, bunny, crown, halo, cowboy, cloud…),eyes(dots, wide, wink, happy, sparkle, hearts, squint, sleepy, glasses, lookup, x, shades, angry),mouth(smile, grin, flat, frown, o, tongue, grit, smirk, wavy). Colours come from CSS vars only (disc = status ink, face = page colour, features = ink), so it follows light/dark and the terminal palettes with no extra tokens.lib/faces.ts: the mapping. Thread status → face (open / running / waiting / done / failed / ci_failed / ready / merged, each with its own shape + expression + existing status ink). Claude's avatar → round face whose expression follows the post kind (plan, progress, diff, done, question_back, failed).- Wire it in: the "C" Claude avatar in
components/post.tsx,agent-activity.tsx("Claude is working") and the home Last-reply card becomes the face;StatusBadge(components/bits.tsx) gets the status face in front of the label, so tiles and the thread header show it. - A public, DB-free
/facespage (like/themes) rendering the full grid plus both mappings, linked from the avatar menu, so the system is browsable. - Mockup screenshots at 390 / 900px before and after.
threadide@6f88e24Shipped on thread/6c1086cf (commit 6f88e24). The face system follows your second reference exactly: ink disc + head shape + eyes + mouth, composed from a parts kit, and /faces lays it out as the shape × expression grid from your first image.
What was built
The kit, components/face-icon.tsx: 9 head shapes (round, skull, flame, burst, bunny, crown, halo, cowboy, cloud) × 13 eyes (dots, wide, wink, happy, sparkle, hearts, squint, sleepy, glasses, look-up, x, shades, angry) × 9 mouths (smile, grin, flat, frown, o, grit, smirk, wavy, none). Pure SVG path data on a 32px grid; 2-unit strokes so the 16px badge version still has 1px lines. Colour is two-tone through --face-ink / --face-paper only, defaulting to the status ink and the page colour, so it works in light, dark and all the terminal palettes without a new token.
The mappings, lib/faces.ts:
| Thread status | Face | Why |
|---|---|---|
| open | round · dots · smile | neutral |
| running | round · wide eyes · o | concentrating |
| waiting | round · eyes rolled up · wavy mouth | waiting on someone |
| done | burst · happy · grin | finished |
| failed | skull · x eyes | the run crashed |
| CI failed | round · squint · frown | checks red |
| ready | halo · sparkle · smile | green, blessed |
| merged | crown · happy · grin | shipped |
The head shape tells the outcome; the ink is the same colour the solid badge already uses.
Claude is always the round head in the accent ink (an identity, not a status); only the expression follows the post kind: plan = glasses, progress = wide eyes, diff = shades, done = happy grin, question back = eyes up + wavy mouth (in the waiting yellow), failed = x eyes + frown (in the failed red), summary = sleepy.
Where it shows
StatusBadgenow carries the 16px status face before its label, so home tiles, Last-reply cards and the thread header all have it (inside a solid badge the disc merges with the badge and only the paper head shows, a cut-out).- The "C" Claude avatar in posts, in the "Claude is working" strip and in the home Last-reply cards is the face.
/faces(avatar menu → Faces, public, no DB) shows both mappings with notes, every ink at the three sizes the app uses, and the whole kit.
Notes for teammates
tsc --noEmitis clean. The screenshots are the real components rendered withreact-dom/serverinto static pages that linkapp/globals.css(the app can't run in the sandbox); checked at 390 / 900 / 1200px, light and dark.- Adding a status: one
:is(.badge, .face).x { --status: … }rule in globals.css plus an entry inSTATUS_FACES. - Not touched: the OpenGraph cards (lib/og.tsx) and the Pulp button icons. If you want the faces there too, say so.
Merged threadide #104 by @osebo (merge, ebac3a0).
The open icon has a weird outer container
The run crashed before finishing.
Error: Claude Code returned an error result: Credit balance is too low
at __.readMessages (file:///vercel/sandbox/runner/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs:136:121155)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
Try the last task again
Retrying the "open icon" fix. Diagnosis from your screenshot: the open badge is the only status badge that is a framed --fill chip rather than a solid one, and the face inside it still paints its own --faint ink disc. In the solid badges that disc is the same colour as the badge so it disappears (the head reads as a cut-out); in the open badge it shows as a dark circle inside a grey box, which is the "outer container" you're seeing.
Fix: give FaceIcon a separate --face-disc custom property (defaults to the ink), drop it to transparent for any face inside a .badge, and draw the open face's lines in the badge's label colour so the head sits directly on the chip like the solid ones. Nothing changes for standalone faces (/faces, Claude avatar). Then a before/after mockup shot in light and dark.
threadide@c3c6bfeFixed on thread/6c1086cf, commit c3c6bfe.
What was wrong
The open badge is the only status badge that is a framed --fill chip rather than a solid one, and the face inside it painted its own --faint ink disc. On the solid badges that disc is the same colour as the badge so it vanishes and only the head shows (a cut-out); on the open chip it showed up as a dark circle inside a grey box, which is the "outer container" in your screenshot.
What changed
components/face-icon.tsx: the backing circle now has its own--face-disccustom property (default = the ink, so nothing else moves).app/globals.css:.badge .face { --face-disc: transparent }because the chip already is the background, and.badge.open .face { --face-ink: currentColor }so the open head is drawn in the same ink as its OPEN label.components/face-gallery.tsx: one sentence on /faces saying that inside a badge the chip stands in for the disc.
Standalone faces (/faces, Claude's avatar, the "Claude is working" strip) and all seven solid badges are untouched; the before/after shots are pixel-identical for those.
Verified
tsc --noEmit clean. Screenshots are the real StatusBadge/StatusFace/ClaudeFace rendered with react-dom/server into tiles linking the live app/globals.css, with a "before" variant that reverts the two rules, in dark and light at 1× and 2×. The app itself can't run in the sandbox.
Note for teammates: if you ever add another framed (non-solid) badge that carries a face, it needs the same currentColor rule; solid badges need nothing.
Diff · 3 files
--- a/threadide/components/face-icon.tsx
+++ b/threadide/components/face-icon.tsx
@@
const PAPER = "var(--face-paper)";
+const DISC = "var(--face-disc, var(--face-ink))";
@@
- <circle cx="16" cy="16" r="16" fill={INK} />
+ <circle cx="16" cy="16" r="16" fill={DISC} />
--- a/threadide/app/globals.css
+++ b/threadide/app/globals.css
@@
.face { display: inline-block; flex: none; vertical-align: middle; border-radius: 50%; --face-ink: var(--status, var(--faint)); --face-paper: var(--bg); }
-.badge .face { margin: 0 1px 0 -5px; }
+.badge .face { margin: 0 1px 0 -5px; --face-disc: transparent; }
+.badge.open .face { --face-ink: currentColor; }
--- a/threadide/components/face-gallery.tsx
+++ b/threadide/components/face-gallery.tsx
@@
- One face is four layers: a disc in the status ink, a head shape, eyes and a mouth. The shape says what became
+ One face is four layers: a disc in the status ink, a head shape, eyes and a mouth. Inside a status badge the chip stands in for the disc, so only the head shows. The shape says what becameGreat! Also the faces aren’t always vertically aligned with the text like in ready for example
Diagnosis: inside a badge the ink disc is transparent, so only the head shape is visible, and the shapes with a hat (halo for ready, crown for merged, cowboy, bunny) draw their head LOWER in the 32px grid to leave room for the hat. The SVG box is centred on the label, but the visible head isn't: ready's head sits ~1px below the text centre at 16px, merged's ~0.75px, while open / running / done are exact. Standalone faces don't show it because the disc defines the box.
Fix: each shape declares its head centre, and FaceIcon gets an align="head" mode (used by StatusBadge only) that translates the drawing so the head centre lands on the SVG centre; .badge .face gets overflow: visible so the halo/crown tip isn't clipped. Disc-aligned faces (/faces, avatars) are unchanged. Then measure the head vs label offsets in a Playwright mockup for all eight badges, before and after.
threadide@de83758Fixed on thread/6c1086cf, commit de83758 (same PR as the open-chip fix, #106).
What was wrong
Inside a badge the ink disc is transparent, so only the head shape shows. The shapes that wear a hat draw their head LOW in the 32px grid to leave room for the hat inside the disc: halo (ready) at 18.3, crown (merged) at 17.5, and the skull (failed) sits high at 14.75. The 16px SVG box is centred on the label, but the visible head isn't. Measured at 16px: ready's head was 1.15px below the label centre, merged's 0.75px below, failed's 0.6px above; the five round-headed statuses were exact. On a phone at 3x that is 3.5px, which is what you saw.
What changed
components/face-icon.tsx: every shape declaresheadY(centre of the visible head, hat excluded).FaceIcontakesalign="disc" | "head"; "head" wraps the drawing in a<g transform="translate(0, 16 - headY)">.components/bits.tsx/components/faces.tsx:StatusBadgepassesalign="head"throughStatusFace. It is the only caller; standalone faces (/faces, Claude's avatar, the working strip) keep the disc alignment and are pixel-identical.app/globals.css:.badge .face { overflow: visible }so the crown tip can poke 1px past the 16px box inside the 18px chip (the halo is ink-on-ink inside a solid badge, so it was never visible there).
Verified
tsc --noEmit clean. Mockup = the real StatusBadge rendered with react-dom/server into tiles linking the live app/globals.css, with a "before" variant that renders the face without align. A Playwright measurement of head centre vs badge centre after the change gives 0.00px for all eight statuses (label centre is also 0.00px). Screenshots in dark at 3x with a guide line through each badge's centre, and the home tiles in light at 2x.
Note for teammates: a new shape must set headY, or it will sit off-centre in badges.
Merged threadide #106 by @osebo (merge, f437f97).













