feat: add AgentsKit remote browser agent template - #102
Open
EmersonBraun wants to merge 1 commit into
Open
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
EmersonBraun
marked this pull request as ready for review
August 10, 2026 19:18
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.
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-agentand lists it in the root templates table.The template wires a recorded Browserbase session (Playwright over CDP) to AgentsKit’s six-method
BrowserPagecontract viacreateBrowserPage(), then runs a bounded agent (maxSteps: 8) withbrowserAgent()tools and an OpenRouter adapter (model/task over env vars). The remote browser is closed in afinallyblock; live runs needBROWSERBASE_API_KEYandOPENROUTER_API_KEY.Credential-free
npm testcovers the Playwright→AgentsKit mapping;npm run typecheckuses strict TypeScript.Reviewed by Cursor Bugbot for commit 5cb997f. Bugbot is set up for automated code reviews on this repo. Configure here.