deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek-dealt 21 点 (Blackjack) for the DeepSeek Harness. The DeepSeek model plays dealer — it deals, decides, and trash-talks as one of two selectable personas — while every round is event-sourced into the session log, so hands replay and fork identically. One package ships both the host game service and the browser sidebar UI (a dual-face bundle), installed in a single dsh plugin add.
English · 中文
Install status
- ✅ Complete GitHub install (verified against
dsh web): one package = host service + browser UI. The plugin declares bothdsh.bundle(the host plugin row) anddsh.client(the web frontend entry); once installed the host layer mounts and the client module system picks the UI up into the frontend boot graph automatically.- All dependencies are the *published `@deepseek-ai/
npm packages** (0.1.0-rc.6`) — no sibling monorepo checkout, no unpublished internal packages.
Host side
blackjack/persona events):blackjack/game-start|hit|stand|dealer-hit|settle|banter|emotion|persona are durable session events; the fold replays identically.Browser UI
blackjack Remote namespace; the UI holds no game state of its own.The screenshots below come from verified dsh web sessions. The exact cards, dealer lines, and record counters vary with the session log, but they show the complete browser half: the sidebar entry, the table, the chatter feed, and the action bar.




The plugin is a dsh dual-face bundle (dsh.bundle → cordis.patch.yml + dsh.client → lib/client.js):
dsh plugin --profile <name> add github:<owner>/dsh-blackjack
A git install fetches sources, so the first add needs the self-contained prepare build allowed once — copy the pnpm key into the profile's pnpm-workspace.yaml under allowBuilds (see the official publishing guide) and re-run add. Only allow sources you trust.
Verify and boot:
dsh --profile <name> --dump-config # shows the "# == dsh-blackjack" layer
dsh --profile <name> # web surface: dsh web / dsh --profile <name> web
After restarting dsh web, a 🃏 entry in the sidebar footer means the UI is live: the host layer shows in --dump-config, and the client module system automatically scans the dsh.client declaration and weaves the UI into the frontend boot graph (__DSH_BOOT__) — no extra configuration.
Configuration (override in your profile's cordis.patch.yml):
- id: blackjack
config:
dealerPersona: 雌小鬼 # initial persona; the durable pick is per-session
randomBanterChance: 0.3 # unsolicited taunt probability after a hit
Standard Blackjack over one deterministic 52-card deck (seed stored in the game-start event): Aces 11/1, face cards 10, hit/stand, dealer draws to ≥17. Busts lose immediately; equal totals push.
dsh-blackjack/
├── cordis.patch.yml # bundle patch: mounts the `blackjack` host row
├── src/
│ ├── game/ # pure rules engine (zero deps), bundled inline
│ ├── service/ # host plugin: @Remote verbs, fold, LLM dealer, banter
│ ├── client/ # browser half: React 21 table (BlackjackPanel et al.)
│ ├── css-modules.d.ts # CSS Modules type declarations
│ └── typert.remote-client.ts # `blackjack` Remote types + runtime contribution (self-mounted)
├── tests/ # host unit tests (92)
├── tests-client/ # browser-half tests (44, jsdom + __ModuleLoader__ stub)
├── tsdown.config.ts # host build: tsc (native decorators) → bundle → types
├── tsdown.client.config.ts # browser-half build: closure-factory client bundle
├── tsdown.client.ts # official client build preset (from the dsh base, CSS Modules inline)
├── web-platform.ts # platform module table (shell-shared module list)
└── package.json # dsh.bundle + dsh.client dual-face manifest + self-contained prepare build
Dev: pnpm install, pnpm run build, pnpm test (136 tests: 92 host + 44 UI). All @deepseek-ai/* deps are the published packages — no sibling monorepo checkout needed.
Tag this repository with the dsh-plugin topic so dsh users can find it.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。