knpatil/laya-browser-agent
BroPilot Action-1: Neural Decision Engine for Browser Automation
BroPilot Action-1 (Laya 421M) is a specialized, fine-tuned neural agent based on ModernBERT-large (~421M parameters) calibrated with Multi-Task ChoiceHeads and Reinforcement Learning from Continuous Decisions (RLCD).
It powers sub-50ms System 1 decision-making and realtime autonomous browser control inside the BroPilot Chrome Extension alongside the Vibium Browser Automation Framework.
๐ Benchmark & Evaluation Scores
Evaluated on 70 real-world end-to-end browser cases spanning 244 multi-step autonomous decisions across e-commerce, flight booking, multi-field form fillups, login authentication, and SaaS portals.
1. Model vs. Cloud API Performance
2. Multi-Task Head Breakdown
3. Model Calibration Metrics
- Expected Calibration Error (ECE):
0.1065 - Maximum Calibration Error (MCE):
0.3033 - KL Divergence:
0.0001 - Total Variation:
0.0013
โก Vibium Browser Automation Integration
BroPilot pairs Action-1 with the Vibium BiDi Browser Automation Framework (github.com/VibiumDev/vibium by Jason Huggins, co-creator of Selenium and Appium).
Dual-Engine Resilient Topology
- Mode A (Action-1 Fast-Track + Vibium Driver): When local weights are loaded on port 8100, Action-1 makes sub-50ms decisions and Vibium handles in-page auto-waiting, centering, and BiDi execution.
- Mode B (Vibium Standalone Zero-Weight): When model download is skipped or deferred, Vibium drives automation instantly with zero model weights (~0 GB) using in-browser WebGPU or cloud planners.
Vibium Live Testbench Results
๐ Quick Start
1. Running Action-1 Daemon (Local Python)
# Clone model repository
git clone https://huggingface.co/knpatil/laya-browser-agent
cd laya-browser-agent
# Start BroPilot Action-1 MPS daemon on port 8100
python3 -m bropilot.daemon --model . --port 8100 --device mps2. Making Predictions via HTTP API
curl -X POST http://127.0.0.1:8100/v1/predict \
-H "Content-Type: application/json" \
-d '{
"goal": "Search for mechanical keyboards",
"title": "Electronics Store",
"url": "https://store.example.com",
"elements": [
{ "ref": 1, "role": "textbox", "name": "Search store" },
{ "ref": 2, "role": "button", "name": "Search" }
]
}'Response:
{
"action": {
"action": "type",
"ref": 1,
"text": "mechanical keyboards",
"pressEnter": true
},
"confidence": 0.94,
"isGoalSatisfied": false,
"decisionLatencyMs": 38.4
}๐ฆ Files in this Repository
๐ License & Citation
Licensed under Apache 2.0. Developed by BroPilot Team & knpatil.
