A rope instead of a bit: the robot leads, and the horse goes where it is asked.


Hackamore
Reins for apps that never had any.
Drive any Mac app through its accessibility tree; ask for something that isn't there and it says no, with the fix, before touching the app.
A hackamore is a bridle with no bit: you steer without putting anything in the horse's mouth. Hackamore is part of the Ouro UI family.
$ hackamore do click '{"element":"button[Allow]"}' --why "…"Real output from hackamore's own test app, whose window has nothing in it to click. The test app.
Why
A window already knows what's in it.
Instead of a screenshot and a model guessing where the button is, hackamore reads macOS's accessibility tree and hands an agent the screen as data, with the actions that make sense on that screen right now, and no model in the loop.
The contract
The screen as state, its controls as actions.
It speaks Reins, the protocol Ouro UI's own apps use to let agents drive them, from the outside, for apps that were never built for it. Ouro Reins drives an app from the inside.
hackamore ls Calculator
hackamore do click '{"element":"button[7]"}'
hackamore batch '[{"action":"click","input":{"element":"button[7]"}},
{"action":"click","input":{"element":"button[Multiply]"}},
{"action":"click","input":{"element":"button[6]"}},
{"action":"click","input":{"element":"button[Equals]"},"until":{"@Edit field.value":"42"}}]'The screen is state
The front app and window, any alert on top, and a pruned tree of roles, labels, values and frames, addressed by role and label, so a recorded journey replays after the window moves.
Actions fit this screen
click's element is a list of what's there. Ask for something that isn't, and it's refused before anything moves, with the fix.
Refusals that teach
Each refusal names the thing, the problem and the fix: action-unavailable, input-invalid, person-active, app-protected and more.
Batch in one call
Many steps in one round trip, each of which may carry an until that is checked against the screen.
The rules it won't break
Hands off when a person is there.
Never a screen a person is using
Every action passes a gate: the Mac unlocked, and nobody's input for 90 seconds. A person's touch stops it.
Protected apps stay protected
Password prompts, Keychain Access, Passwords and the security panes of System Settings refuse automation.
Passwords stay in the Keychain
A secret is read from the Keychain on the Mac that types it, and typed only into a field asking for a password.
Permission prompts only when told
It answers a permission prompt only when the Mac's owner recorded that answer.
The README says what has run on a real Mac and what runs against fakes. More ways to look inside: X-ray.