在 DSH 侧边栏提供独立的 Dota 2 赛后复盘页(10 人记分板、经事实核查的录像证据卡、10 英雄逐秒走位与眼位小地图回放、教练追问栏、下局训练目标追踪)及 7 个 dota2ai_* 教练工具与 dota2ai 技能,基于从 dota2.ai 获取并缓存在本地的录像轨迹调用你配置的 DSH 宿主模型完成深度复盘与查证追问。
安装
# npm 包(预构建)
dsh plugin --profile web add @qianhaoq/dsh-dota2ai
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:qianhaoq/dota2.ai#path:/packages/dsh
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
A native DSH (DeepSeek Harness) plugin that brings the full dota2.ai experience into DSH:
- Standalone
dota2.aipage in the DSH sidebar: home, recent games, patch advisor, and the full replay review page (10-player scoreboard, clickable replay evidence cards, 10-hero minimap moment replay, coach chat rail, and next-game habit tracking). - Powered by your DSH host models (
ctx.llm): deep replay investigations (runDeepReview+verifyReview), follow-up chat (runChat+verifyText) and the patch advisor all run locally using the models you configured in DSH — defaulting to your selected DSH model, with an in-page switcher to compare any model in your DSH profile on the same match. - Session tools, skill & clickable chat cards: seven
dota2ai_*tools and adota2aiskill sharing the same local$DSH_HOME/dota2aitrace/review cache, with chat cards that open the match page in one click.
Install
Desktop App (Recommended — no terminal needed)
- Download and install the DeepSeek Harness desktop app (macOS / Windows) from https://www.deepseek.com/harness/, open it, and enter your DeepSeek API Key.
- Paste this one sentence into a chat in DeepSeek Harness and press Enter:
Install the dota2.ai Dota 2 replay coach plugin @qianhaoq/dsh-dota2ai into my active desktop profile, then tell me how to open dota2.ai in the left sidebar.
- Reload if prompted, then click dota2.ai in the left sidebar.
Update
- Desktop App: paste into a chat in DeepSeek Harness and press Enter:
Update my @qianhaoq/dsh-dota2ai plugin to the latest version and reload if needed.
- CLI (
dsh web):
dsh plugin --profile web update @qianhaoq/dsh-dota2ai
CLI / Linux (dsh web)
Needs Node 24.9 or newer and DSH 0.2.x (≥ 0.2.1-rc.3): verified on 0.2.1-rc.3 and 0.2.2-rc.5, which is
npm's latest. DSH installs plugins with pnpm, so pnpm must be on your PATH.
npm install -g pnpm @deepseek-ai/dsh@0.2.2-rc.5
dsh plugin --profile web add @qianhaoq/dsh-dota2ai
DEEPSEEK_API_KEY=sk-... dsh web # or start plain `dsh web` and enter the key in DSH's own API-key dialog
Then open dota2.ai in the DSH sidebar, paste a match ID and pick your hero. The review runs on your own
DeepSeek key, so it has no queue and no daily limit. A deep review is a few hundred thousand input tokens.
To check the download, fetch SHA256SUMS from the same
release and run sha256sum -c SHA256SUMS.
One archive serves Linux, macOS and Windows: there is no native code. Parsed replay traces (~250 KB gzipped) are fetched from dota2.ai (or built locally when extractorBin is set) and cached under $DSH_HOME/dota2ai/traces/. Reviews, chats and your goal stay on your machine under $DSH_HOME/dota2ai. The public dota2.ai/r/<match> page does not show them.
Web site, DSH or an agent?
| dota2.ai web | DSH plugin | Agent over MCP | |
|---|---|---|---|
| Model that writes the review | dota2.ai's | yours (any model in your DSH) | dota2.ai's (replay_review) |
| Limits | per caller, and a daily limit for the whole site | none of ours | same as web |
| Where the review is kept | dota2.ai | your machine | dota2.ai |
Troubleshooting
installation rejected … incompatible with dsh: your DSH is outside the range above. Install a DSH from the range (npm install -g @deepseek-ai/dsh@0.2.2-rc.5) or a newer plugin release.pnpmnot found / plugin command failed:npm install -g pnpm, then rundsh plugin … addagain.- The panel says no model / the tool answers
model_not_configured: DSH has no model with a key yet. Startdsh webwithDEEPSEEK_API_KEYset, or enter the key in DSH's API-key dialog, and pick a model. - No dota2.ai entry in the sidebar, or no tools: the profile's
package.jsonmust list the package independenciesand indsh.profile.bundles, anddsh --profile web --dump-configshould list adota2aientry. In GUI profiles (dsh weband Desktop), DSH'stypert-loaderloads./typertandDota2AiRemoteattaches toctx.typert. In headless CLI profiles withouttypert, the sevendota2ai_*tools and thedota2aiskill still activate.
Tools
| Tool | What it does |
|---|---|
dota2ai_replay_review |
Deep replay review investigated locally by your DSH model and checked against the replay (verifyReview). Never blocks: parsing / reviewing mean call again after poll_after_sec; pick_hero means ask the user; ready has the verdict, checked findings, rules for next game, and blind spots |
dota2ai_recent_matches |
A player's recent public games (account: Steam friend code or profile link) |
dota2ai_coach_report |
Without hero: the roster. With it: section summary · why · lane · deaths · items · fights · plan · all |
dota2ai_coach_cases |
Pro games on the same problem: one that avoided it, one that repeated it |
dota2ai_coach_ask |
A follow-up question, answered locally by your DSH model (with replay lookup tools when a trace is cached, else from the report) |
dota2ai_goal_check |
Judge a later game against a finding's goal (or the active goal saved in $DSH_HOME/dota2ai/profile.json) |
dota2ai_hero_matchup |
Hero vs hero from pro games; by_rank from STRATZ (credit STRATZ when quoting it) |
Settings
In the profile's cordis.patch.yml, under the dota2ai entry:
| Field | Default | Meaning |
|---|---|---|
enabled |
true |
Enable the UI panel and register the tools |
lang |
en |
Default answer language when a tool call names none (en or zh) |
apiBase |
https://dota2.ai |
dota2.ai origin for match data and parsed replay traces |
skillEnabled |
true |
Register the dota2ai skill |
homeDir |
"" |
Custom local storage directory (defaults to $DSH_HOME/dota2ai or ~/.dsh/dota2ai) |
extractorBin |
"" |
Optional local dota-extract binary path for offline replay parsing |
Develop
npx vitest run packages/dsh # host LLM bridge, trace pipeline, local service, UI panel & bundle
node packages/dsh/scripts/pack.mjs # dist/qianhaoq-dsh-dota2ai-<version>.tgz + SHA256SUMS
node packages/dsh/scripts/installed-smoke.mjs packages/dsh/dist/*.tgz \
--dsh <dir>/node_modules/@deepseek-ai/dsh/lib/bin.js [--browser]
# a real review on a real model through a real `dsh web` (spends the key's account; see the script's header)
DEEPSEEK_API_KEY=… node packages/dsh/scripts/live-review.mjs packages/dsh/dist/*.tgz \
--dsh <dir>/node_modules/@deepseek-ai/dsh/lib/bin.js [--lang zh] [--browser <screenshot dir>]
简体中文
原生 DSH(DeepSeek Harness)插件,在 DSH 内完整复刻 dota2.ai 页面并直接使用 DSH 宿主模型:
- 左侧栏独立
dota2.ai页面:包含首页选局、玩家近期比赛、版本顾问与完整复盘页(10 人记分板、可展开录像原始证据卡、10 英雄逐秒走位与眼位小地图回放、右侧流式追问栏、下局训练目标追踪)。 - 由你的 DSH 宿主模型驱动(
ctx.llm):录像深度调查复盘(runDeepReview+verifyReview事实核查)、录像查证追问(runChat+verifyText)与版本顾问均在本机调用你在 DSH 配置的模型——默认跟随 DSH 当前模型,同时保留页面内模型切换器,支持同一局用不同模型对比复盘。 - 会话工具与卡片联动:7 个
dota2ai_*工具与独立页面共享本地$DSH_HOME/dota2ai缓存,聊天内的工具卡片可一键跳转到对应复盘页。
桌面客户端傻瓜式安装(推荐,免命令行):
- 前往 https://www.deepseek.com/harness/ 下载并安装 DeepSeek Harness 桌面客户端(macOS / Windows),打开后填入你的 DeepSeek API Key。
- 直接把下面这句话粘贴到桌面客户端的聊天框发送:
帮我安装 dota2.ai 的 Dota 2 复盘插件 @qianhaoq/dsh-dota2ai 到当前桌面端 profile,装好后告诉我怎么在左侧栏打开 dota2.ai。
- 按提示刷新或重启后,点左侧栏 dota2.ai 即可使用。
更新插件:
- 桌面客户端:直接把下面这句话粘贴到聊天框发送:
帮我把 @qianhaoq/dsh-dota2ai 插件更新到最新版本,如需刷新或重启请提示我。
- 命令行(
dsh web):
dsh plugin --profile web update @qianhaoq/dsh-dota2ai
命令行安装(Linux / dsh web)(需要 Node ≥ 24.9,DSH 0.2.x (≥ 0.2.1-rc.3),npm 上的 latest 是 0.2.2-rc.5;DSH 用 pnpm 装插件):
npm install -g pnpm @deepseek-ai/dsh@0.2.2-rc.5
dsh plugin --profile web add @qianhaoq/dsh-dota2ai
DEEPSEEK_API_KEY=sk-... dsh web # 或者直接 dsh web,在 DSH 弹出的 API Key 窗口里填
然后在 DSH 左侧栏打开 dota2.ai,贴比赛 ID、选英雄即可。复盘用的是你自己的 DeepSeek Key:不排队、不限次(一次深度复盘大约几十万输入 token)。复盘、追问和训练目标都保存在你自己电脑的 $DSH_HOME/dota2ai 下,公开的 dota2.ai/r/<比赛> 页面看不到它们。
常见问题
installation rejected … incompatible with dsh:你的 DSH 版本不在上面的范围内。装范围内的版本(npm install -g @deepseek-ai/dsh@0.2.2-rc.5),或者换更新的插件版本。- 找不到
pnpm/ plugin command failed:先npm install -g pnpm,再重新执行dsh plugin … add。 - 页面提示没有模型 / 工具返回
model_not_configured:DSH 里还没有可用的模型。启动dsh web时带上DEEPSEEK_API_KEY,或者在 DSH 的 API Key 窗口里填写,然后选一个模型。 - 左侧栏没有 dota2.ai、会话里没有工具:profile 的
package.json需要同时在dependencies和dsh.profile.bundles里列出本插件,dsh --profile web --dump-config里应能看到dota2ai。
同一个包适用于 Linux、macOS 和 Windows(无原生编译二进制)。配置项(cordis.patch.yml 下 dota2ai):enabled、lang、apiBase、skillEnabled、homeDir、extractorBin。
链接
同类插件
PC2005-cloud/dsh-pet#dsh-pet★ 6798
DSH Web UI 桌面宠物,Windows / macOS / Linux 三端可用:浏览器浮层或透明置顶桌面窗口,106 个透明动画、带挤压与粒子的甩抛反弹物理、随会话事件实时联动的工作状态气泡、碎碎念与带持久记忆的对话、余额展示、表情包配图、多开同屏,并支持直接放入的自定义动画与宠物种类(pet pack)。
flizzywine/dsh-tavern#dsh-tavern★ 1790
基于 DeepSeek Harness 的 Agent 酒馆,兼容 SillyTavern 生态,人物卡导入即玩,支持多种模型和手机游玩。桌面端从「设置 → 酒馆启动器」安装酒馆。 基于 2NF/dsh-profile-bridge(MIT)改造的启动器:把酒馆下载到独立 DSH 配置并在重启时切换。与上游插件不能同装——两者都占用 /profile-bridge 通道。
Alterssss/dsh-bili-whale★ 1141
一条按自己作息过日子的 B 站插件:宿主里每 60 秒一次心跳,在设定的作息窗口里随机挑一个时刻叫醒专用会话(今天不想看是按概率跳过),再交给自带的 38 个子命令——信息流、字幕、弹幕、评论、ffmpeg 抽帧、两本日记。每天最多发 N 条评论/动态并 @ 主人(默认 3,按配额账本计数,撞到限流或验证码就停手)。同时轮询评论回复、私信和直播间弹幕;除主人以外的回复先入队,等主人在设置页批准。设置 → 养鱼 写 ~/.dsh/bili-whale.config.json;cookie 单独在 ~/.bili-ai/credentials.json,只写不回显。HTTP 路由只认回环地址并过 DSH 信任栅栏。抽帧需要 Node 18+ 与 ffmpeg。
Nagi-ovo/dsh-ads★ 737
2005 年中文站点风格的整活广告插件:侧栏广告/信息流/角落弹窗 + 假关闭叉,素材全虚构。
yyh-001/dsh-meme★ 607
聊天表情包:纯文本斗图、情绪主动发图、像 QQ/微信 一样发图、AI 自动学图、自定义表情包。
vlln/whale-girl★ 418
桌面宠物(QQ 宠物形态):右下角悬浮、可拖拽/投喂/玩耍。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。