Authorization notice. macOS Harness is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA QA tester or support engineer who needs to confirm how a Mac app responds to a sequence of actions.
The problemChecking each step of a Mac app workflow by hand is slow and easy to skip.
The outcomeA short log of each action and the changed window text after it, so the tester can see what the app did.
What you need first
- A Mac running macOS, since the project is macOS only
- Python 3.12 and uv, to install macOS Harness
- Accessibility and Screen Recording permissions, which every call needs
- A coding agent CLI such as Claude Code or Codex to run the commands
Steps
- Install macOS Harness with uv using Python 3.12, then run
macos-harness install --agent codexor your agent's name. (inferred, check the README) - Run
macos-harness get_app_state --app "TextEdit"to record the starting window. - Run
macos-harness press_key --app "TextEdit" --key "super+s"to trigger the action under test. - Run
macos-harness get_app_state --app "TextEdit"again and compare it with the starting read. - Run
macos-harness telemetry disableif you do not want anonymous telemetry on this machine.
Prompt for your agent
Using the macos-harness repo at https://github.com/browser-use/macos-harness, read <app name> with `macos-harness get_app_state`, perform the action in <test steps>, and read the window again. Verify and report only the lines that changed between the two reads, and state whether the expected change appeared.
Caveat. The change report depends on the accessibility tree the app exposes, and Electron or plain web view apps give no URL to check.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for browser-use/macos-harness and "Check what an app window shows after each step"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer