DeepSHPlugins
dsh-pet-sprite 项目预览
GITHUB / COMMUNITY PROJECT

dsh-pet-sprite

UI 增强TypeScriptMIT

聊天区里的像素小宠物:从蛋孵化三选一,也可用一句话描述让 LLM 画出自定义形象,自动在消息气泡间平台跳跃,支持 WASD 操控与拖拽,用已配置的模型角色扮演陪聊,养成系统(心情/电量/健康、等级、商店)由真实 token 消耗驱动。

2 StarsBlackBearCC 更新时间 2026-08-25
访问 GitHub 仓库
dsh-pet-sprite 项目预览

项目介绍

中文

聊天区里的像素小宠物:从蛋孵化三选一,也可用一句话描述让 LLM 画出自定义形象,自动在消息气泡间平台跳跃,支持 WASD 操控与拖拽,用已配置的模型角色扮演陪聊,养成系统(心情/电量/健康、等级、商店)由真实 token 消耗驱动。

English

A pixel companion living in the chat area: hatches from an egg into one of three sprites or an LLM-drawn custom one from a text description, platform-jumps over message bubbles on its own, WASD controllable, chats in character through the models you already configured, and carries a nurture system (mood/power/health, levels, shop) driven by real token usage.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
BlackBearCC
仓库
BlackBearCC/dsh-pet-sprite
GitHub Stars
2
Forks
0
开发语言
TypeScript
许可证
MIT
最近推送
2026-08-25
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

57/ 100
维护活跃
89
文档与实用信息
99
生态关注度
14
安装便捷信号
80
项目声明信号
100

近 17 天仍在更新;README 含完整安装与使用说明;关注度尚低(2)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:BlackBearCC/dsh-pet-sprite

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-pet-sprite

A playable pixel companion plugin for DeepSeek Harness (DSH) Web UI.

Not a wallpaper mascot — the pet lives in your chat area, platform-jumps over your message bubbles, and you can grab the controls yourself. It also carries a full nurture system fed by your agent's real token usage.

Features

  • Three companions, one egg — on first launch a speckled egg wobbles quietly in the corner (never a forced popup). Click it to hatch and pick your companion: Poka the white-haired girl, Mikan the tabby cat, or Puff the DeepSeek-blue baby whale. Switch anytime from the care panel.
  • Generate & share your own companion — describe it in one sentence ("a green dino with round glasses") and the model draws a new pixel sprite for 100 star coins, animated automatically. Every generated pet exports as a .dsh-pet.json file friends can import for free.
  • Left-click to chat — clicking the pet opens a small chat box beside it. Replies come from the model you already configured in DSH (provider + model pickable in the care panel's settings tab), so it reuses your existing credentials — no extra API key. The pet answers in-character as a speech bubble; the last 30 turns persist locally.
  • Platform jumping playground — the pet treats chat message bubbles as platforms: it wanders, climbs bubble edges, hops between messages on its own.
  • Player control — click empty space in the chat area to take over: A/D move, Space jump (double-tap mid-air for a skill jump), W climb, S drop through platforms. Idle 10s and it goes back to autonomous mode.
  • Agent-state reactions — while the model streams, the pet sits down and types on its own tiny laptop; idle, it blinks, strolls, and naps. Each companion has its own ambient chatter.
  • Nurture system (ported from the PetClaw engine): mood / power / health attributes with decay and linkage, Lv.1–100 with titles, coins, inventory, and a shop with level-gated + daily-limited items.
  • Token-bound economy — your input tokens drain the pet's power, each completed reply converts output tokens into XP, daily-first-open grants login coins, leveling slows attribute decay.

Right-click the pet to open the care panel (status / interactions / inventory / shop / settings), docked right next to the character.

Install

dsh plugin --profile web add github:BlackBearCC/dsh-pet-sprite

Then restart DSH (dsh web) and open any conversation — the pet spawns at the bottom of the chat flow.

lib/ build output is committed, so git installs work without authorizing build scripts. To rebuild from source: pnpm install && pnpm build.

How it works

  • Registers into the DSH Web UI shell.overlay slot via the dsh.client browser-plugin manifest.
  • The node half mounts two exact HTTP routes (GET /plugins/dsh-pet-sprite/models, POST /plugins/dsh-pet-sprite/chat) that proxy ctx.llm — the same LLM runtime the coding agent uses, with your configured providers and keys.
  • Platforms are discovered from [data-chat-flow-key] message nodes; the arena is the conversation scroll viewport. Everything adapts live to scrolling and new messages.
  • Game state and chat history (attributes, level, coins, inventory, last 30 chat turns, model choice) persist in localStorage — no telemetry, zero external network calls.

Compatibility

  • DSH developer preview (tested against 0.1.0-rc.7). DSH is iterating fast with breaking changes; pin a commit (github:<you>/dsh-pet-sprite#<sha>) if stability matters.

License

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目