Repository navigation
feat(examples): browser tool example with internal hostnames - #2674
Merged
ben-reitz merged 11 commits intoOct 27, 2026
Merged
Conversation
Contributor
|
✅ agents import sizes: no significant changes ( |
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 22, 2026 15:40
c90d854 to
b444fb8
Compare
|
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 22, 2026 23:08
b444fb8 to
f2ee8fc
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
3 times, most recently
from
October 23, 2026 10:52
512eb4c to
017c05f
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 23, 2026 12:29
017c05f to
7cd77a8
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
3 times, most recently
from
October 23, 2026 13:26
24bfe6f to
cb0bd29
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 23, 2026 13:34
cb0bd29 to
83ba20d
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 23, 2026 13:59
83ba20d to
daef8af
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
2 times, most recently
from
October 26, 2026 10:32
10f54d6 to
5491de8
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 26, 2026 10:39
5491de8 to
0cc2767
Compare
ben-reitz
marked this pull request as ready for review
October 26, 2026 13:58
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 26, 2026 14:21
096a503 to
588f814
Compare
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 26, 2026 16:44
c033058 to
113fd5c
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
2 times, most recently
from
October 26, 2026 17:04
0e6437d to
7057906
Compare
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
4 times, most recently
from
October 27, 2026 10:31
c901fd3 to
586ef9e
Compare
A pi agent with a container workspace and a persistent Browser Run browser that opens its dev server (preview.internal), a workspace folder (files.internal), and a docs Worker entrypoint (docs.internal).
…e's How it works dialog
Derive the panel's state during render and chain its fetch, as #2715 did for the other examples, and take the pi example's use-pi-session again.
…Live View on refresh Chrome sends no Sec-Fetch-* headers to an http host, so spot a page load by its Accept header. Refresh drops the pinned Live View URL, since an old one can't connect again.
pi-durable 1.2 renamed a tool result's content to output, so with the example on pi ~1.4 every workspace tool came back empty, as #2594 fixed for the pi example.
ben-reitz
force-pushed
the
browser-internal-hosts/example
branch
from
October 27, 2026 10:39
586ef9e to
9e81eec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
👉🏼 Deployed version of the demo here 👈🏼
New example at
examples/next/tools/browser: a Pi-harness agent with a Computer workspace in a Container and a persistent browser with three internal hosts.Uses Workers AI
@cf/zai-org/glm-5.3-flash(image input, so screenshots reach the model).