@qianhaoq/dsh-dota2ai
v0.2.158
Published
dota2.ai for DSH: standalone replay review page, DSH host-model agent, coach tools and skill
Maintainers
Readme
dota2.ai for DSH
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 (with a cross-match habits snapshot and local Practice Log on your player page), patch advisor, and the full replay review page (10-player scoreboard, percentile checkup benchmarks, clickable replay evidence cards, inline timestamp jump to the 10-hero minimap replay, copyable battle summary, coach chat rail, and pinned practice focus check-ins). - 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: nine
dota2ai_*tools and adota2aiskill sharing the same local$DSH_HOME/dota2aitrace/review cache, with chat cards that open the match or player 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-dota2aiCLI / 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/[email protected]
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 dialogThen 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, pinned practice focus cards and your practice log 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/[email protected]) 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 ninedota2ai_*tools and thedota2aiskill still activate. - Matches or the example game cannot load (
Could not reach the match service): the plugin needs outbound HTTPS access toapiBase(https://dota2.ai, with automatic OpenDota fallback for scoreboards). If your machine reaches the internet through a local HTTP/HTTPS proxy (Clash, v2ray, corporate proxy, etc.), setHTTPS_PROXY/HTTP_PROXY(for examplehttp://127.0.0.1:7890) or configureproxyunderdota2aiincordis.patch.yml(honorsNO_PROXY). Onlyhttp://andhttps://proxy URLs are supported directly (socks5://logs a warning and falls back to direct fetch).
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, highlights, checked findings, draft blueprint, chapters, and blind spots |
| dota2ai_recent_matches | A player's recent public games (account: Steam friend code or profile link) |
| dota2ai_match_scoreboard | Factual 10-player scoreboard, roles, final items, key item timings, and data gaps (hero optional) |
| dota2ai_replay_ask | A follow-up question answered locally by your DSH model using replay lookup tools |
| dota2ai_hero_matchup | Hero vs hero from pro games; by_rank from STRATZ (credit STRATZ when quoting it) |
| dota2ai_wiki_lookup | Offline-first Dota 2 Wiki mechanics, transcribed formulas, hero/item edge cases, embedded interaction tables, and cross-hero/item interaction matrices (mode: "interact", lang: en / zh / ru / es; see also packages/cli/skills/dota2-wiki/SKILL.md) |
| dota2ai_mechanics_lookup | Offline-first compiled Dota 2 Mechanics KB (source: "kb" default: patch-verified rules, formulas, dispel/BKB/Break interactions, counters, macro benchmarks, neutral/summon units, with explicit Wiki/KB conflict propagation) or Dota 2 Wiki (source: "wiki") |
| dota2ai_player_history | Local-first structured cross-match replay metrics ($DSH_HOME/dota2ai/player-history.json, zero LLM prose, role-segmented core vs support, history:<matchId>:<metric> refs) |
| dota2ai_player_trends | Role-segmented cross-match habits & trajectory (by_role_group.core vs support, up / down / flat deltas) from already-cached replays |
| dota2ai_patch_advisor | Live patch & meta advisor powered by your DSH model grounded in Valve patch notes, STRATZ deltas, and offline Wiki/KB data |
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, zh, ru, or es) |
| apiBase | https://dota2.ai | dota2.ai origin for match data and parsed replay traces |
| proxy | "" | Optional HTTP/HTTPS proxy URL (e.g. http://127.0.0.1:7890); when empty, honors HTTPS_PROXY / HTTP_PROXY / NO_PROXY |
| 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 and in-panel local .dem import (file picker, Steam scan, or path input via dota2ai/importLocalDem) |
| replaysDir | "" | Optional custom Steam Dota 2 replays/ folder searched for local .dem files (in addition to standard OS Steam paths) |
| replayArchiveMaxGb | 2 | Maximum disk budget (GB) for the local LRU .dem replay archive under $DSH_HOME/dota2ai/replays/ |
| enableWebSearch | (unset / off) | Allow local reviews and follow-up chats to call DeepSeek Search (web_search) using DEEPSEEK_API_KEY (off by default; opt in with true or DOTA2AI_DSH_WEB_SEARCH=1 when unset; explicit false or AGENT_WEB_SEARCH=0 disables) |
| preArchive | false | Opt-in low-priority background pre-archival of recent (<10d) replays when extractorBin is configured |
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 当前模型,同时保留页面内模型切换器,支持同一局用不同模型对比复盘。 - 会话工具与卡片联动:9 个
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/[email protected]
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/[email protected]),或者换更新的插件版本。- 找不到
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。 - 搜索比赛或示例对局提示“暂时连不上比赛数据服务”:插件需要通过 HTTPS 访问
apiBase(默认https://dota2.ai,记分板不可达时会自动兜底尝试 OpenDota)。如果你在代理环境下使用(如 Clash / v2ray / 公司代理),请设置环境变量HTTPS_PROXY/HTTP_PROXY(如http://127.0.0.1:7890),或在cordis.patch.yml的dota2ai下配置proxy(支持NO_PROXY;仅原生支持http://和https://代理)。
同一个包适用于 Linux、macOS 和 Windows(无原生编译二进制)。配置项(cordis.patch.yml 下 dota2ai):enabled、lang(en/zh/ru/es)、apiBase、proxy、skillEnabled、homeDir、extractorBin、replaysDir、replayArchiveMaxGb、enableWebSearch(默认未设置/关闭,设为 true 或在未显式设为 false 时通过环境变量 DOTA2AI_DSH_WEB_SEARCH=1 才允许本机复盘与追问通过 DEEPSEEK_API_KEY 调用 DeepSeek Search web_search,受 AGENT_WEB_SEARCH=0 禁用)、preArchive(默认 false,配置 extractorBin 后可按需开启低优先级后台预归档)。
Русский
Нативный плагин DSH (DeepSeek Harness), который переносит полноценный интерфейс dota2.ai прямо в DSH и работает на ваших собственных моделях:
- Отдельная страница
dota2.aiв боковой панели DSH: главная страница, профиль игрока (недавние матчи, сводка привычек и локальный журнал тренировок), советник по патчу, командный разбор пати по 3 этапам и полная страница разбора реплея (таблица 10 игроков, раскрываемые карточки доказательств, 2D-повтор 10 героев на миникарте, потоковый чат с тренером и закреплённые карточки фокуса). - Работает на ваших моделях DSH (
ctx.llm): глубокий разбор реплея (runDeepReview+verifyReview), вопросы по реплею (runChat+verifyText) и советник по патчу выполняются локально через ваши ключи API — без очередей и суточных лимитов. - 9 сессионных инструментов
dota2ai_*и навыкdota2ai: используют общий локальный кэш$DSH_HOME/dota2ai(языки ответов:en,zh,ru,es), включая проверку фокус-карты, тренды игрока по ролям и советник по патчу; карточки в чате открывают нужный матч или профиль в один клик.
Установка в десктопном приложении (рекомендуется, без терминала):
- Установите десктопное приложение DeepSeek Harness (macOS / Windows) и добавьте свой DeepSeek API Key.
- Отправьте в чат одно сообщение:
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.- Нажмите dota2.ai в левой боковой панели. Параметры конфигурации (
dota2aiвcordis.patch.yml):enabled,lang(en/zh/ru/es),apiBase,proxy(необязательный HTTP/HTTPS-прокси; по умолчанию используютсяHTTPS_PROXY/HTTP_PROXY/NO_PROXY),skillEnabled,homeDir,extractorBin,replaysDir,replayArchiveMaxGb,enableWebSearch(по умолчанию не задано/выключено;trueилиDOTA2AI_DSH_WEB_SEARCH=1при незаданном параметре включает вызовы DeepSeek Searchweb_searchчерезDEEPSEEK_API_KEYв локальных разборах и чате, явноеfalseилиAGENT_WEB_SEARCH=0отключают),preArchive(по умолчаниюfalse, фоновое предварительное архивирование реплеев при заданномextractorBin).
