omdsh-dev/dsh-gomoku 预览 preview

omdsh-dev/dsh-gomoku

Plugin插件 Native原生 ⭐ 26 MIT Pets & Fun桌宠与娱乐

总是让 AI 帮你写代码、做表格?这次换它陪你下棋。@yejiming/dsh-gomoku 是 DeepSeek Harness 的五子棋插件:在 DSH 侧边栏摆上一盘 15×15 的棋盘,让 DeepSeek 或任何你配置好的模型执子对弈。

catalog descriptioncatalog 简介 / catalog description:在DSH中与AI下五子棋,也可以让AI对局,看哪个AI棋力更强

Project Overview项目介绍

This is a native Gomoku (five-in-a-row) game plugin built exclusively for DeepSeek Harness (DSH). It adds a playable 15x15 no-ban Gomoku board that can be opened as a popup in the DSH sidebar. It supports human vs AI and AI vs AI modes, and every move is decided by the LLM configured in your DSH instance via pure reasoning, so no dedicated Gomoku search algorithm is used. It can be installed via three different methods that require no local building, using pre-built artifacts committed directly to the repository.

Users can assign separate models and reasoning effort levels (Off, High, Max) for black and white players, and edit the system prompt for each side separately to adjust how the AI thinks about each possible move. You can keep the game running in the background while you use DSH for your regular coding work, and open the popup anytime to make a move. This makes it a great casual pastime for DSH users who want a quick break between work tasks, or anyone wanting to test the reasoning ability of different LLMs.

The plugin is released under the open source MIT license, and requires DSH version 0.1.0-rc.6 or newer to work correctly, since it relies on the webServer service introduced in that release. Each AI move has a fixed 3000-second timeout and a 32000 output token limit, and transient connection errors will be automatically retried within a set number of attempts before the move is marked as failed. The game state is stored in the browser, so closing the popup does not reset the game or interrupt ongoing AI processing.

这是专为 DeepSeek Harness(DSH)开发的原生五子棋插件,可在 DSH 侧边栏调出 15×15 的无禁手五子棋棋盘,支持人机对弈、双 AI 对弈两种模式,每一步落子都由用户配置的大语言模型直接推理判断,无需专门的对弈搜索算法,是直观测试大模型推理能力的休闲小游戏。

用户可分别为黑方、白方选择不同的模型和推理档位,还能自定义修改双方的系统提示词,调整 AI 落子前的思考逻辑。你可以一边用 DSH 处理开发工作,一边让对局在后台运行,随时打开弹窗落子,做到摸鱼和工作两不误。适合想要在工作间隙放松、测试不同大模型推理能力的 DSH 用户。

本插件遵循 MIT 许可开源,支持三种无需本地构建的安装方式,要求 DSH 版本不低于 0.1.0-rc.6,预构建产物已提交到仓库,可通过 npm、GitHub 源码或本地包安装。单次落子超时固定为 3000 秒,输出 token 上限为 32000,遇到瞬时连接故障会自动重试,不会直接导致对局失败。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 26 stars - an early-stage project星标 26,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile demo add @yejiming/dsh-gomoku

把 omdsh-dev/dsh-gomoku 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

English · 简体中文

五子棋(Gomoku)· 在 DSH 里和 AI 杀一盘

dsh-gomoku

总是让 AI 帮你写代码、做表格?这次换它陪你下棋。@yejiming/dsh-gomoku 是 DeepSeek Harness 的五子棋插件:在 DSH 侧边栏摆上一盘 15×15 的棋盘,让 DeepSeek 或任何你配置好的模型执子对弈。

这里没有搜索算法,也没有启发式剪枝——每一步落子都来自 LLM 纯粹的推理与判断,堪称对模型「思考能力」最直观的考验。最过瘾的当属双 AI 对战:让两个模型同台厮杀,谁的推理更缜密、更懂审时度势,一局见分晓。

想更进一步?黑、白两方的系统提示词可以分别编辑,约束 AI 落子前的思维链,亲眼看着棋力在你的「调教」下节节攀升——输赢先不论,围观棋路、偷师几手也不亏。

最贴心的是:棋盘弹窗想开就开、想关就关,对局和 AI 的思考在后台照常进行。一边用 DSH 处理正事,一边偷空落一子,摸鱼与工作两不误。

主要功能

  • 人机与双 AI 对弈:支持执黑、执白、双 AI 对弈三种模式,15×15 无禁手规则(双三、双四、长连均合法,连成五子及以上即胜)。对弈模式与新开局按钮位于棋盘下方。
  • 黑白 AI 分别设置:黑、白两方可分别选择模型与思考档位(Off / High / Max),互不影响;模型不支持所选档位时自动回落其默认档位。
  • 思考过程分侧展示:黑、白两方的思考记录分别列在棋盘左右两侧(与各自的 AI 设置同侧),默认折叠,点击某手可展开该步的完整推理文本。
  • 暂停与手动接管:棋盘下方【新开局】按钮右侧的【暂停】按钮可随时中断 AI 思考(两者均为「图标 + 文字」的胶囊按钮:⟳ 新开局、⏸ 暂停、▶ 继续,暂停中按钮转为琥珀色高亮);暂停期间你可为黑白双方轮流落子,没有步数限制,再次点击【继续】后 AI 恢复思考。
  • 固定超时与输出上限:单次落子的端到端超时固定为 3000000 毫秒(3000 秒)、输出 token 上限固定为 32000,随每次落子请求发送,不在界面中暴露。
  • 黑白提示词分开编辑:黑、白两方 AI 的系统提示词分别在棋盘左右两侧的面板中常驻展示、随时编辑,各自可一键恢复默认。默认提示词包含规则、术语(活二/活三/眠三/双活三/四三/防守要点等,附 JSON 示范)、强制思考流程(穷举威胁→分析候选→综合判断)与高水平 Few-shot 对弈示例(每条附返回案例)。
  • 弹窗关闭不中断对局:棋局保存在浏览器端 store 中,关闭棋盘弹窗既不会重置棋局,也不会中断正在进行的 AI 思考,可以一边使用 Harness 主功能一边对弈。
  • 瞬时失败自动重试:流式响应中断(连接断开、限流等瞬时传输故障)会在尝试预算内自动重试,不会直接让整步棋失败。

快速安装

支持三种安装方式,均无需本地构建(构建产物 lib/ 已提交进仓库,且不设 prepare/prepack 脚本)。DSH 的标准插件安装机制是「组合包 → profile」:插件包在 package.json 中声明 dsh.bundle 并附带 patch 文件(cordis.patch.yml),用户用 dsh plugin 把它安装进任意 profile。

方式一:npm 安装(推荐)

# 从 npm 安装(首次使用会初始化该 profile)
dsh plugin --profile demo add @yejiming/dsh-gomoku

方式二:GitHub 源码安装

# 从 GitHub 源码安装(仓库已提交构建产物 lib/,安装时无需构建)
dsh plugin --profile demo add github:omdsh-dev/dsh-gomoku

方式三:本地 checkout / tarball 安装

# 从本地 checkout 安装(在插件目录内执行)
dsh plugin --profile demo add .
# 从 tarball 安装(tarball 由 pnpm pack 生成,文件名形如 yejiming-dsh-gomoku-<版本>.tgz)
pnpm pack
dsh plugin --profile demo add ./yejiming-dsh-gomoku-0.0.3.tgz

以上方式都直接使用仓库内提交的预构建产物(lib/),安装时不需要执行构建脚本——从 git 安装也无需在 profile 的 pnpm-workspace.yaml 里配置 allowBuilds。当前版本适配 dsh 0.2.0-rc.2,需要 Web profile(如内置的 web profile)。插件使用新版 dsh.client 声明、dsh-client-ui-renderer 插槽服务,以及统一的 @deepseek-ai/cordis / @deepseek-ai/schemastery 接口;不再兼容旧的 0.1.x 客户端运行时。开发依赖固定为本次验证的宿主版本,升级 dsh 后应重新执行兼容性检查。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev DeepDeck 下一个 Next dsh-lark →