Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Webwright

Playwright-powered browsing and extraction for Hermes and Grok Bot. Browse once, promote a durable extract script, rerun with effectively zero model tokens.

This is a native skill adaptation of Microsoft Webwright. Credit to Microsoft. We did not build their CLI. The pattern is the same: the browser process is disposable; the durable state is plan.md, scripts, screenshots, logs, and result.json.

Why

Naive page snapshots are large and often still miss the answer. IR tables hydrate in JavaScript. PDF viewers hide document text from the DOM. A small result.json is the context the model actually needs.

Directional Grok Bot benchmark, 2026-09-02, one environment, NVIDIA IR latest 10-Q:

Path Wall-clock Est. tokens into context LLM tokens at exec Answer complete?
Naive IR HTML 0.21s ~28k n/a No
Durable script 3.42s ~770 0 Yes
Script rerun 3.25s ~770 0 Yes

Hermes saw the same class of win on 2026-05-25 (PDF extraction and multi-source article harvest). Treat the ratios as evidence for this task class, not a universal multiplier. Authoring still costs tokens once. Repeats are local script execution.

Layout

.
├── README.md
├── webwright/          # Hermes skill
│   ├── SKILL.md
│   └── references/
├── grok/               # Grok Bot skill
│   └── SKILL.md
├── examples/
└── scripts/

Install

Hermes

mkdir -p ~/.hermes/skills
cp -R webwright ~/.hermes/skills/
python -m pip install -r requirements.txt
playwright install firefox

Start a new Hermes session so the loader sees it.

Grok Bot

Copy grok/SKILL.md into the Grok Bot skills library (name: Webwright). Extract scripts use a standalone headless Firefox. Do not attach Playwright to the Grok box Chrome. Signed-in or GUI sites stay on the box browser.

python -m pip install playwright
python -m playwright install firefox

Need pdfinfo / pdftotext (poppler) for filings and reports.

When to use it

Use it when the page is noisy, the task is multi-step, you need a PDF/report, or the path will repeat. Do not use it for a one-page lookup that a normal fetch already answers.

Safety

No credentials, cookies, or private run artifacts in this repository. Do not put secrets in scripts, logs, or plan.md. No purchases, posts, or account changes without an explicit human go immediately before.

Before publishing a fork:

python scripts/validate_skill.py

Attribution

Inspired by Microsoft Webwright:

Hermes-native skill: webwright/SKILL.md
Grok Bot skill: grok/SKILL.md

MIT licensed.

About

Hermes-native Webwright skill: Playwright-powered browsing, extraction, screenshots, logs, and reusable web automation workflows.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages