Pular para o conteúdo principal
M

madoka (dsh-magica-rune)

meiyukichan/madoka/dsh-magica-rune

Your harness, your rules: tailor dsh to whatever the current job needs by switching any tool or skill on or off — globally, or for one workspace only — from a single Settings page. A disabled ability leaves both the model tool list and the system prompt, so the model stops seeing what it must not use: fewer tokens spent, no ghost calls. Every invocation is still refused at runtime as a second line of defence, and the change lands in the running conversation without a restart. Search by tool name or category, flip a whole category with one checkbox (built-in tools still ask for confirmation), and trust the abilities dsh itself depends on to stay protected. Workspace rules layer on top of the global ones, so the same harness can be locked down for one repo and wide open in another.

Instalar

dsh plugin --profile web add github:meiyukichan/madoka

Este plugin está no subdiretório dsh-magica-rune do repositório.

README

madoka

本仓库只收录一个插件:dsh-magica-rune —— DSH 的能力管理插件, 用来按全局 / 工作区启用与禁用任意工具和技能。

能力管理

安装

dsh plugin --profile web add @meiyukichan/dsh-magica-rune

装好后重启 dsh web,在 设置 → 能力管理 里就能看到开关面板。

它做什么

  • 被禁用的工具会从模型的工具清单和系统提示词里同时消失,调用时再兜底拒绝;
  • 被禁用的技能不再出现在技能目录里;
  • 支持两级作用域(全局 / 单个工作区)、搜索、按分类分组批量开关;
  • 内置保护项(如 run_code)不可禁用;
  • 改动即时生效,不需要重启。

细节见 插件说明,设计与审计见设计文档。

开发

cd dsh-magica-rune
pnpm install
pnpm build        # 产出 lib/index.js(host)与 lib/client.js(client)
pnpm test         # 单元测试
pnpm typecheck
pnpm e2e          # 端到端(Playwright,真开浏览器点页面)

许可

MIT

Plugins relacionados