Skip to content

Claude Code working line: rotating verb + turn tokens + elapsed timer next to the spark #269

Description

@flazouh

Owner request (2026-08-26): beside our Claude working-spark (our equivalent of 'Planning next moves'), show the famous Claude Code working line — a rotating gerund verb, the tokens received so far this turn, and a live elapsed timer. Reference shape: 'Puzzling… (12s · ↑ 1.4k tokens · esc to interrupt)'.

SCOPE

  1. VERB: a rotating set of gerunds cycling every few seconds while the turn runs (Claude Code ships dozens: Puzzling, Pondering, Noodling, Simmering, Percolating, Ruminating…). Ours should feel native, not copied verbatim — a curated list plus a deterministic-but-varied rotation (seeded per turn so it does not flicker on re-render). Pairs with the existing claude-working-spark morph sprite; generic providers keep a neutral verb set.
  2. TOKENS: per-turn token count, live. The data already exists as a contract fact — ClaudeSdkMap emits UsageFact { inputTokens, outputTokens, totalTokens, costUsd, contextWindowSize } and the adapter currently routes it into generic SessionMetaUpdated metadata (same swallow-pattern as provider_session before Session experience parity: make real Claude threads feel alive (spec + checklist) #262: the projector never reads it, so nothing downstream can show it). Needs: project usage per TURN (projection_turns or a usage projection), expose on the snapshot, render in the working line. Show received/output tokens for the running turn, formatted compactly (1.4k).
  3. TIMER: elapsed since turn start, ticking ~1/s, from the canonical turn start (projection_turns.started_at) so it survives a reopen mid-turn.
  4. INTERRUPT HINT: include the interrupt affordance text/binding consistent with our composer (we have an Interrupt control already).

NOTES

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions