Adding a Pet to Your Coding Assistant: A Practical Guide to Status Visualization

    This article explores why a decorative coding assistant extension can gain more traction than efficiency-focused plugins, and how to build one. It defines a four-part design constraint, a three-state model (idle, running, done) with strict completion detection, event-driven rendering with throttling, dual backends for terminal and desktop, and low-friction distribution. The core takeaway: making waiting perceivable is a valid form of value.

    1. Why “Productive” Plugins Flop While “Useless” Ones Get Forked

    In the coding assistant ecosystem, a pattern repeats itself: plugins marketed on efficiency tend to land quietly, while a decorative extension carrying almost no business logic attracts attention and gets forked for modification. The reason is not complicated. Efficiency plugins solve problems for people who already know what they want, so the audience is narrow, alternatives are plentiful, and the payoff is hard to perceive within seconds. A decorative extension lowers the psychological cost of using the tool: it needs no learning, no configuration, and its value is felt the moment it is installed, which makes it naturally shareable.

    A general conclusion follows: interaction design for developers does not have to create value by “doing one more thing.” It can also create value by “making what is already happening visible.” The biggest experience black box in coding assistants is that users do not know what the assistant is doing right now, whether it is reading files, searching, writing code, or idling. Turning that black box into a visible signal is a form of value in itself.

    2. Problem Definition: Turning “What the Assistant Is Doing” into a Perceivable Signal

    The goal can be abstracted into a general engineering problem: without interrupting the main conversation or adding operational burden, use a persistent, lightweight visual element to reflect the runtime state of the coding assistant.

    There are four design constraints, and none can be dropped:

    • Zero operational cost: it appears automatically after installation, with no daily feeding, no persona setup, and no extra parameters.
    • Distinguishable states: it must at least separate idle, running, and done, and the three states must not be visually confusable.
    • Trustworthy semantics: only a genuinely completed state emits a “done” signal; errors and interruptions must be excluded.
    • Low rendering overhead: a decorative element must not slow down terminal refresh or steal input focus.

    3. State Model: Three-State Mapping and Trustworthy Completion Detection

    The most reliable approach in practice is to compress the assistant lifecycle into three visual states and carry them through the posture changes of an anthropomorphic character:

    Assistant State Visual Expression Additional Info
    Idle, waiting Character stands still, prompt “waiting for you” None
    Running Character looks down and flips pages Name of the tool currently being called
    Done Character raises the book and smiles Falls back to idle after about 8 seconds

    The key design point is that the “done” state must be judged strictly: the smile appears only when the current turn ends normally. If the turn is interrupted by the user, or an error occurs during execution, it falls straight back to idle and emits no completion signal. This way the smile becomes the only trustworthy hint that “this turn really finished,” avoiding the semantic pollution common in tools that “spin and then declare completion.”

    Another easily overlooked detail is concurrency: when the assistant spawns subtasks that run in parallel, the main character should not switch expressions back and forth; it should follow only the state transitions of the main conversation. Otherwise the visual signal flickers at high frequency and becomes noise instead.

    A schematic state machine looks like this:

    1. IDLE --user_send--> RUNNING --finish_ok--> DONE(8s) --> IDLE
    2. RUNNING --interrupt/error--> IDLE
    3. RUNNING --spawn_subagent--> RUNNING(expression unchanged, only tool name updates)

    4. Event-Driven Rendering: Data Sources and Throttling

    The implementation requires no “intelligence” at all; it is essentially a subscriber: listen to the session event stream, maintain a current-state variable, and trigger one redraw when the state changes.

    1. state = "IDLE"
    2. current_tool = None
    3. def on_event(evt):
    4. global state, current_tool
    5. if evt.type == "tool_call":
    6. state, current_tool = "RUNNING", evt.tool_name
    7. elif evt.type == "turn_end":
    8. state = "DONE" if evt.ok else "IDLE"
    9. elif evt.type == "turn_interrupt":
    10. state = "IDLE"
    11. render(state, current_tool) # redraw only when the state actually changes

    Three engineering points matter. First, redraws must be debounced: no render is triggered when the state has not changed. Second, overly long tool names must be truncated to avoid breaking the layout. Third, the 8-second fallback for the done state should be implemented with a timer, and it must be canceled immediately when a new turn starts, so an old timer cannot overwrite the new state.

    5. Cross-Environment Adaptation: Dual Implementations for Terminal and GUI

    The same character needs two rendering backends in different runtime environments, and this is the most underestimated part of the work.

    The terminal environment cannot assume font or true-color support. A reliable approach is to use half-block characters to compose a half-body portrait, fixed at 36 columns wide and 16 rows high, combining upper and lower half blocks to double vertical resolution, yielding acceptable pixel-like visuals without depending on an image protocol. The width is also made a constant, so that in a narrow window it degrades to not displaying at all rather than breaking lines.

    The GUI environment can use bitmap assets directly, rendering a full-body pixel figure pinned to a sidebar. The overall strategy is to define a unified rendering interface, implement it separately for terminal and GUI, and keep a single copy of the state machine and business logic.

    1. Renderer (interface): render(state, tool_name)
    2. |- TerminalRenderer # half-block characters, 36x16
    3. └- DesktopRenderer # bitmap, persistent sidebar

    6. Distribution and Installation: Lowering the Adoption Barrier

    The spread of a decorative extension depends almost entirely on installation cost. A workable approach offers two paths: a one-line install command in the CLI, and adding the source through the plugin marketplace in the GUI and then enabling it. Once installed, a short command brings it up. When the window is wide enough, the character appears automatically in the sidebar; when it is too narrow, it takes no space.

    To swap the character, simply replace the asset files while keeping the three-state resource naming consistent. To understand the implementation, the repository documentation should spell out the state machine and the rendering interface. For users who do not want to read docs, the least effortful route is to hand the repository URL to the coding assistant and let it handle the integration, which also fits the division of labor: the assistant writes the code, and the human owns the character design and acceptance.

    7. Effect Boundaries and Extensions

    The boundaries must be stated honestly: this kind of component does not improve task success rates or reduce token consumption. Its payoff is attention management and emotional feedback. To extend further, the state signal can be wired to desktop notifications, sound cues, or a dashboard-style panel, and “current tool name” can be expanded into duration statistics to help users identify which kinds of operations are slowest. In more engineering-heavy scenarios, the same status-visualization idea applies to pipeline tasks and batch job progress. The core value remains one sentence: make waiting perceivable.