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 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案