Building a Status-Visualizing Desktop Pet for AI Coding Assistants

    While utility-focused developer tools often struggle to gain traction, emotionally engaging side projects frequently thrive. This article details the design and implementation of a non-intrusive desktop pet for AI coding assistants. It covers the product positioning, a three-state finite state machine mapped to AI execution phases, dual rendering paths using pixel art and terminal character grids, and a low-permission plugin architecture.

    Building a Status-Visualizing Desktop Pet for AI Coding Assistants

    Starting from a Counterintuitive Phenomenon

    As an independent developer, I have built several small tools with a straightforward premise: solving real problems and boosting productivity. However, after release, they almost invariably sank without a trace—no discussions, no users, and no contributors.

    What truly surprised me was an accidental success. I once casually wrote a plugin with an almost absurdly simple feature: changing the background image of an AI tool’s command-line interface. It didn’t do any “real” work; it didn’t write code, modify configurations, or optimize workflows. It just changed an image. Surprisingly, this plugin not only earned stars but was also forked by a stranger for the first time. That moment made me realize something: the community’s response to something “fun” is often far more enthusiastic than to something “useful.”

    This observation prompted a strategy shift. Since serious tools were ignored, I decided to build something entirely unproductive. This time, I chose to create a desktop pet for widely used AI coding assistants—a chibi-style pixel character holding a book.

    Product Positioning: Companionship, Not Productivity

    The design principles for this pet are clear and can be summarized in three points:

    First, it assumes no productivity roles. It doesn’t autocomplete code, execute commands, or summarize logs. The AI assistant handles the work; the pet is just “present.”

    Second, it requires no nurturing or training. There are no affinity points, no persona configurations, and no complex customization options. Installing it gives you a fixed set of expressions with zero learning curve.

    Third, beyond being cute, it assumes a lightweight responsibility: status visualization. This is the most technical part of the article, which we will expand on below.

    The insistence on “doing no work” stems from the community feedback logic mentioned earlier. Pure tools face intense competition, and user migration costs are high. In contrast, a purely emotional trinket has no replacement pressure, making the installation decision virtually cost-free. On the other hand, “companionship” is a genuine need. People who spend long hours pair programming with an AI assistant often want some lively feedback during tedious waiting gaps, rather than staring blankly at a spinning cursor.

    Core Design: Three Expressions for Three States

    Although the pet is “useless,” it maintains a strict one-to-one mapping with the assistant’s operational state, upgrading it from a mere decoration to a non-intrusive status indicator.

    The state machine is defined as follows:

    • Idle State: The pet sits holding a book, with a line of text below her indicating “Waiting for input.” This corresponds to the phase where the assistant has not yet received a user command.
    • Working State: After the user sends a message, the pet looks down and flips through the book. More importantly, the text below her updates in real-time to display the name of the tool currently being invoked by the assistant. Since AI coding assistants often chain multiple tool calls in a single response (reading files, executing commands, searching content, etc.), a quick glance at this text tells you which step it’s on, without having to scroll through massive output logs.
    • Completed State: After the assistant finishes answering, the pet holds up the book and smiles. This lasts for about 8 seconds before automatically reverting to the Idle state.

    There is a crucial but easily overlooked detail: the trigger condition for the Completed state must be “the current response ended normally.” If the round is interrupted by the user or an error occurs during execution, the pet does not smile; she jumps directly back to the Idle state. In other words, the “smiling with the book raised” expression carries strict semantics—seeing it is the only way to confirm the round is truly finished. This is a typical design that compresses state information into visual symbols, much faster than reading text logs.

    Another edge case: when the assistant spawns subtasks (i.e., dispatching independent sub-agents to execute parallel work from the main conversation), the pet does not switch expressions. It always only follows the state of the main conversation. This prevents multiple concurrent tasks from causing the indicator to bounce back and forth, which would compromise readability.

    Implementation: Two Rendering Paths

    To cover different usage environments, the pet offers two rendering solutions, though the core logic of the state machine is shared.

    Graphical Interface: Full-Body Pixel Art

    In a graphical client environment, there is ample room for pixel art, so a full-body chibi-style pixel character is used. When drawing pixel characters, a few things are important: first, the palette should be restrained, kept to about a dozen colors to ensure recognizability at low resolutions. Second, expressive differences should fall on the eyes and hand movements, as the face is the visual focal point, and the book acts as the core prop threading through all three states—flipping, holding, and raising the book create a clear action narrative. Third, the frame count doesn’t need to be high; one or two frames per state is sufficient. Excessive animation can become a distraction.

    Terminal Interface: Character Art

    The terminal environment has no pixels, only character grids. The solution is to use half-block characters (Unicode symbols that compress two vertical pixels into one character) to assemble a half-body portrait, kept within 36 columns wide and 16 rows high. This size is a deliberate trade-off: it’s large enough to convey expressions and the book prop, but not so large that it squeezes the normal conversation area. Another benefit of character art is its excellent compatibility; it works in any terminal emulator that can properly display Unicode.

    A detail regarding user experience: when the terminal window is wide enough (e.g., over 144 columns), the pet automatically appears in the sidebar position. If the window isn’t wide enough, it doesn’t proactively take up space and can be manually summoned via a command. This “display only when capable” strategy avoids bothering users with narrow screens.

    A General Approach to Plugin Integration

    From an engineering perspective, the key to this type of plugin is perceiving the assistant’s state changes. A common industry practice is for the host tool to expose several event hooks during the session lifecycle (such as input received, tool invocation started, tool returned, response ended, error interrupted, etc.). The plugin subscribes to these events to drive its own state machine transitions. All the pet’s logic can thus be distilled into a minimalist finite state machine:

    1. Idle --User message received--> Working
    2. Working --Normal completion--> Completed (reverts to Idle after 8s)
    3. Working --Interrupted or error--> Idle

    During state transitions, two things are updated synchronously: the currently displayed expression frame, and the bottom text (idle prompt or current tool name). The entire plugin contains no network requests, reads no user data, and modifies no assistant behavior. This tiny permission footprint is another hidden advantage of “useless things”—low review costs and zero hesitation for users to install it.

    As for distribution, most mainstream AI coding tools currently support a plugin or extension mechanism, usually offering a marketplace-style registration. The author registers the repository as a plugin source, and users can complete the installation via a single command or by adding the source address in the UI. This project is also open source. If you want to swap in your own character designs or study the implementation details, the repository contains full instructions. You can even hand the repo URL directly to your AI assistant to help you customize it—after all, most of the plugin’s code was written by AI in the first place; I was only responsible for the character design and final acceptance testing.

    Final Thoughts

    Looking back at this journey, my biggest takeaway is that the developer community’s acceptance of “fun side projects” is much higher than their acceptance of “yet another utility tool.” The tool track competes on feature depth and ecological niches, whereas the emotional value track has almost zero competition. A pixel pet that does no work gained users faster than earnestly built efficiency tools.

    If you also want to build something for your work environment, consider letting go of the obsession that it “must be useful.” Do a good job with status visualization, make the design appealing, and lower the installation barrier to the absolute minimum. Achieve these three things, and even a “useless” little trinket can become a long-term resident on someone else’s desktop.