Zero20230619/desktop-hand ↗★ 1
desktop-hand
Desktop Hand — real desktop mouse/keyboard control plus policy-guarded file tools for DeepSeek Harness.
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Zero20230619/desktop-hand說明文件
閱讀完整 README ↗Configuration
The full annotated reference is docs/CONFIG.md. Summary:
- The JSON config is discovered in this order: plugin
Config.configPath(must exist) →/desktop-hand.config.json(recommended; seeded by the installer) →/desktop-hand.config.json→/desktop-hand/config.json→ built-in defaults (with a warning).DSH_HOMEdefaults to~/.dsh. - The file is deep-merged over defaults; arrays replace.
~,$VAR,${VAR},${env:VAR}and%VAR%are expanded in path fields. Invalid configuration fails plugin activation loudly rather than silently dropping protection. - A profile patch row can override a small set of deployment knobs (
enabled,configPath,provider,trashDir,auditDir,screenshotsDir,hotkey,emergencyStop); policy, limits and approval modes live in the JSON file. - The config is read once per activation; restart/reload after editing.
Key defaults you should know:
| Setting | Default | Why it matters |
|---|---|---|
policy.delete.mode | trash | Deletions are recoverable quarantine moves, not unlinks. The shipped config uses D:\DSH_Trash as the trash root. |
approval.fileMutations | ask | Every write/move/delete/restore needs a live approval prompt. |
approval.drag / approval.combo | ask | A drag and a key chord (e.g. Blender's shift+a) are high-risk primitives and each asks for approval by default. |
approval.text | grant | Typing relies on the input session grant, except when the foreground title matches limits.sensitiveZones.foregroundTitlePatterns — then it asks anyway. |
approval.directDelete | ask | Permanent deletes need an explicit per-call decision. |
emergency.hotkey | Pause | System-wide stop. F9 is deliberately avoided because Blender uses it for Adjust Last Operation. |
session.* | 10 min/200 input, 5 min/50 files; max 30 min/1000 | Grants are time- and action-budgeted. |
input.provider | auto | Windows → windows, Linux → linux, macOS → macos. Use fake for dry runs. |
"ask"is not unconditional success. If the DSH session approval policy isnever(or approval prompts are otherwise unavailable), every"ask"category fails closed — the call is rejected before the tool body runs and nothing is touched. For the Blender acceptance flow (shift+ais acombo), either switch the DSH approval policy toask(recommended) or set the relevant categories (combo,drag, andfileMutations/directDeletefor file work) to"grant"and rely on the time/action-bounded grant from/desktop-hand authorize.