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): show how to run later rounds from a script file
Zhuowei Wangfe52ec8a4faf
diff --git a/skills/ego-browser/SKILL.md b/skills/ego-browser/SKILL.mdindex d60b331..39d3da0 100644--- a/skills/ego-browser/SKILL.md+++ b/skills/ego-browser/SKILL.md@@ -72,6 +72,46 @@ same `.mjs` file directly:ego-browser nodejs < C:\Users\<name>\ego\task.mjs```+### Later rounds with a script file++A script file holds one round, not the whole task history. Earlier rounds have+already run, so do not edit the previous file to append the next steps: write a+new, complete file for every round and run it the same way.++Keep the files for one user goal in a directory of their own, named for that+goal plus the current date and time, such as+`C:/Users/<name>/ego/laptop-prices-20260922-1405/`. Never reuse a directory or+file from another conversation or goal, and only run a file you wrote in this+conversation; an older file with the same name runs its steps against its own+task space.++```js+// C:/Users/<name>/ego/laptop-prices-20260922-1405/round-01.mjs+const task = await taskSpace("compare laptop prices");+await task.page("p1").goto("https://example.com/laptops");+console.log({ taskSpaceId: task.spaceId });+console.log(await task.page("p1").snapshot());+```++```js+// C:/Users/<name>/ego/laptop-prices-20260922-1405/round-02.mjs+// Resume the space id printed by round 01.+const task = await taskSpace(7);+const page = task.page("p1");+await page.click("@12", { label: "open first result" });+console.log(await page.snapshot());+```++```powershell+ego-browser nodejs -e "await import('file:///C:/Users/<name>/ego/laptop-prices-20260922-1405/round-02.mjs')"+```++Create each file with your file-creation tool, which writes UTF-8. Do not write+it with PowerShell `Set-Content`, `Out-File`, or `>`: Windows PowerShell 5.1+writes ANSI or UTF-16 by default. A new file per round also keeps stale steps+from an earlier round, such as actions after `task.finish()`, out of the next+run.+### When the script fails to parse`SyntaxError: await is only valid in async functions and the top level bodies of