rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
A DeepSeek Harness bundle that adds the Workspace Write + MCP permission preset (workspace-write-mcp) and auto-approves MCP approval requests while that preset is current.
The harness asks for approval on every tool call unless a permission preset says otherwise. This bundle adds one preset with the workspace-write sandbox and the usual approvals for non-MCP tools, plus a plugin that claims mcp__* approval requests as allowed-once. It changes no tool, no sandbox, and no hard deny: it only answers approval requests.
| Item | Value |
|---|---|
| Sandbox | workspace-write |
| Approval policy | ask |
| Non-MCP tools | unchanged, including sandbox-escalation prompts |
| MCP tools | approval requests claimed as allowed-once |
| Preset key | workspace-write-mcp |
| Display label | Workspace Write + MCP |
The preset keeps the workspace-write file and shell boundary. A tool that the policy hard-denies before asking is still denied; this bundle only answers approval requests, it does not override a deny.
A local policy can ask for a tool through ctx.approval.request. A profile plugin can claim that request on the approval/request waterfall and return allowed-once, so the user never sees an approval card. This avoids changing the policy plugin and avoids competing in the tools/execute hook, where a later policy listener could still block the call.
The hook is scoped by the session's current permission preset. If the preset is not workspace-write-mcp, the plugin calls next() and the normal answerers decide. It also returns cancelled when the request signal is already aborted, and it falls back to the normal answerers when the permission service or projection is unavailable.
The plugin provides mcpAutoPermission.autoApproves(session, toolName). A notification plugin can read it to skip a false "approval required" alert for a call that this plugin claims. The approval is still logged and the tool still runs.
A short system-prompt note is active only in this mode. It tells the model that mcp__* calls are pre-approved, which prevents generic browser-approval wording from making the model pause.
cordis.patch.yml declares the permission preset table and inserts the mcp-auto-permission plugin at the profile root.lib/index.js contains the approval hook, the auto-approval service, and the system-prompt note.test/index.test.mjs covers claiming, fallbacks, cancellation, the auto-approval predicate, and the note.DSH_HOME=${DSH_HOME:-$HOME/.dsh}
git clone https://github.com/ThomasTZh/dsh-mcp-auto-permission \
"$DSH_HOME/local-plugins/dsh-mcp-auto-permission"
Add to $DSH_HOME/profiles/web/package.json:
"@local/dsh-mcp-auto-permission": "link:<absolute path to $DSH_HOME>/local-plugins/dsh-mcp-auto-permission"
and list @local/dsh-mcp-auto-permission in dsh.profile.bundles. Install the profile dependencies and restart DSH:
cd "$DSH_HOME/profiles/web" && pnpm install
The bundle patch is applied before the profile patch. If the user later selects a new-session default, the settings service writes a complete permission entry into the profile patch, which then overrides the bundle's copy with the same preset definitions. That is ordinary DSH settings persistence.
| Check | Command | Result |
|---|---|---|
| Unit tests | node --test test/index.test.mjs |
pass, 6 tests |
| Module parses | node --check lib/index.js |
pass |
| Install layout | clone into a temporary DSH_HOME, then check the package and its patch arrive |
pass; pnpm install and a harness restart were not run |
Not tested: the live approval path from this repository alone. The machine this bundle was written on runs the preset and confirmed it, but no separate live check was repeated for this release.
never upstream, so they do not inherit this mode.The harness and its approval and permission services are the work of the DeepSeek Harness project [1].
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek。