Skip to content

feat(integrations): add Grok Build CLI harness - #3120

Open
antonvishal wants to merge 23 commits into
browserbase:mainfrom
antonvishal:grok-build
Open

antonvishal wants to merge 23 commits into
browserbase:mainfrom
antonvishal:grok-build

Conversation

@antonvishal

@antonvishal antonvishal commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Why

Let evals run through the native Grok Build CLI and share Stagehand browser evidence. Replaces #2876 after review requested that workflow changes move to the mirror PR.

What

Adds the Grok Build session adapter, eval harness, configuration example, and docs. Supports configurable auto approval and preserves tool results, usage, cost, and stop reasons.

How

Mounts the shared browser runtime through trusted MCP configuration in an isolated Grok home. No .github changes remain in the PR diff.


Summary by cubic

Adds a Grok Build CLI integration so evals can run through the native grok binary and share Stagehand browser evidence, replacing PR #2876.

New Features

  • Adds the grok-build eval harness, the @browserbasehq/stagehand-integrations-grok-build-sdk session adapter, config example, and docs.
  • Mounts the shared browser runtime through trusted MCP configuration in an isolated Grok home, with configurable --always-approve, tool results, usage, cost, and stop reasons.
  • Registers grok_build as a concrete executable harness with stagehand_facade, playwright_mcp, and chrome_devtools_mcp tool surfaces.

Written for commit b09c74b. Summary will update on new commits.

Review in cubic

antonvishal and others added 23 commits August 18, 2026 22:04
Resolve overview.mdx conflicts to include both Grok Build and fx
entries. Keep the screenshot base64 budget from browserbase#2791 alongside the
ACP facade launcher changes.

Also pass --max-screenshot-base64-bytes=60000 to the facade spawned by
the ACP launcher so ACP transports get the same frame-cap protection as
fx, mark BROWSERBASE_PROJECT_ID optional in the Grok Build README per
browserbase#2777, and update the affected ACP arg assertions.
# Conflicts:
#	packages/docs/docs.json
#	packages/docs/v4/integrations/overview.mdx
Bring PR browserbase#2876 onto Miguel's facade/eval stack: native `--rules` policy, turn budget, session-loss, keyed observations, and reported usage/cost from the grok CLI stream.

Co-authored-by: Cursor <cursoragent@cursor.com>
The short dependency-wait timeout can abort after fetch has already been sent. That late hit was counted in the next phase and failed TypeScript unit under CI load.

Co-authored-by: Cursor <cursoragent@cursor.com>
# Conflicts:
#	packages/evals/package.json
#	pnpm-lock.yaml
@changeset-bot

changeset-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b09c74b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR is from an external contributor and must be approved by a stagehand team member with write access before CI can run.
Approving the latest commit mirrors it into an internal PR owned by the approver.
If new commits are pushed later, the internal PR stays open but is marked stale until someone approves the latest external commit and refreshes it.

@github-actions github-actions Bot added external-contributor Tracks PRs mirrored from external contributor forks. external-contributor:awaiting-approval Waiting for a stagehand team member to approve the latest external commit. labels Oct 6, 2026
@antonvishal
antonvishal marked this pull request as ready for review October 6, 2026 18:48
@antonvishal
antonvishal requested a review from a team as a code owner October 6, 2026 18:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor:awaiting-approval Waiting for a stagehand team member to approve the latest external commit. external-contributor Tracks PRs mirrored from external contributor forks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant