Skip to content
Back to skills

Browser Agent

ASecurity

Autonomous stealth browser automation agent powered by Playwright with ref-based accessibility targeting, persistent daemon architecture, and human-motor kinematics (Bézier curves, natural typing rhythms). Replaces heavy DOM-streaming tools with token-efficient ref snapshots and full anti-bot protection.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentsjavascriptgojavabash

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add shanmukhaditya/agent-skills --skill browser-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Browser Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Browser Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shanmukhaditya-browser-agent/badge)](https://www.skillsdirectory.com/skills/shanmukhaditya-browser-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: browser-agent
description: Autonomous stealth browser automation agent powered by Playwright with ref-based accessibility targeting, persistent daemon architecture, and human-motor kinematics (Bézier curves, natural typing rhythms). Replaces heavy DOM-streaming tools with token-efficient ref snapshots and full anti-bot protection.
---

# Stealth Browser Agent (`agent-browser`)

`browser-agent` is an autonomous browser driver built for AI agents. It combines high token efficiency with full anti-bot stealth protection (bypassing Cloudflare, DataDome, Akamai) using a persistent background daemon.

---

## ⚡ Core Architecture

1. **Persistent Daemon**: Maintains a long-lived browser session via a Unix domain socket (`/tmp/agent_browser.sock`) to eliminate cold-start startup overhead.
2. **Token-Efficient Ref Snapshots**: After each navigation or interaction, an accessibility snapshot is generated and saved to `/tmp/browser_snapshot.yaml`. Interactive elements are assigned concise ref IDs (`e1`, `e2`, `e3`...).
3. **Human Motor Kinematics**:
   - **Mouse**: Moves along cubic Bézier curves with natural acceleration, deceleration, and micro-overshoots.
   - **Keyboard**: Types with randomized keystroke cadences (50ms–160ms) and word pauses.
   - **Scroll**: Inertial wheel scrolling with reading pauses.
4. **Native Chrome Execution**: Auto-detects and binds to `/Applications/Google Chrome.app` to provide genuine audio/video codecs, TLS JA3/JA4 fingerprints, and WebGL ANGLE hardware contexts.

---

## 🛠️ CLI Commands Overview

All commands are executed via the `agent-browser` binary located at:
`~/.gemini/config/skills/browser-agent/bin/agent-browser`

```bash
# 1. Open a URL (starts daemon automatically)
agent-browser open "https://example.com"
agent-browser open "https://example.com" --headless

# 2. Inspect current interactive elements
agent-browser snapshot

# 3. Click an element using its ref ID
agent-browser click e3

# 4. Fill or type into form fields
agent-browser fill e1 "username@domain.com"
agent-browser type e2 "securePassword123"

# 5. Press special keys
agent-browser press Enter
agent-browser press Tab

# 6. Smooth human scrolling
agent-browser scroll --down 500
agent-browser scroll --up 300

# 7. Capture visual proof
agent-browser screenshot --output "/tmp/screenshot.png"

# 8. Run custom JavaScript evaluation
agent-browser eval "document.title"

# 9. Clean shutdown
agent-browser close
```

---

## 📋 Recommended Agent Workflow

When given a browser browsing, research, or form submission task:

1. **Navigate to the target**:
   ```bash
   agent-browser open "https://target-website.com"
   ```
2. **Inspect the Snapshot**:
   Read `/tmp/browser_snapshot.yaml` (or view the returned JSON) to find the ref IDs for the elements you need.
3. **Interact with Ref IDs**:
   Execute `agent-browser click <ref>`, `agent-browser fill <ref> <text>`, or `agent-browser press Enter`.
4. **Extract Information**:
   Use `agent-browser eval` for direct DOM data or re-run `agent-browser snapshot` after page transitions.
5. **Close when Finished**:
   Run `agent-browser close` to free memory and shut down the daemon.

Files in this skill

  • SKILL.md3.1 KB
  • bin/agent-browser7.8 KB
  • scripts/agent_loop.py3.4 KB
  • scripts/browser_daemon.py17.2 KB
  • scripts/form_filler.py13.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.