State Visualization for AI Coding Assistants: Designing a Do-Nothing Desktop Companion Plugin
This article examines why a small companion plugin that performs no coding tasks can still deliver product value through state transparency and emotional connection. It presents a state-machine design for mapping an AI coding assistant's idle, working, and done states to pixel-art expressions; explains hook-based state capture and exception handling; describes dual rendering for desktop GUI and terminal environments using half-block characters and responsive layout; and discusses plugin distribution, open-source customization, and the broader lesson that visibility and companionship can matter as much as efficiency in developer tools.
Building a “Do-Nothing” Companion for AI Coding Assistants: Design and Practice of a State-Visualization Plugin
Starting With a Counterintuitive Phenomenon
Many developers have had a similar experience: they carefully build a tool that solves a real pain point, release it, and receive little attention. Meanwhile, a small toy that “does no real work” unexpectedly attracts interest. An independent developer shared a real case: he built several practical tools aimed at improving efficiency, but after release they gained little traction. The only time a stranger copied his code and built on it was for a plugin that merely replaced background images. That plugin improved no efficiency at all, yet it made users happier and earned platform stars.
Behind this phenomenon is a question worth considering: in a market where productivity tools are highly homogenized, emotional value and state transparency can themselves be product value. Human-computer interaction research has long pointed out that users’ trust in a system and their willingness to keep using it depend heavily on the visibility of system state. Letting users know at any moment what the system is doing and how it is progressing can build stickiness more effectively than simply piling on features.
Based on this idea, the developer created an interesting practice: a desktop companion for an AI coding assistant—a pixel character holding a book. She does not write any code for the user; she only uses facial expressions to convey the assistant’s current working state. Below is a technical breakdown of the complete design approach for this kind of state-visualization companion plugin.
Core Design: Mapping Abstract Runtime States to Concrete Expressions
The essence of this kind of plugin is a visualization component driven by a state machine. In a single conversation turn, an AI coding assistant usually has only three core states that need to be exposed externally:
- Idle: the assistant is waiting for user input. The companion stands still holding a book, with a prompt such as “Waiting for you to speak.”
- Working: after the user gives an instruction, the assistant begins reasoning and calling tools. The companion looks down and flips through the book, while the text area below synchronously displays the type of action currently being executed—whether reading a file, searching code, or running a command.
- Done: the turn ends normally. The companion raises the book and smiles, stays briefly (for example, 8 seconds), and then automatically returns to the idle state.
There is an important engineering detail here: exception branches must be distinguished from normal completion. When a turn is interrupted by the user or an error occurs, the companion should not show the “done” expression; instead, it should return directly to idle. The benefit of this design is that when the user catches the smiley face in their peripheral vision, they can be sure that this round genuinely finished rather than being aborted midway. This is a low-cost trust-building mechanism.
Another boundary condition is the multi-agent scenario. When the main session spawns subtasks (subagents) to work in parallel, the companion should follow only the state transitions of the main conversation and not change expressions frequently because of the start and stop of subtasks. Otherwise, the interface will fall into meaningless flickering, and the state indicator will lose its signal-to-noise ratio.
Implementing State Capture
The plugin does not modify any core logic of the assistant. Instead, it passively listens through a hook mechanism. Mainstream intelligent coding tools generally provide the following lifecycle events:
- A pre-hook triggered when the user submits a message;
- Execution hooks triggered before and after each tool call;
- A stop hook triggered when a turn ends normally;
- Exception hooks triggered by interruptions and errors.
The plugin’s logic can be expressed with the following illustrative pseudocode:
on UserPromptSubmit:pet.setState(WORKING, label="Thinking")on ToolCallStart(toolName):pet.updateLabel(mapToolToText(toolName))on TurnComplete:pet.setState(DONE)schedule(8s, () => pet.setState(IDLE))on TurnInterrupted or TurnError:pet.setState(IDLE) // Do not show the done expression
This design follows the principle of minimal intrusion: the state companion is only an observer. It does not participate in, intercept, or change any behavior of the assistant. Install it and you get three expressions; remove it and the assistant works as usual. For users, this means zero learning cost and zero risk—there is no need to “raise” her or configure a persona.
Dual Rendering: Adapting to Desktop Clients and Terminal Environments
The plugin needs to present the character in two very different runtime environments, which is the most challenging part of the implementation.
The desktop client environment has full graphical rendering capabilities. It can directly display full-body pixel art and combine it with smooth expression-switching animations for the best experience. The choice of pixel style is also deliberate: low-resolution art assets are small, load quickly, and naturally carry the appeal of a “retro game companion,” which fits the positioning of “does not work, only keeps company” very well.
The terminal environment can only draw with characters. A common approach is to use half-block characters (such as ▀ and ▄) to split each terminal character cell into upper and lower pixels, thereby assembling a higher-resolution pattern within a limited column width. In practice, a bust image requires a character canvas about 36 columns wide and 16 rows high, a size compatible with most terminal emulators.
The layout also needs a responsive appearance strategy: when the terminal window is wide enough (for example, more than 144 columns), the companion automatically docks in the sidebar of the conversation area without crowding the main text; when the window is narrower, it actively hides to avoid interfering with normal output. This strategy of “appearing when there is room, retreating when space is tight” is the restraint expected of a tool plugin.
General Design for Distribution and Installation
The plugin can be distributed through the plugin marketplace mechanism built into the host tool. There are usually two installation paths:
- Command-line installation: enter a plugin installation command in an interactive session and specify the plugin name and source repository. This suits users who are comfortable with keyboard operations.
- Graphical interface installation: use the client’s plugin management panel, first add the marketplace source, then search for and add the target plugin. This suits desktop users.
After installation, the companion can be summoned with a short slash command. Open source is an important advantage for this kind of project: other developers can replace the artwork assets and turn the companion into their favorite character; they can also read the implementation code to understand the complete chain of state hooks and dual rendering. For users who do not want to read the source code line by line, they can even hand the repository address directly to an AI coding assistant and let it perform the localization and customization—using AI to customize AI’s companion is itself an interesting way of producing software.
It is worth noting that the development mode of such projects is also changing: character design and acceptance criteria are controlled by humans, while a large amount of code implementation is handed over to AI. Humans decide “what is wanted and what counts as good,” and AI decides “how to implement it.” This division of labor is becoming a new normal for independent developers.
Final Thoughts: The Useful Side of “Useless”
Looking back, the fact that this plugin “does no work” is precisely its greatest value. It solves two real but easily overlooked problems: first, users’ state anxiety when an AI assistant executes long tasks—one glance at the expression tells them which step it has reached; second, the sense of companionship when facing a cold terminal for a long time—a little character who waits for you to speak and smiles for you adds a bit of warmth to the development process.
For developers, the lesson from this case is that tools do not have to chase efficiency in everything. State transparency, emotional value, and low intrusiveness—these “soft” design decisions often move real users more than feature stacking. If you are also building developer tools, it is worth asking yourself: besides helping users get work done, can your product also keep them company for a while?
