deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Vulcan626/dsh-pet
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A community DeepSeek Pet plugin for DeepSeek Harness. It keeps a DeepSeek whale visible in the Web viewport, swims in place, follows the current session lifecycle, and opens a compact API statistics panel.


sessionStats, tokenUsage, and contextPressure projections./pet and /pet-game: toggle the global pet or reveal/hide the mini-game from the normal DSH command input.This repository is a source release of the Web client package @deepseek-ai/dsh-client-ui-pet. The package contributes a browser entry to the DSH Web composition; it is not a standalone dsh.bundle yet.
The current build and test path uses the matching DeepSeek Harness checkout because the package uses DSH workspace dependencies and TypeScript project references. In that checkout, place this directory at packages/client/ui-pet, keep the Web patch row below, and run the focused checks from the monorepo root:
- id: ui-pet
name: '@deepseek-ai/dsh-client-ui-pet'
rsync -a --exclude .git --exclude lib --exclude node_modules /path/to/dsh-pet/ packages/client/ui-pet/
pnpm install
pnpm exec vitest run packages/client/ui-pet/tests
pnpm exec tsc -p packages/client/ui-pet/tsconfig.json --noEmit
pnpm --filter @deepseek-ai/dsh-client-ui-pet bundle
Direct dsh plugin --profile <name> add github:Vulcan626/dsh-pet activation is intentionally deferred. The package does not declare dsh.bundle, and its current workspace:^ references are not self-contained for a Git install. The official DSH plugin publishing guide explains why a public Git package needs a self-contained prepare build or prebuilt artifacts before it can be installed this way.
The pet reads the selected session through the runtime standard hooks and keeps the visual overlay at root scope. Durable whole-log counts and provider billing buckets are preferred when their projections are installed; a projection-free fixture or deployment folds the visible conversation window as a display fallback without issuing an RPC or creating a second usage ledger.
Cache hit is cacheReadTokens / (uncachedInputTokens + cacheReadTokens + cacheWriteTokens). Context occupancy uses projectedTokens with pressureTokens as its fallback numerator. The plugin sends no model request and adds no model-visible content.
/pet toggles the browser-wide overlay. /pet-game toggles the floating Snake card and reveals the pet when opening it. The same mini-game is available from the statistics panel's Open mini-game button. Each game opens with a three-second countdown and starts automatically; Space pauses or resumes, while double Space restarts. The game starts at a 240ms move interval and applies a gentle exponential speed increase as the score grows. Food placement favors the central 8×8 area through score 10, then samples broadly while reducing concentration on the outer edge. Its colorful glass score blocks and glass card follow the pet and collide with the viewport edges instead of covering the workspace. The active board is local to the browser and pauses when the document is hidden; the personal best survives reloads, is written only at final settlement, is not synchronized between tabs, and does not enter the model context.
The source is organized as a host plugin plus a browser entry under src/client/. Focused React and pure-rule tests cover status derivation, statistics folding, usage calculations, sprite selection, dragging, viewport clamping, panel edge collision, command control, countdown, double-Space restart, personal-best storage, colorful food rendering, score-banded food placement, terminal settlement, and Snake movement. Generated lib/, node_modules/, temporary files, environment files, and macOS metadata are excluded from this repository.
The upstream contribution guide currently directs community contributions toward shared plugins, guides, blog posts, and answers while the official repository is not accepting external pull requests. Add the dsh-plugin topic when publishing related packages so other DSH users can discover them.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。