jackeyunjie/dsh-rule-lens ↗★ 1
dsh-rule-lens
规则透镜(RuleScope Lens)—— DeepSeek Harness 本地插件:AGENTS.md / rules 分层规则加载可视化、64KB 预算治理、写回防护与 FORBID 硬拦截、规则 Lint 与遵守率统计 | Rule visibility, budget governance & hard guards for DSH
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jackeyunjie/dsh-rule-lens说明文档
阅读完整 README ↗验证行已注入配置树
dsh --profile web --dump-config | grep -A3 rule-lens
之后正常启动 `dsh --profile web`(或 `dsh web`),打开面板 `http://127.0.0.1:3080/rule-lens`。
也可以用 overlay 方式临时挂载(`--patch` 时插件路径必须绝对路径):
```yaml
## 配置
权威存储双轨(详见 `lib/store.js` 头部注释):
- **全局开关** → `~/.dsh/settings.yaml` 的 `rule-lens` 节(面板或手改 YAML 均可):
```yaml
rule-lens:
writeGuard: true # 写回防护开关
budgetBytes: 65536 # 注入预算(字节)
whitelistDirs: ['.cursor'] # 白名单目录
- 工作区状态(L5 预热目录列表)→
~/.dsh/rule-lens.json。
两类配置重启自动读取。