Human-rate mouse and keyboard for agent-browser sessions, through agent-hands. Bezier mouse paths with Fitts-law timing, lognormal keystroke dwell and flight, wheel-burst scrolling. Works alongside agent-browser; it replaces nothing.
npm i -g agent-hands
agent-browser plugin add yassiEmp/agent-browser-plugin-handsTwo capabilities:
launch.mutateruns on every local launch and adds--disable-blink-features=AutomationControlledand--force-renderer-accessibility, the flagsagent-hands launchuses. Nonavigator.webdriver, and a page accessibility tree for the OS lane.command.runexposes agent-hands verbs:
agent-browser plugin run hands hands.snapshot --payload '{"port":9222}'
agent-browser plugin run hands hands.click --payload '{"port":9222,"ref":"@e5"}'
agent-browser plugin run hands hands.fill --payload '{"port":9222,"label":"Email","value":"[email protected]"}'
agent-browser plugin run hands hands.press --payload '{"port":9222,"key":"Enter"}'
agent-browser plugin run hands hands.scroll --payload '{"port":9222,"pixels":600}'
agent-browser plugin run hands hands.run --payload '{"port":9222,"args":["wait","--text","Signed in"]}'Name the browser the way agent-hands does: port (a CDP port), profile
(a user-data-dir), session (an agent-browser pool name), or browser
(edge, chrome, ...). With none, agent-hands resolves its own pin.
Targets: ref (from hands.snapshot), selector, text, label, or
xy: [x, y]. Options: speed (1 human, 1.6 brisk, 0.7 slow), force.
Each call returns agent-hands' --json payload as data. A refusal (covered
target, sign-in page while flagged, missing argument) comes back as
success: false with the message agent-hands printed.
Manual configuration, if you prefer agent-browser.json:
{
"plugins": [
{ "name": "hands", "command": "agent-browser-plugin-hands", "capabilities": ["launch.mutate", "command.run"] }
]
}Why a plugin and not a flag: agent-browser keeps input dispatch in core, and the gesture model here is a separate tool with its own evidence page. See agent-hands/docs/evidence.md.
MIT.