Skip to content

omdsh-dev/dsh-auto-chess

30Last commit Aug 13, 2026

dsh-auto-chess DSH plugin

This plugin adds an auto-chess board to the DSH session tab, driven by configurable AI models. You can play as the blue side against the AI, or watch two AIs compete with each other. The game state persists across tab switches but resets on browser refresh.

How to install the dsh-auto-chess DSH plugin

dsh plugin --profile web add /Users/yejiming/Desktop/OpenSource/dsh-auto-chess

This source command needs manual review. Copying does not run it.

dsh-auto-chess DSH plugin data source

dsh-auto-chess DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-auto-chess DSH plugin can do

  • Human-vs-AI and AI-vs-AI game modes
  • Separate model selection for each side (blue and red)
  • Adjustable reasoning effort per side: Off, High, Max
  • Editable system prompts per side, with one-click reset to default
  • Reasoning trace display for each AI decision, with collapsible details
  • Automatic retry on illegal moves (up to 3 attempts) with manual retry button on final failure
  • Game state preserved across session tab switches, no interruption to AI thinking

Where the dsh-auto-chess DSH plugin fits

  • Entertainment within the DSH interface—play auto-chess against an AI
  • Observing and comparing AI reasoning strategies in a structured game environment
  • Testing different LLM models' decision-making abilities under varied reasoning effort settings
  • Demonstrating chain-of-thought reasoning in a constrained, turn-based scenario

Who the dsh-auto-chess DSH plugin is for

  • DSH users who enjoy auto-chess and want to play within the tool
  • AI researchers and developers interested in evaluating model reasoning in a game context

dsh-auto-chess DSH plugin limitations

  • Only available in the DSH Web interface; not in terminal or other channels
  • Game state is lost on page refresh or browser close (stored in memory only)
  • Requires at least one configured AI model per side (models must be set up in DSH beforehand)
  • Single AI decision timeout is fixed at 300 seconds (configurable only by the admin via deployment config, not in UI)
  • AI requests are independent auxiliary calls, not logged to the conversation history

dsh-auto-chess DSH plugin: from the repository README

Quoted from the omdsh-dev/dsh-auto-chess README, the upstream source of the dsh-auto-chess DSH plugin. Copyright remains with the original authors.

在 DSH 的会话标签栏里,藏着一张自走棋棋桌:你可以亲自执蓝方,跟 AI 来一场人机对弈;也可以退到观众席,看两个 AI 各自挑好模型,在棋盘上互相对攻。这里的每一步都不是白想的:每个回合的决策,都是一次真实的模型请求。把思考档位拉到 High 或 Max,再点开思考记录,就能围观 AI 盘算「买谁、卖谁、凑什么羁绊、金币花在升级还是刷新」,把算盘一步步打给你看。胜负落在棋盘上,思路留在记录里。 棋局状态保存在浏览器端的模块级 store 中,切标签页、切会话都不会重置对局或打断正在进行的 AI 思考。 ## 主要功能 - **人机与双 AI 对局**:支持人机对战(你执蓝方)、双 AI 对战(旁观)两种模式。 - **模型可分别选择**:蓝方、红方各自从模型目录(项目自带适配器 + 用户已配置的 provider/model)中选择 AI;每侧独立设置,蓝方的 AI 设置与思考记录在界面左侧,红方的在右侧。 - **思考档位可调**:Off / High / Max 三档,蓝方、红方分别设置,控制各侧 AI 决策前的思考强度;模型不支持所选档位时自动回落其默认档位。 - **超时与 token 上限固定**:单次 AI 决策的最长等待时间(默认 300000ms)与输出 token 上限(默认 32000)由部署配置决定,界面不再提供修改入口,客户端随每次请求发送固定值。 - **提示词可分别编辑**:默认系统提示词包含完整规则、严格返回格式与一个正确案例;蓝方、红方可在各自设置区分别编辑本侧提示词,也可一键恢复默认。 - **思考过程展示**:每次 AI 决策后可在界面左右两侧的「思考记录」面板中查看该次决策的完整推理文本(蓝方在左、红方在右);每条记录默认缩略,点击展开详情。 - **失败可重试**:AI 连续多次给出非法操作时会提示原因并显示「重试」按钮;瞬时流式传输故障在尝试预算内自动重试,不会直接让整局失败。 - **切换页面不中断对局**:棋局与战斗动画由页面内的模块级 store 驱动,切换会话、关闭会话标签都不中断 AI 思考与战斗进程;但状态只存在于页面内存中,刷新或关闭浏览器页面会重置对局。 ## 游戏规则(最小可行自走棋) - **棋盘**:双方各有一个 4×7 布阵区域,坐标 `[row, col]`(row 0-3,col 0-6),战斗时镜像拼接为 4×14 战场。 - **棋子池**:公共卡池 24 个棋子,分 1/2/3 费,各有生命、攻击力、攻速、攻击距离、种族、职业与技能。 - **费用与星级**:3 个同名同星棋子自动合成高星(1★→2★→3★;2★≈1.8× 属性,3★≈3.24×)。合成后的棋子保留最后被消耗那颗的 id,方便 AI 连续操作。 - **羁绊**:11 个种族/职业,按上场数量达到阈值触

Read the full READMERepository license: MIT

dsh-auto-chess DSH plugin questions

How do I install the auto-chess plugin?

Clone the repository, build it with `pnpm run build`, then run `dsh plugin --profile web add /path/to/dsh-auto-chess` from the plugin directory. After installation, restart the DSH web process to see the new 'Auto Chess' tab. For removal, use `dsh plugin --profile web remove @deepseek-ai/dsh-auto-chess`.

I cannot see the 'Auto Chess' tab after installation. What should I do?

Make sure you have restarted the DSH web process (run `dsh web` again). The plugin injects a client tab only when the web server is restarted after installation. Also verify the plugin is listed in the profile by running `dsh --profile web --dump-config` and checking for the auto-chess layer.

Can I play against a friend?

No, the plugin only supports human-vs-AI or AI-vs-AI modes. There is no multiplayer or two-human mode. The human player always controls the blue side, and the AI controls the red side in human-vs-AI mode.

The AI keeps making illegal moves. What happens?

The plugin validates the AI's actions and will reject illegal batches up to 3 times, each time providing corrective feedback. If all attempts fail, a 'Retry' button appears on the interface so you can manually trigger another attempt. The game does not break automatically.

Will my game progress be saved if I close the browser?

No, the game state is stored only in the browser's memory (module-level store). If you refresh the page or close the browser tab, the game is reset. However, switching between DSH session tabs does not interrupt the game or the AI's thinking process.