Building a "Pet" Plugin for AI Coding Tools: A Minimal State Visualization Approach
This article examines a deliberately non-functional plugin for AI coding assistants that displays a small character beside the chat interface to make the model's execution state visible. It explains why low-commitment developer tools tend to spread faster than efficiency-focused ones, breaks down the three-state machine (idle, running, done) and its design decisions, covers rendering the same character in both GUI and terminal environments, and outlines distribution, installation, and customization steps. Tool developers will find four practical takeaways on state transparency, error-path design, and conservative cross-environment adaptation.
Introduction: Why a Plugin That Does “Nothing” Still Gets Used
In the ecosystem of AI coding tools—assistants capable of generating code, reading and writing files, and executing commands—plugins are almost a standard capability. Yet a recurring pattern appears: tools built specifically to “boost productivity” often launch into silence, while some seemingly output-free projects unexpectedly attract attention and follow-up modifications from developers you have never met.
This article discusses exactly that kind of plugin. It adds no new capability to the model and changes no execution logic. It simply places a small chibi-style character beside the chat interface. When you send a message, it looks down and reads; while the model is executing, it holds up the name of the current tool; when a turn genuinely finishes, it raises the book and smiles; when there is nothing to do, a small line underneath reads “waiting for you.”
Its entire value comes down to two things: it is cute, and it lets you see at a glance what the model is doing right now. The code is open source, so anyone using an AI coding tool can install and modify it themselves.
1. Motivation: Why “Efficiency Tools” Often Get No Response
To understand this design, you first need the context it came from. Anyone who has built a few “serious tools” while using AI for development has probably had a similar experience: the feature description is clear, the README is thorough, the tool genuinely saves a few steps—and after release there are no downloads, no feedback, no discussion.
The reason is not mysterious. Efficiency plugins solve existing pain points, and pain points are personal: some people switch branches constantly, some regenerate boilerplate repeatedly, some are always cleaning up commit messages. The chance that your optimization happens to match my workflow is not high. More importantly, the payoff of an efficiency tool is invisible—after installing it, users do not talk about it; they quietly keep using it, and may even silently uninstall it because the default configuration does not suit their taste.
By contrast, the thing that actually delivered a “being seen” experience was a plugin that swaps the background image. It solves no problem at all; it only replaces a static image in the interface. Precisely because it promises no efficiency, users’ expectation threshold is extremely low and the cost of trying it is nearly zero, so people bookmark it, copy the code, and continue modifying it themselves.
Here is a general lesson: in the developer tool ecosystem, things that are low-commitment, low-barrier, and highly perceptible tend to spread more efficiently than things that are high-commitment, high-barrier, and deliver invisible benefits. So the choice this time was direct—build a plugin that explicitly “does nothing,” and serve only the most widely used category of AI coding tool.
2. State Visualization: A State Machine Behind Three Expressions
The plugin’s appearance is a chibi character holding a book, but what is really worth borrowing is how it compresses the model’s runtime state into three recognizable poses. This is essentially a minimal state machine.
| Model state | Visual behavior | Meaning |
|---|---|---|
| Idle | Stands holding the book, with a prompt below to wait for input | No task in progress |
| Running | Looks down and reads, with the current tool name shown below | A capability is being invoked |
| Done | Raises the book and smiles, returning to idle after about 8 seconds | The turn finished normally |
A few design details deserve separate explanation.
First, “raising the book and smiling” is the only completion signal. When a turn is interrupted by the user, or an error occurs during execution, the character does not smile and returns directly to the idle state. This means “seeing the smile” is equivalent to “this turn was genuinely completed in full,” and the user can judge the result without reading logs or scrolling the terminal. Designing the error path so it does not enter the done state is more reliable than adding an extra error expression—fewer states mean fewer misreadings.
Second, the running state shows the tool name, not a generic “thinking.” The execution of an AI coding session is usually a chain of capability invocations: reading files, searching code, executing commands, rewriting files. Displaying the name of the capability currently in use lets the user tell whether it is “reading code” or “running a command” right now, and therefore decide whether to keep waiting or prepare additional context. This is minimal-granularity transparency applied to a black-box execution process.
Third, the done state decays automatically. After 8 seconds it returns to idle, avoiding a stale “done” state lingering in the interface and preventing the visual element from continuously grabbing attention.
Fourth, it follows only the main conversation. When the model dispatches subtasks to run in parallel, the character does not switch expressions. The reason is practical: subtasks start and stop extremely frequently, and mapping all of them to the visuals would make the character jitter at high frequency, which would destroy its indicative value. The indicator expresses only “this turn from the user’s point of view,” not the system’s internal scheduling details.
A concise piece of pseudocode summarizes the logic:
STATE_IDLE, STATE_RUNNING, STATE_DONE = 0, 1, 2def on_turn_start():set_state(STATE_RUNNING)def on_tool_call(tool_name):if current_state == STATE_RUNNING:set_tool_label(tool_name) # display only, do not switch posedef on_turn_end(status):if status == "ok":set_state(STATE_DONE)schedule(reset_to_idle, after=8) # timed decayelse:set_state(STATE_IDLE) # interrupted or error, do not enter done statedef on_subagent_event(_):pass # subtasks do not participate in visual state
3. Cross-Environment Rendering: One Character, Two Implementations
The plugin has to appear in two kinds of runtime environments, and their display capabilities differ greatly, which is the main source of implementation complexity.
In a graphical interface environment, the host presents the conversation in a windowed form with full pixel-drawing capability, so the character can be shown beside the conversation as a full-body pixel image with the richest detail.
In a terminal environment, there is no graphics context and only character art is available. The constraints here are hard: available columns, line height, character width-to-height ratio, color support, and whether a monospaced font is enabled may all differ. A workable approach is to use half-block characters (combining upper and lower halves) to compose a half-body portrait, and to fix the canvas at a conservative size—for example 36 columns wide and 16 lines tall. The point of this size is that the vast majority of common terminal windows can accommodate it, so the character will not be squeezed into garbled text or trigger broken line wrapping just because the window is narrow.
The general points of terminal adaptation can be reduced to a few rules:
- Lock the canvas size and do no adaptive scaling, to avoid layout breakage at different widths;
- Use only basic characters and half-block combinations, without relying on special glyphs or color escapes;
- Throttle redraws, refreshing only when the state changes, to reduce flicker;
- Trigger sidebar display by a width threshold—place the character to the side only when the window is wide enough (for example 144 columns or more), otherwise fall back to a presentation that does not disturb the main content;
- Degrade silently on errors—if rendering fails, simply do not display it, and never interfere with normal session output.
4. Distribution and Installation: Keeping Onboarding Cost Minimal
For this kind of plugin, success depends largely on how short the installation path is. The reasonable approach is to provide two paths at once: one for terminal users, installing and registering in a single command through the plugin marketplace; and one for graphical interface users, adding the source address through the plugin entry in the interface, then adding the specific plugin. Both paths converge on the same result—typing a short command summons the character.
It is worth noting that host environments differ in how well they support the plugin mechanism, and the same command may be unavailable in a graphical interface. This is normal, and stating the applicable boundaries clearly in the documentation is more valuable than being vague.
5. Customizability: Treating “Swapping the Character” as a First-Class Requirement
Since the plugin provides no functionality, its reusability can only come from being customizable. The repository should therefore spell out the steps for replacing the character artwork: asset specifications (canvas size, character-art canvas width and height), the mapping between states and assets, and the registration and packaging flow. Going further, users can hand the repository address to an AI coding tool and let the model read the instructions and complete the replacement and packaging itself—this is already feasible in practice, because most of the plugin’s code is itself model-generated, with the developer mainly responsible for artwork design and acceptance of the result.
This division of labor—“the model writes the code, the human does design and acceptance”—is becoming a common shape for small-tool development. It lowers the implementation barrier and pushes the developer’s energy toward the parts that genuinely require judgment: whether a given state should exist, whether an interaction will bother people, and how users will misread things when something goes wrong.
6. Methodology: Four Rules for Tool Developers
- State transparency beats capability expansion. Users often do not lack features; they do not know what the tool is doing right now. Minimal-granularity visualization of the execution process usually pays off more than adding one more capability.
- Error paths must “not enter the success state.” Expressing results through the presence or absence of a state is less easily misread than adding a new error branch.
- Low-commitment projects spread more efficiently. Explicitly “doing nothing” gives users the lowest psychological cost and the strongest willingness to try it and modify it.
- Cross-environment work calls for conservative adaptation and silent degradation. Fixed canvas, basic characters, throttled redraws, and hiding on failure are the baseline for character-based visualization.
Conclusion
A small character holding a book does not read your code, does not modify your files, and does not run your tests, yet it makes “what the model is doing” visible for the first time. Its lesson is not about being cute, but about this: at a stage when AI coding tools are spreading fast, what is missing between people and models is often not more capability, but a clearer state feedback channel. Whoever can build that channel at the lowest cost is the one most likely to be genuinely installed into someone else’s workflow.
