Skip to content

feat: add AgentsKit remote browser agent template - #102

Open
EmersonBraun wants to merge 1 commit into
browserbase:devfrom
EmersonBraun:codex/add-agentskit-browser-agent
Open

feat: add AgentsKit remote browser agent template#102
EmersonBraun wants to merge 1 commit into
browserbase:devfrom
EmersonBraun:codex/add-agentskit-browser-agent

Conversation

@EmersonBraun

@EmersonBraun EmersonBraun commented Aug 10, 2026

Copy link
Copy Markdown

Adds a focused TypeScript template that connects AgentsKit to a recorded Browserbase Playwright session through the six-method BrowserPage contract. It includes bounded execution, guaranteed browser cleanup, a provider-portable OpenRouter configuration that defaults to the free router, strict typechecking, and credential-free tests for every mapped browser operation.


Note

Low Risk
Additive example template and docs only; no changes to shared production code paths.

Overview
Adds a new TypeScript template agentskit-browser-agent and lists it in the root templates table.

The template wires a recorded Browserbase session (Playwright over CDP) to AgentsKit’s six-method BrowserPage contract via createBrowserPage(), then runs a bounded agent (maxSteps: 8) with browserAgent() tools and an OpenRouter adapter (model/task over env vars). The remote browser is closed in a finally block; live runs need BROWSERBASE_API_KEY and OPENROUTER_API_KEY.

Credential-free npm test covers the Playwright→AgentsKit mapping; npm run typecheck uses strict TypeScript.

Reviewed by Cursor Bugbot for commit 5cb997f. Bugbot is set up for automated code reviews on this repo. Configure here.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​agentskit/​tools@​0.13.37810010096100
Addednpm/​@​agentskit/​runtime@​0.10.147810010096100
Addednpm/​@​agentskit/​adapters@​0.14.28010010096100

View full report

@EmersonBraun
EmersonBraun marked this pull request as ready for review August 10, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant