Designing and Implementing a Status Pet Plugin for AI Coding Assistants
In the ecosystem of AI coding assistants, functional plugins often face an awkward dilemma: the more "serious" their capabilities, the harder they are for average users to perceive. A long chain of installation, usage frequency, and value realization leads to a rapid decay in dissemination. Conversely, small visual components that provide lightweight feedback without taking on core tasks are more likely to be noticed. This article discusses the design of a "non-working" plugin: adding a status pet to an AI coding assistant. It uses low-interference visual feedback to indicate whether the assistant is idle, executing, or has just completed a task. We also provide actionable engineering implementation and distribution strategies.
In the ecosystem of AI coding assistants, functional plugins often face an awkward dilemma: the more “serious” their capabilities, the harder they are for average users to perceive. A long chain of installation, usage frequency, and value realization leads to a rapid decay in dissemination. Conversely, small visual components that provide lightweight feedback without taking on core tasks are more likely to be noticed. This article discusses the design of a “non-working” plugin: adding a status pet to an AI coding assistant. It uses low-interference visual feedback to indicate whether the assistant is idle, executing, or has just completed a task. We also provide actionable engineering implementation and distribution strategies.
1. Background: Why Functional Plugins Struggle for Attention
Functional plugins typically derive their value from “replacing manual operations,” such as batch processing, format conversion, theme replacement, or workflow orchestration. The problem is that realizing this value requires users to first understand the scenario, then complete the configuration, and finally trigger it during a specific task—a rather long chain. If the plugin targets low-frequency scenarios, users will find it difficult to form continuous usage habits and actively share it, even if they install it.
A key observation from practice is that what strangers actually copy and modify is often a visual theme plugin that barely handles any business logic. It only changes the background but receives better feedback because it is “instantly visible upon installation, requires no learning, and doesn’t affect the main flow if it fails.” This indicates that plugin design is not just about the efficiency dimension, but also the perception dimension. The status pet follows this exact logic: it does not replace the assistant’s work or alter task results; it simply externalizes the assistant’s internal state into an instantly recognizable character action.
2. Product Positioning: A Non-Working Status Visualization Layer
The positioning of the status pet should be highly restrained: it does not execute commands, modify code, participate in task decisions, or require users to configure personas. It does only one thing—subscribes to the AI coding assistant’s event stream and maps states to character expressions and actions. The benefits of this approach are threefold:
- Low risk: Even if the pet fails to render, the main conversation and code generation continue to work normally; the plugin should degrade gracefully to a no-pet mode.
- Low learning curve: Users do not need to read complex documentation. After installation, they can understand the assistant’s state through actions.
- Extensibility: Character resources, action sequences, and state copy can be decoupled from the core logic, making it easy to swap different characters.
Architecturally, it is a “presentation layer plugin” rather than a “capability layer plugin.” The key metrics for a presentation layer plugin are not processing throughput, but state accuracy, refresh stability, and zero blocking of the main workflow.
3. State Model: Three-State Lifecycle Mapping
The simplest model can be abstracted into three states: Idle, Working, and Done. Idle indicates waiting for user input; Working indicates the assistant is thinking or calling a tool; Done indicates the current turn has truly ended. The Done state can be briefly displayed before returning to Idle—for example, staying for 8 seconds—so the user clearly perceives that “this round has ended.”
Exceptions and interruptions need special handling: when a turn is canceled, errors out, or times out, it should not enter the Done state but directly return to Idle, preventing users from mistakenly thinking the task succeeded. For scenarios where the main assistant dispatches sub-task agents, the pet should only follow the main conversation state, not switch expressions for every sub-task, otherwise visual noise will increase significantly.
The pseudocode is as follows:
onAssistantEvent(event):switch event.type:case SESSION_IDLE:state = IDLEcase THINKING or TOOL_START:state = WORKINGtoolLabel = event.toolNamecase TURN_COMPLETE:state = DONEscheduleAfter(8s, IDLE)case TURN_ABORT or ERROR:state = IDLE
During implementation, event deduplication and throttling should be added: do not redraw if the same state arrives repeatedly; high-frequency tool events should only update the tool label without triggering a full animation reload. The Done state requires a cancellable timer; if the user initiates a new turn within the 8 seconds, it should immediately switch back to Working.
4. Rendering Adaptation: Terminal and Desktop
The same state source needs to be adapted to different rendering environments. The terminal side typically uses ASCII art or half-block character splicing to output a half-body portrait, with dimensions controlled at about 36 columns wide and 16 rows high to be compatible with common terminal widths. The desktop client side can use pixel art full-body portraits, with resource loading and scaling managed by the container. Both share the same state machine but have independent renderers, avoiding coupling terminal escape sequences with desktop graphics interfaces.
Terminal rendering must focus on handling: Unicode character width differences, color degradation, redraw area control, cursor position restoration, and window resizing. If the terminal width exceeds about 144 columns, the pet can be placed on the side; if the width is insufficient, hide or shrink it to avoid squeezing the main conversation. The desktop side must handle resource caching, animation frame rates, and the plugin container lifecycle. On either end, the rendering loop must not block event processing, and the refresh rate should be limited to a human-perceptible but resource-efficient range.
5. Installation, Distribution, and Open Source Customization
The distribution method should be as standardized as possible: add the repository source in the plugin market, then install the plugin; desktop clients add the market through the plugin entry and select the plugin. After installation, the pet is summoned through a unified entry. Specific commands and entry names should follow the plugin instructions and not hardcode platform differences in the core logic. The open-source repository should provide three types of documentation: installation instructions, state mapping instructions, and character resource replacement instructions. When customizing a character, users only need to replace the image or ASCII art resources and keep the action names consistent with the state enumerations.
To lower the barrier to entry, a common practice is to “give the repository instructions to the AI assistant and let the assistant assist with installation,” but it must be emphasized that scripts and permissions should be reviewed in a controlled environment to avoid automatically executing commands from unknown sources. The plugin’s code implementation should also remain auditable: minimize event subscription scope, do not read irrelevant context, and do not persist sensitive information.
6. Boundaries and Best Practices
The status pet is not a task monitor and cannot promise to accurately reflect all internal steps; it is merely an approximate indicator of the main turn’s state. The brief display of the Done state before returning to Idle is to distinguish “truly finished” from “intermediate pause.” Errors and interruptions do not show the Done action to avoid misleading. Sub-tasks do not switch expressions to control noise.
Engineering-wise, it is recommended to follow these principles: single source of truth for the state machine; pluggable rendering layer; all timers cancellable; graceful degradation to empty implementation on exceptions; resource loading failure does not block the main flow; separate compatibility tests for terminal and desktop; throttle and merge high-frequency events; provide default values for user-configurable options. Finally, the success criterion of the plugin is not “how much work it does for the user,” but “whether it makes it easier for the user to understand what the assistant is doing.” When tool-based plugins are hard to perceive, a restrained, accurate, and customizable status visualization layer can instead become an effective starting point for improving the developer experience.
