You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`src/session-store.ts`| Per-opencode-session CDP `Session` map. The agent calls `session.connect(...)` from a snippet; subsequent snippets find the same Session. |
14
14
|`src/skills.ts`| Runtime resolver for embedded skills (extract on first call in compiled mode; in-tree path in dev). |
15
-
|`skills/`|`BROWSER.md` (the agent's prompt for `browser_execute`) and `cloud-browser.md` (Way 3 — provision/stop a Browser Use cloud browser via raw HTTP from inside a snippet). Embedded into the binary by `script/embed-skills.ts`. The interaction-skills set inherited from the Python harness was archived 2026-05-09 — we'll reintroduce only what evals show is needed, one skill at a time. |
15
+
|`skills/`|`browser-execute-guide.md` (the agent's prompt for `browser_execute`) and `cloud-browser.md` (Way 3 — provision/stop a Browser Use cloud browser via raw HTTP from inside a snippet). Embedded into the binary by `script/embed-skills.ts`. The interaction-skills set inherited from the Python harness was archived 2026-05-09 — we'll reintroduce only what evals show is needed, one skill at a time. |
16
16
|`script/embed-skills.ts`| Build-time embed; emits `bcode-skills.gen.ts` consumed by the compiled binary. |
17
17
|`test/`|`bun test` smoke coverage for the workspace dynamic-import pattern. |
Copy file name to clipboardExpand all lines: packages/bcode-browser/skills/browser-execute-guide.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
# BROWSER.md — driving a real browser with `browser_execute`
1
+
# browser-execute-guide.md — driving a real browser with `browser_execute`
2
2
3
3
Use the `browser_execute` tool to run JavaScript against a connected browser via the Chrome DevTools Protocol. The snippet runs in-process; `session` is bound to a long-lived CDP `Session` that persists across calls within the same bcode session. You connect once, drive many.
4
4
5
5
**Locations:**
6
6
7
7
- Workspace (read/write your reusable scripts): `<projectRoot>/.bcode/agent-workspace/`. The bcode CLI runs from the project root, so `./.bcode/agent-workspace/foo.ts` works directly with the `read`/`write`/`edit` tools.
8
-
- Skills (read-only reference docs): `{{SKILLS_DIR}}/`. Currently `BROWSER.md` (this file) and `cloud-browser.md`.
8
+
- Skills (read-only reference docs): `{{SKILLS_DIR}}/`. Currently `browser-execute-guide.md` (this file) and `cloud-browser.md`.
Copy file name to clipboardExpand all lines: packages/bcode-browser/skills/cloud-browser.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# cloud-browser.md — Browser Use cloud browser via raw HTTP
2
2
3
-
When BROWSER.md sent you here, the user wants a Browser Use cloud browser (Way 3): a clean isolated Chrome on BU's infrastructure, optionally with a geo-located proxy or a synced profile, with a `liveUrl` the user can open to watch you work.
3
+
When browser-execute-guide.md sent you here, the user wants a Browser Use cloud browser (Way 3): a clean isolated Chrome on BU's infrastructure, optionally with a geo-located proxy or a synced profile, with a `liveUrl` the user can open to watch you work.
4
4
5
5
There is no `browser_open_cloud` tool. You write the HTTP calls yourself in a `browser_execute` snippet. This keeps the connection model symmetric (you also call `session.connect()` for local browsers in Way 1 and Way 2) and gives you full control over the BU API surface — provision, stop, swap profiles, change proxies, anything BU exposes.
If you'll do this often within one project, save it as `./.bcode/agent-workspace/cloud.ts` (see BROWSER.md "Reusing code") and import it from later snippets.
81
+
If you'll do this often within one project, save it as `./.bcode/agent-workspace/cloud.ts` (see browser-execute-guide.md "Reusing code") and import it from later snippets.
0 commit comments