dsh-pet-progress: Adding Task Progress Bubbles to the Desktop Pet

Introduction

When using dsh web pet in DSH, the status bubble usually only reflects what the agent is doing “right now”: thinking, calling tools, ending a turn. A long task at ninety percent and one just started look almost the same on the pet, because the pet itself has no “how much is left” layer of information.

dsh-pet-progress (maintainer Elefseus, community category: fun dress-up) is a progress companion plugin that hangs next to the pet: it reads existing todo/write, goal/change, and similar events in the session, folds the completion ratio into the bubble above the pet; when there are no pending todos or goals, it falls back to a plain activity line instead of forcing a percentage.

What this is

In one sentence: it aggregates the todo list and goal rounds that the agent writes into the session into progress shown in the pet status bubble (or a current activity line).

The plugin works through the pet’s plugin seams (announce, registerPanelAction, session/event), is host-only, and does not ship a separate bundle to clients.

Core features

What appears in the bubble

When todos or goals change, a small bubble appears above the pet. Typical cases (consistent with the README):

Case Bubble display
Todo list, one item in progress 3/7 · 43%, titled with that task
Multiple items in progress Same ratio, lists up to three task names, remainder as +N
All todos completed Green “All tasks completed,” disappears after about 10 seconds
Long-term goal, no todos For example 2/8 rounds (goal round budget)
Goal completed Green “Goal completed,” shown briefly
Goal blocked Shows the blocking reason instead of progress numbers
Neither todos nor goals A line without a percentage: thinking (Thinking), last output (Last output), or current tool purpose (Current process)

When multiple sessions are open, the most recently active session occupies the bubble. The persistent bubble fades out about 30 seconds after the last progress update; “completion”-type instant prompts are announced once and kept for about 10 seconds to avoid being immediately overwritten by the next round of output.

Viewing the full todo list

The bubble is only one line. Click Progress on the pet panel to write the full todo list into the DSH log for verification.

Behavior principles (README “Good to know”)

  • Don’t exaggerate progress: unrecognized todo states are counted as incomplete; if an entire write is unreadable, keep the last valid information.
  • Don’t guess task names: only show items actually in progress (up to three, each truncated to 32 characters); multiple parallel items use +N, not arbitrarily picking one to pretend to be “current work”.
  • Compute percentages only from session events, not from runtime; when there are no todos/goals, show an activity line.
  • When there is no task list, follow the model’s streaming output and tool descriptions (for example Calling read: progress.ts), rather than just writing “calling a tool”.

Installation and activation

Install using the plugin’s full GitHub URL (do not use github:owner/repo):

dsh plugin add https://github.com/Elefseus/dsh-pet-progress

If using a named profile, add the profile parameter before add in the command, for example:

dsh plugin --profile <name> add https://github.com/Elefseus/dsh-pet-progress

You must install dsh web pet first (peer: @linxin666/dsh-pet >=0.4.0). If it is not installed, the plugin still loads but will not publish anything; DSH logs a note and will not crash.

After installation, restart DSH: bundles are only read at startup; without a restart it will not mount. After the agent next writes todos or starts a goal, the bubble appears automatically—no separate switch required.

Environment requirements

Component Version
DSH >=0.1.7-rc.1
@linxin666/dsh-pet >=0.4.0 (peer)
Node ^22.19.0 \|\| >=24.0.0

If an older pet does not expose the three seams above, the plugin cannot fully bind.

Optional configuration

The plugin entry is a Cordis-style apply:

apply(ctx, { enabled?: boolean, heartbeatMs?: number })

enabled: false mounts nothing; heartbeatMs defaults to 10000. The fade duration and the number of simultaneously tracked sessions can be adjusted in the source at src/progress.ts by changing PROGRESS_TTL_MS, MAX_TRACKED_SESSIONS (after changes, rebuild lib/ per repository instructions).

Typical usage

For ordinary users, the flow is: install pet → install this plugin → restart DSH → let the agent write todos or goal as usual. No extra API calls are needed.

To understand it from the code side, the plugin uses the same three seams as the pet:

Seam Purpose
ctx.on('session/event', …) Reads todo/write, goal/change, and turn/step/tool/message events
ctx.pet.announce(…) Publishes the progress bubble
ctx.pet.registerPanelAction(…) Registers the “Progress” button on the panel

Server-side pet capabilities are accessed via ctx.pet.

Example of updating an installed plugin (README Development section):

dsh plugin --profile desktop up dsh-pet-progress

Install with a pinned tag:

dsh plugin --profile desktop add "https://github.com/Elefseus/dsh-pet-progress#<tag>"

For local development, add your checkout as a file: dependency in the profile’s package.json, add dsh-pet-progress to dsh.profile.bundles, then restart the app (use a file:// URL if the path contains non-ASCII characters).

Use cases and notes

Who it’s for: DSH / agent developers already using dsh web pet who want to see “how much has been done” at a glance during long tasks instead of only the current step.

Permissions and security: Like other DSH plugins, this plugin runs under the permissions of the current dsh process, subscribing to session events and publishing content to the pet UI. Before installing, review the source and the MIT license to ensure it meets your environment policies. The community directory skillhub.cn is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Ecosystem background: DSH follows “everything is a plugin”; this repository is a companion plugin to the pet, extending it via seams rather than modifying the pet itself. Design notes are in the repository docs/DESIGN.md.

Closing

dsh-pet-progress folds existing todos and goals in the session into a progress bubble on the pet and honestly shows a current activity line when there is no list, adding the “how much is left” dimension. If you are already using the desktop pet, one official install command plus a restart is enough to try it.

  • Directory: https://www.skillhub.cn/plugins/Elefseus/dsh-pet-progress
  • GitHub: https://github.com/Elefseus/dsh-pet-progress
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye