dshbase

插件目录 / UI & Skins / dsh-gamemode

dsh-gamemode

已验证 · 实测可装 XCNXNXNX

✓ 持续维护 基于 3 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

2Stars
0Forks
0未关闭 issue
—语言
2026-08-20最近推送
跨平台平台

功能简介

dsh 插件:/gamemode 1 = 一键切换到内置创造模式(cordis)预设。dsh plugin: /gamemode 1 = switch to the built-in Creative Mode (cordis) agent preset.

✅
我们的评价
可用 — 实测通过,早期项目

dsh 插件:/gamemode 1 = 一键切换到内置创造模式(cordis)预设。dsh plugin: /gamemode 1 = switch to the built-in Creative Mode (cordis) agent preset. 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-gamemode

DSH 插件:/gamemode 1 = 一键切换到 DeepSeek Harness 内置“创造模式”(cordis)Agent 预设。
DSH plugin: /gamemode 1 = one-command switch to the built-in Creative Mode (cordis) agent preset.

gamemode showcase

English | 中文


English

A tiny DeepSeek Harness slash-command plugin that turns the Minecraft-meme command /gamemode 1 into a real switch to the built-in Creative Mode agent preset.

In DeepSeek Harness, Creative Mode is the built-in cordis preset (its preset.yml declares name: 创造模式). This plugin performs the exact same operation as the Web UI preset picker:

  1. ctx.agentPresets.recompose(agent.ctx, presetId) — re-links the live agent to the preset's standing mount.
  2. agent.session.append('agent-preset/selected', { agentPreset }) — records the durable selection so resume/fork rebuilds the same composition.

One-command install

dsh plugin --profile web add dsh-gamemode

Other install sources:

# straight from GitHub (prebuilt lib/ is committed, no build allowlist needed)
dsh plugin --profile web add github:XCNXNXNX/dsh-gamemode

# or the prebuilt release tarball
dsh plugin --profile web add https://github.com/XCNXNXNX/dsh-gamemode/releases/download/v0.0.3/dsh-gamemode-0.0.3.tgz

The package declares dsh.bundle; cordis.patch.yml inserts the plugin row automatically. If your profile has another name, replace web with it.

Usage

Command Effect
/gamemode 1 (or /gamemode creative) Switch to Creative Mode (cordis preset)
/gamemode 0 (or /gamemode survival) Switch to Standard Mode (standard preset)
/gamemode Show the current preset

Limitation (same as the official UI)

An agent preset can only be switched while the session is still blank — before any turn/start has been written. Once the conversation starts, the preset is locked, because the history was produced under the old composition. Use /gamemode 1 on a new session before sending your first message.

Build

With a DeepSeek Harness checkout:

bash scripts/build.sh

Install/inject the produced package with the DSH plugin tooling, e.g. dev_inject_plugin.

License

BSD-3-Clause


中文

一个极简的 DeepSeek Harness 斜杠命令插件:把 Minecraft 梗命令 /gamemode 1 变成真正切换内置 “创造模式” Agent 预设的命令。

DeepSeek Harness 里的“创造模式”就是内置 cordis 预设(其 preset.yml 声明 name: 创造模式)。本插件执行与 Web UI 预设选择器完全相同的官方路径:

  1. ctx.agentPresets.recompose(agent.ctx, presetId) — 把当前 live agent 重新挂到目标预设的 standing mount;
  2. agent.session.append('agent-preset/selected', { agentPreset }) — 落盘持久选择,resume/fork 时能重建同一组合。

一句话安装

dsh plugin --profile web add dsh-gamemode

其他安装来源:

# 直接从 GitHub 安装(已提交预构建 lib/,无需 pnpm 构建授权)
dsh plugin --profile web add github:XCNXNXNX/dsh-gamemode

# 或使用预构建的 Release tarball
dsh plugin --profile web add https://github.com/XCNXNXNX/dsh-gamemode/releases/download/v0.0.3/dsh-gamemode-0.0.3.tgz

包已声明 dsh.bundle,cordis.patch.yml 会自动插入插件行。如果你的 profile 名不是 web,把命令里的 web 换成自己的 profile 名。

用法

命令 作用
/gamemode 1(或 /gamemode creative) 切换到创造模式(cordis 预设)
/gamemode 0(或 /gamemode survival) 切换到标准模式(standard 预设)
/gamemode 查看当前会话预设

限制(与官方界面一致)

Agent 预设只能在会话尚未开始(日志中还没有 turn/start)时切换。对话一旦开始,预设即锁定——因为历史是在旧组合下产生的。请在新会话发送第一条消息前使用 /gamemode 1。

构建

在有 DeepSeek Harness checkout 的环境:

bash scripts/build.sh

用 DSH 插件工具链安装/注入生成的包,例如 dev_inject_plugin。


Good

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-gamemode」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:XCNXNXNX/dsh-gamemode

Headless(CLI)profile:

dsh plugin --profile headless add github:XCNXNXNX/dsh-gamemode

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →