メインコンテンツへスキップ
S

dsh-global-rules

semidia/dsh-global-rules

Edit your `~/.dsh/AGENTS.md` global rules from the Settings page: a text editor with save button, no command line needed.

インストール

dsh plugin --profile web add github:semidia/dsh-global-rules

README

dsh-global-rules — 个性化全局规则编辑器

在 DSH Web「设置」→「插件」→「插件配置」里新增「全局规则」编辑页,可在浏览器中编辑并保存 ~/.dsh/AGENTS.md(Codex 式全局规则),无需手动编辑文件。

原理

  • 官方 dsh-agent-instructions 插件会读取 $DSH_HOME/AGENTS.md 作为「用户全局指令」注入每个会话。
  • 本插件只是给这个文件加一个可视化编辑入口(文本区 + 保存按钮),文件本身仍是唯一数据源。
  • Host 半区通过 loopback RPC(/dsh-global-rules)读写该文件;Client 半区注册 settings.section

安装

# 方式一:从 GitHub 安装
dsh plugin --profile web add "github:Semidia/dsh-global-rules"

# 方式二:手动 junction + bundles
New-Item -ItemType Junction -Path "~/.dsh/profiles/web/node_modules/dsh-global-rules" -Target "<源码目录>" -Force
# 并在 cordis.patch.yml 追加:
# - insert:
#     - id: dsh-global-rules
#       name: 'dsh-global-rules'

然后重启 dsh web 生效。

文件

文件说明
lib/index.jsHost 半区:REST 端点读写 ~/.dsh/AGENTS.md
lib/client.jsClient 半区:设置页「全局规则」编辑界面
package.json包定义(含 dsh.client 声明)

状态

  • 2026-08-20:完成创建并部署,junction 链接 + cordis.patch.yml insert 验证通过。
  • 发布:https://github.com/Semidia/dsh-global-rules,SSH 推送成功。
  • 列表注册:awesome-deepseek-harness README.md Infrastructure & Development 区,PR #420 已提交上游。

関連プラグイン