Implementing the Status Spinner
This recording shows the implementation of cc-prism’s status spinner feature - a rotating asterisk animation with shimmering verb text that appears during processing.
What You’ll See
The spinner displays whimsical verbs like “Pondering…”, “Cogitating…”, and “Ruminating…” while Claude Code works on tasks. The implementation includes:
- Rotating asterisk characters (
·✢✳✻✽) with 200ms animation timing - Character-level shimmer effect - a 3-character sliding highlight window
- Verb selection using Knuth’s multiplicative hash for pseudo-random distribution
- Throttling to prevent rapid verb switching (2s minimum interval)
Technical Details
The spinner triggers on “agentic content” - thinking blocks and tool calls. It uses a fixed position at row 37 (outside the scroll region) in FIXED mode, or renders inline in INLINE mode.
Color palette:
- Base color:
#d77757 - Shimmer highlight:
#eb9f7f