dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:tongji-1/dsh-doudizhu
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Your agent is thinking. Deal you in.
Play a hand of three-seat Dou Dizhu (斗地主) in a floating window while DeepSeek Harness is thinking — against two opponents that reason with DeepSeek.
dsh-doudizhu adds a 斗地主 action beside the active conversation title and opens a movable,
resizable, minimizable window through the supported shell.overlay slot. The
active agent keeps running underneath it, and so does the card game: a hand
carries on while the window is minimized or closed entirely.

A three-seat Dou Dizhu table running alongside an active Harness task, with model-driven opponents, work reminders, and live agent status.
Entertainment only. Game tokens are local numbers with no monetary value. There are no deposits, withdrawals, purchases, accounts, or multiplayer wagering.
llm service, using the credentials and provider you already
configured. No API key lives in the browser.The browser owns the rules. For each bot turn it enumerates every legal play, trims the list to something readable, and posts a redacted view of the table — the deciding seat's own cards, public card counts and token balances, recent table dialogue, the play to beat, and the numbered candidates — to a loopback route the host half registers.
The host renders the prompt, calls ctx.llm.stream(), and returns a single
candidate index. It never accepts a prompt from the browser, so the route cannot
be used as a general-purpose model proxy, and it is fenced to loopback origins.
The bundled profile runs the opponents on deepseek-v4-pro with
reasoningEffort: high. Its 512-token output budget leaves room for the small
structured answer while limiting wait time, and its timeout is 15 seconds.
A bot turn that fails for any reason falls back to the local policy, and the table stops calling the model after three consecutive failures until you toggle the setting or reset the table. Turn 对手由 DeepSeek 驱动 off in the window's settings to play entirely offline and spend no tokens at all.
The bundled configuration is shown below. Every field can still be overridden when the plugin is wired into another profile.
- id: dsh-doudizhu
name: dsh-doudizhu
config:
provider: deepseek-official
model: deepseek-v4-pro
reasoningEffort: high # off | high | max
maxTokens: 512
temperature: 0.7
timeoutMs: 15000
dsh plugin --profile web add github:tongji-1/dsh-doudizhu
pnpm 10+ blocks the package's prepare build on first install; add the exact
key pnpm prints to allowBuilds in $DSH_HOME/profiles/web/pnpm-workspace.yaml,
then re-run:
dsh plugin --profile web install
dsh --profile web
Pin a release with dsh plugin --profile web add github:tongji-1/dsh-doudizhu#v0.5.0.
For a local checkout:
git clone https://github.com/tongji-1/dsh-doudizhu.git
cd dsh-doudizhu
pnpm install
pnpm check
dsh plugin --profile web add "$PWD"
dsh --profile web
pnpm install
pnpm check
The package has three halves:
lib/index.js: the host plugin — one loopback route that turns a bot turn
into a model call. Requires webServer and llm.lib/client.js: a browser bundle registering conversation.session.header.actions and
shell.overlaylib/engine.js: the rules engine, independent of React and of the model,
exported as dsh-doudizhu/engineThe engine never reads an opponent's hidden cards, and neither does the prompt: a bot sees only its own hand, the public board, and how many cards everyone else is holding.
DeepSeek Harness is currently in developer preview and its contribution guide
says external pull requests are not accepted yet. The official ecosystem path is
an independent plugin repository tagged with the GitHub topic
dsh-plugin.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。