Skip to content

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.

docs(ego-browser): guide agents to clean up scratch tabs at task end

0x0621d12ff34a4
diff --git a/skills/ego-browser/SKILL.md b/skills/ego-browser/SKILL.md
index c0831b7..9dacc8e 100644
--- a/skills/ego-browser/SKILL.md
+++ b/skills/ego-browser/SKILL.md
@@ -64,6 +64,8 @@ await completeTaskSpace(name, { keep: true }) // keep the page for the user
`name` should reflect the task's intent (e.g. `'search github issues'`); don't use literal placeholders.
+Keep loose awareness of how many tabs are open — a quick `(await listTabs()).length` is enough; there's no need to spend a dedicated round just to check. When scratch tabs (search-result pages, cross-check pages, and other one-off pages) pile up, close them as you go rather than letting them all accumulate for the end. When finishing with `{ keep: true }` to leave pages for the user, clear out the remaining scratch tabs so only the pages worth showing stay open. Close a single tab with `await cdp('Target.closeTarget', { targetId })` (`targetId` comes from `listTabs()` or an `openOrReuseTab` return value).
+
### Control handoff