The fastest browser for AI agents to run browser automation, built for sharing your logged-in browser state with your AI agents, like Codex or Claude Code, without disturbing you. Zero cost, zero config.
JavaScript agent-skillsai-agentautomationbrowserbrowser-automationclaude-codecodexhermes-agentskillsskills-sh
docs(ego-browser): tell agents to hand off login and manual verification
Joway@MacMinia58de0abf307
diff --git a/package/ego-browser/skill-body/SKILL.md b/package/ego-browser/skill-body/SKILL.mdindex f30630e..f024b7d 100644--- a/package/ego-browser/skill-body/SKILL.md+++ b/package/ego-browser/skill-body/SKILL.md@@ -526,8 +526,11 @@ retry or route around the stop. Permission prompts, device choosers, andother browser-owned prompts require the user to handle them.When the user must act in the browser, call `await task.handOff()`, end the-round, and explain what they should do. After the user confirms, resume the-same space:+round, and explain what they should do. This includes a login you have no+credentials for, a CAPTCHA or other human verification, 2FA or a one-time code,+and any other manual step. Do not switch sites, try other accounts, guess+credentials, or work around it without telling the user; use only credentials+the user gave for this task. After the user confirms, resume the same space:```jsconst task = await takeOverTaskSpace(7);diff --git a/package/ego-browser/src/skill-package.test.mjs b/package/ego-browser/src/skill-package.test.mjsindex d5e91a4..5f48356 100644--- a/package/ego-browser/src/skill-package.test.mjs+++ b/package/ego-browser/src/skill-package.test.mjs@@ -50,6 +50,39 @@ test("the bundled usage guide is the unwrapped source guide between version andassert.ok(bundled.length <= 25_000);});+test("the guide hands login, verification and manual steps back to the user", async () => {+ const guide = await readFile(join(outDir, "ego-browser/SKILL.md"), "utf8");+ const section = /^## User control and completion$[\s\S]*?(?=^## )/m.exec(+ guide,+ )[0];+ const rule = section+ .split("\n\n")+ .find((paragraph) => paragraph.includes("task.handOff()"));+ for (const trigger of [+ /login/i,+ /CAPTCHA/,+ /human verification/i,+ /2FA/,+ /one-time code/i,+ /manual step/i,+ ]) {+ assert.match(rule, trigger);+ }+ assert.match(rule, /without telling the user/);+ // Credentials the user supplied for the task stay usable.+ assert.match(rule, /credentials/i);+ assert.match(rule, /the user gave/);+});++test("the clearing-state reference does not clear a sign-in wall away", async () => {+ const reference = await readFile(+ join(repoRoot, "skills/ego-browser/references/clearing-state.md"),+ "utf8",+ );+ assert.doesNotMatch(reference, /^Sign-in wall or /m);+ assert.match(reference, /sign-in wall[^\n]*task\.handOff\(\)/i);+});+test("each platform guide keeps only its own passages", async () => {const source = await readFile(guideSource, "utf8");const version = /^version: "([^"]+)"$/m.exec(source)[1];diff --git a/plugins/ego/skills/ego-browser/references/clearing-state.md b/plugins/ego/skills/ego-browser/references/clearing-state.mdindex 04fbeb8..b4794d2 100644--- a/plugins/ego/skills/ego-browser/references/clearing-state.md+++ b/plugins/ego/skills/ego-browser/references/clearing-state.md@@ -25,7 +25,7 @@ Do not read a rejection from one entry point as permission to use another. If `t## Recipes-Sign-in wall or a session you want anonymous — clear that one site, not the profile:+A session the user wants anonymous — clear that one site, not the profile. A sign-in wall alone is no reason to clear: call `task.handOff()` and let the user sign in.```jsawait page.cdp("Storage.clearDataForOrigin", {diff --git a/skills/ego-browser/references/clearing-state.md b/skills/ego-browser/references/clearing-state.mdindex 04fbeb8..b4794d2 100644--- a/skills/ego-browser/references/clearing-state.md+++ b/skills/ego-browser/references/clearing-state.md@@ -25,7 +25,7 @@ Do not read a rejection from one entry point as permission to use another. If `t## Recipes-Sign-in wall or a session you want anonymous — clear that one site, not the profile:+A session the user wants anonymous — clear that one site, not the profile. A sign-in wall alone is no reason to clear: call `task.handOff()` and let the user sign in.```jsawait page.cdp("Storage.clearDataForOrigin", {