dsh-global-rules
Manifest validdsh-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.js | Host 半区:REST 端点读写 ~/.dsh/AGENTS.md |
lib/client.js | Client 半区:设置页「全局规则」编辑界面 |
package.json | 包定义(含 dsh.client 声明) |
状态
- 2026-08-20:完成创建并部署,junction 链接 + cordis.patch.yml insert 验证通过。
- 发布:
https://github.com/Semidia/dsh-global-rules,SSH 推送成功。 - 列表注册:
awesome-deepseek-harnessREADME.md Infrastructure & Development 区,PR #420 已提交上游。
Comments
Loading…
From the same category
by ranxianglei
基本稳定可用 100K tokens is enough. Universal context-compression proxy for ALL AI coding agents,10w上下文足矣
★ 6.6k
↓ 900.1k/wk
MIT
TypeScript
Nov 10, 2026
dsh plugin --profile web add billion-contextA DeepSeek coding agent harness: persistent shell, Ultra subagents, auto approval, Chrome MCP and session telemetry
★ 998
MIT
JavaScript
by Han-1413141
DeepSeek Harness session cost meter plugin: session/daily cost, budget, history, OpenCode Go quota, official & custom-provider balance, Codex-like token heatmap, peak/off-peak pricing with pre-switch
★ 707
↓ 26k/wk
MIT
JavaScript
Nov 16, 2026
dsh plugin --profile web add dsh-cost-meterby Yuuyuko-uu
DSH 鱼的记忆:给会话一份会淡忘的长期记忆,每条都带时间
★ 524
MIT
JavaScript
Nov 16, 2026
dsh plugin --profile web add dsh-fish-memoryby MichengAI
DSH Archive Manager — 在 DeepSeek Harness 中安全查看、恢复和管理已归档会话 · Safely view, restore, and manage archived sessions in DSH
★ 368
↓ 38.4k/wk
Apache-2.0
JavaScript
Nov 14, 2026
dsh plugin --profile web add @michengai/dsh-archive-managerby Nwflower
Import 14+ external agent chat histories (Claude Code, Codex, ChatGPT, Cursor, Gemini, Reasonix, opencode, ZCode, Grok Build, OpenClaw, Pi, Hermes, Kimi CLI, DSH) into DeepSeek Harness as resumable se
★ 318
↓ 4.7k/wk
MIT
JavaScript
Nov 15, 2026
dsh plugin --profile web add dsh-chat-import