How do I use computer use on a Mac in the background?
Use desk for background keys, then chain predictable actions in one call with desk <bundle> <tool> '<json>' && desk <bundle> <tool> '<json>' && desk-read <bundle> '<filter>'.
Test one action first, then verify the saved read and run desk-clean <bundle> --app-name <Name>; add --launched-by-run only when this run opened the app.
What is cua-driver and how do I check its permissions?
Run npx lean-computer-use doctor to check cua-driver permissions and get fixes.
Review the upstream source and verify the app with docs/cua-driver-install.md before granting permissions.
How do I reduce tokens when an AI agent controls Mac apps?
Use a fresh desk-runner, one chained desk call and one filtered desk-read to keep app work in a small context.
Choose one case-insensitive substring shared by the wanted lines; use two reads when two fields share none. Open each saved full read to inspect any other line.
Run npx lean-computer-use measure on your own transcripts to check the result.
How do I measure main-session and subagent tokens?
Run npx lean-computer-use measure --json.
The report separates both groups and deduplicates assistant message ids.
How do I install the optional retry hook for native app errors?
Run npx lean-computer-use install --with-hooks and review the settings change.
The retry hook blocks the third identical error attempt; the installer backs up the settings file and preserves unrelated registrations.
How do I keep my edited skill when uninstalling?
Run npx lean-computer-use uninstall --dry-run to review the plan.
Uninstall preserves an owned file whose hash differs from the installed copy and reports it for manual review.
Dated package measurements and checks you can inspect in the repository. Read the guarantees for workflow support, runner boundaries and failure behavior. The token median is a test fixture. Measure your own transcripts to check your tasks.
Cache the launched app name during desk resolution so desk-clean --launched-by-run can quit a run-opened app without a duplicate --app-name flag.
Include desk-reap in native Bash command detection for measure and optional hooks.
Speed up privacy hash checks and website verification so full test and proof runs finish within budget, and handle case-insensitive filesystems when checking AGENTS.md and agents.md in live website builds.
cleanup command: dry run by default, --apply ends only leased processes, children first, with SIGTERM, a 3 second wait, then SIGKILL for the same process. It prints one summary line.
spawn command and desk/desk-reap: start a helper detached and record a lease; desk leases the driver daemon it starts.
Cleanup hooks for SubagentStop (desk-runner), Stop and SessionEnd, registered by install --with-hooks and removed by uninstall; each exits 0 on every path.