agent-browser
Agent web testing: attach to shared Chrome Beta over CDP. Never launch worker browsers or drive Helium.
- License 许可
- Apache-2.0
- 所属仓库
- EtanHey/golems
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agent-browser
- description
- Agent web testing: attach to shared Chrome Beta over CDP. Never launch worker browsers or drive Helium.
02 资源文件 1
- 参考文档evals/evals.json1.6 KB
03 SKILL.md 正文
Agent browser
Choose the first option that works:
- An API or CLI when it gives the data: DeepSource →
deepsource-issues; GitHub →gh. - Pages needing no sign-in: a headless browser (or T3's browser tools when the task is browser work), leaving no window on Etan's screen.
- The M1's agent browser when the sign-in exists there. Use the M1 T3 environment or a delegate;
see
/agent-routingfor cross-machine delegation. - M4 Chrome Beta only when the M4 signed-in session is needed.
On the chosen Mac, run agent-browser start --lease <unique-task-name> before
every CDP attach. If it fails, do not connect. The lease lasts 30 minutes;
renew the same name with start --lease <name> --ttl 1h for longer work.
Always pass the same name to release: the default name is the calling shell's PID, which
changes between commands. Never touch another task's lease. status prints live leases; reap drops expired
ones. The last release, or reaping all expired leases, stops the verified browser
with SIGTERM. There is no background reaper (Etan, 2026-11-01): you close it. When your
task ends, page.close() your tab and release your lease; if you are the last one, the browser
quits. If you find a stale browser, run agent-browser reap. Never leave it running for other
workers without their own live leases.
Use the same name through cleanup, even if attach or tab creation fails:
import { execFileSync } from 'node:child_process';
import { randomUUID } from 'node:crypto';
const lease = `task-${randomUUID()}`;
let leased = false, page;
try {
execFileSync('agent-browser', ['start', '--lease', lease]);
leased = true;
const browser = await chromium.connectOverCDP('http://127.0.0.1:9333');
page = await browser.contexts()[0].newPage();
// Test using your own tab.
} finally {
try {
if (page) await page.close();
} finally {
if (leased) execFileSync('agent-browser', ['release', lease]);
}
}
Open and close only your own tabs. Never call browser.close(), Playwright
launch or launchPersistentContext on this shared signed-in browser. Chrome
Beta starts with no window; newPage() opens your tab. Etan signs in by hand;
never automate sign-in or clone/export the cookies. Serialize computer-use
checks and use only Google Chrome Beta, never Helium.
The shared profile is ~/Library/Application Support/golems-agent-browser
(0700), with .leases.json (0600), outside repos. CDP lets local processes read
signed-in cookies: bind 127.0.0.1 only, never expose or forward 9333. The
launcher refuses foreign listeners/profiles and corrupt lease files. stop
refuses while live leases remain; release your own lease instead.
From any golems checkout, install once the reviewed source is in the installed hooks-live pin (Git resolves the shared repository location, including worktrees):
golems_git_dir="$(git rev-parse --path-format=absolute --git-common-dir)"
golems_repo="$(dirname "$golems_git_dir")"
ln -sfn "$golems_repo/.worktrees/hooks-live/scripts/agent-browser/agent-browser" "$HOME/.local/bin/agent-browser"
Do not change or repin hooks-live for this installation; its owner runs the normal reviewed-pin update. Until then, run the reviewed script by its full path.
04 同仓库更多 Skills
yash
Push dependency bugs upstream. Triggers: dependency bug, workaround, monkey-patch, fork/fix. NOT app bugs.
whats-new
Diff Claude/Codex/Cursor/Wispr/agy changelogs vs local setup. Triggers: whats new, changelog, version bump.
weave
Orchestrator convergence: mine JSONLs, cite findings, route actions. Triggers: weave, run weave.
unslop
Cut AI tells while keeping every receipt, number, path, and hedge intact. Triggers: unslop, cut the slop, wall of text, too verbose, rambly, make this readable. NOT for delivery cadence (see i-have-adhd), channel choice, or artifact length governance.
tmp-block
Guard denying durable writes to /tmp, /private/tmp, /var/folders, $TMPDIR; enforces <repo>/.worktrees/<name>. Triggers: tmp guard, TMP-BLOCK deny, WORKTREE-CONVENTION deny, bypass ledger. NOT for storage policy.
t3-visuals
Show/visualize/chart/diagram/compare/status board in T3 with compact interactive HTML. Not standalone dashboards.