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): scope completeTaskSpace to its own final heredoc

0x0a42f5ccbdb8a
diff --git a/skills/ego-browser/SKILL.md b/skills/ego-browser/SKILL.md
index 9dacc8e..ea75c2f 100644
--- a/skills/ego-browser/SKILL.md
+++ b/skills/ego-browser/SKILL.md
@@ -55,7 +55,7 @@ A task space is an **isolated browsing context** that ego-browser provides for A
A task often takes multiple heredoc rounds to complete. Because the Node.js runtime exits after each heredoc and retains no state, every heredoc you emit should start with an explicit call to `useOrCreateTaskSpace(name)` to reuse the same space — this lets you operate continuously and reuse tabs across rounds.
-**Only call `completeTaskSpace(name, { keep })` in the final heredoc round of the task** — do not call it in intermediate rounds. `keep` is required: pass `false` to close the space, or `true` to leave the page visible to the user:
+**`completeTaskSpace(name, { keep })` must occupy its own dedicated final heredoc, and run only after a prior heredoc's output has confirmed the task is genuinely done.** `keep` is required: pass `false` to close the space, or `true` to leave the page visible to the user:
```js
await completeTaskSpace(name, { keep: false }) // close the space