Open source CapCut alternative.
TypeScript
docs(app): document system-tools-first harness behavior
David Le8a385f26d1ff
diff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/local-app-finder-profiles.json b/apps/Donkey/Sources/DonkeyRuntime/Resources/local-app-finder-profiles.jsonindex 5815e5f8..a42da1f1 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/local-app-finder-profiles.json+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/local-app-finder-profiles.json@@ -92,10 +92,10 @@"appID": "com.apple.systempreferences","appName": "System Settings","bundleIdentifier": "com.apple.systempreferences",- "description": "System settings are denied for generic local-app automation.",+ "description": "Settings are changed with system tools (defaults, networksetup, osascript) through shell_exec, not by driving the System Settings UI, so the GUI itself is not a generic-automation target.","supportStatus": "denied","capabilities": [],- "denyReason": "System settings are denied for generic local-app automation.",+ "denyReason": "Settings are changed via system tools through shell_exec, not by automating the System Settings UI.","metadata": {}}],diff --git a/docs/guides/agent-harness.md b/docs/guides/agent-harness.mdindex 4d91113a..e3becfb9 100644--- a/docs/guides/agent-harness.md+++ b/docs/guides/agent-harness.md@@ -141,8 +141,38 @@ Waiting states are hard stops:Core tool families cover conversation, clarification, permission requests,memory, skills, app lookup, observation, UI element actions, text/keyboard-input, AppleScript/script generation and execution, verification, learning, and-lifecycle control.+input, shell commands, AppleScript/script generation and execution,+verification, learning, and lifecycle control.++## System Tools First++Donkey operates the Mac the way an expert terminal user would. The planner's+first choice is `shell_exec` — a single-line shell command — for anything a+power user solves without the GUI: finding files (`mdfind`, `find`, `ls -t`),+launching or quitting apps (`open`, `osascript`), reading state (`pmset -g`,+`system_profiler`, `defaults read`), and changing settings (`defaults write`,+`networksetup`). Driving an app's GUI is the fallback, used only when the task+truly needs it (canvas, Electron, or proprietary interfaces with no system-tool+equivalent). This preference lives in the planner doctrine and a built-in+`system-tools` skill; the understanding boundary leaves the target app empty for+system-tool tasks so they are not pinned to a GUI app.++Shell commands are not refused by a denylist. Each command is classified by its+argv tokens into a risk tier, and nothing changes state without consent:++- **read** (e.g. `mdfind`, `defaults read`, `pmset -g`) runs immediately.+- **reversibleWrite** (e.g. `defaults write`, `open`, `networksetup -set…`)+ stops at a consent gate offering allow-once or always-allow. An always-allow+ rule is keyed on the command signature (e.g. `defaults write`) and persists.+- **highRisk** (privileged, destructive, network-egress, or security/privacy+ settings — `sudo`, `rm`, `dd`, `curl | sh`, `com.apple.TCC`) asks every time+ and can never be remembered.++Consent is surfaced in the pointer/notch overlay with Allow Once / Always Allow,+reusing the `waitingForPermission` gate. The tier classifier matches typed argv+fields only — never natural-language intent. A capability probe records which+command-line tools are installed on the machine (and versions) so the planner+reaches only for what exists.## Computer Use