AI Slop Code Risk Monitor

browserbase/stagehand

SlopCodeMonitor badge for browserbase/stagehand Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

The SDK to extract data and interact with any site on the web. Get started with Claude Code, Codex, Eve, Mastra, and more.

4.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for browserbase/stagehand, a TypeScript project with 25,885 GitHub stars. SynthScan examined 311,449 lines of code across 1479 source files, recording 1165 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 4.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.6
Adjusted Signal
4.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
25.9K
Stars
TypeScript
Language
311.4K
Lines of Code
1.5K
Files
1.2K
Pattern Hits
2026-10-31
Scan Date
0.03
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 12.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 857 finding(s).

Hallucinated Dependency & Supply Chain Risk 6.4/100 · LOW

Are imports declared and package/API names verified? 220 finding(s).

Agent Over-Engineering Ratio 14.3/100 · LOW

Are wrappers, guards, and repeated structures necessary? 899 finding(s).

PR Review Velocity Impact 21.2/100 · LOW

Which changes need focused human review? 1165 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 8HIGH 34MEDIUM 40LOW 1083

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1165 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers800 hits · 756 pts
SeverityFileLineSnippetContext
LOWscripts/release/python-version.ts11function locatePythonProjectVersion(contents: string): VersionLocation {CODE
LOWscripts/release/python-version.ts36export function updatePythonProjectVersion(contents: string, nextVersion: string): string {CODE
LOWscripts/release/preview-python-project.ts8export function parsePreviewPythonProject(contents: string): PreviewPythonProject {CODE
LOWscripts/release/preview-python-project.ts16export function updatePreviewPythonProjectVersion(contents: string, version: string): string {CODE
LOWscripts/release/scoped-release.ts53export async function assertPublishedCliDependencies(CODE
LOWscripts/release/consolidate-changelogs.ts95export async function cleanupGeneratedChangelogs(CODE
LOWscripts/release/consolidate-changelogs.ts108export function shouldPreservePackageChangelogs(value: string | undefined): boolean {CODE
LOWscripts/release/consolidate-changelogs.ts112async function checkPackageChangelogsAreTemporary(): Promise<void> {CODE
LOWpackages/sdk-python/tests/test_response.py25def test_response_exposes_immediate_metadata_with_defensive_header_copies() -> None:CODE
LOWpackages/sdk-python/tests/test_response.py42async def test_response_retrieves_headers_and_connection_metadata_lazily() -> None:CODE
LOWpackages/sdk-python/tests/test_response.py100async def test_response_decodes_body_text_and_json_through_independent_rpc_calls() -> None:CODE
LOWpackages/sdk-python/tests/test_response.py120async def test_response_surfaces_finished_failures_transport_errors_and_malformed_bodies() -> None:CODE
LOWpackages/sdk-python/tests/test_response.py147async def test_response_finished_returns_none_after_success() -> None:CODE
LOWpackages/sdk-python/tests/test_stagehand.py139def test_stagehand_constructor_is_private() -> None:CODE
LOWpackages/sdk-python/tests/test_stagehand.py144def test_stagehand_does_not_expose_context() -> None:CODE
LOWpackages/sdk-python/tests/test_stagehand.py161async def test_experimental_batch_validates_arguments_before_transport(CODE
LOWpackages/sdk-python/tests/test_stagehand.py185async def test_experimental_batch_uses_registered_rpc_method(CODE
LOWpackages/sdk-python/tests/test_stagehand.py211async def test_experimental_batch_normalizes_json_object_keys(CODE
LOWpackages/sdk-python/tests/test_stagehand.py229async def test_experimental_batch_distinguishes_omitted_input_from_null(CODE
LOWpackages/sdk-python/tests/test_stagehand.py253async def test_experimental_batch_accepts_maximum_timeout(CODE
LOWpackages/sdk-python/tests/test_stagehand.py273async def test_experimental_batch_includes_an_explicit_page(CODE
LOWpackages/sdk-python/tests/test_stagehand.py295async def test_experimental_batch_maps_an_omitted_value_to_none(CODE
LOWpackages/sdk-python/tests/test_stagehand.py309async def test_create_requires_a_factory_browser_before_validating_config() -> None:CODE
LOWpackages/sdk-python/tests/test_stagehand.py318async def test_create_builds_client_browserbase_wire_params(CODE
LOWpackages/sdk-python/tests/test_stagehand.py369async def test_create_sends_the_extension_its_own_cdp_url(CODE
LOWpackages/sdk-python/tests/test_stagehand.py390async def test_local_connect_keeps_headers_out_of_extension_initialization(CODE
LOWpackages/sdk-python/tests/test_stagehand.py448async def test_create_omits_unset_browser_region_from_the_wire(CODE
LOWpackages/sdk-python/tests/test_stagehand.py467async def test_local_browser_omits_metadata_and_forwards_caller_options(CODE
LOWpackages/sdk-python/tests/test_stagehand.py509async def test_create_rejects_model_connection_options_for_missing_or_callback_models(CODE
LOWpackages/sdk-python/tests/test_stagehand.py523async def test_create_claim_errors_for_closed_and_attached_handles(CODE
LOWpackages/sdk-python/tests/test_stagehand.py541async def test_failed_create_releases_claim_and_keeps_browser_open_for_retry(CODE
LOWpackages/sdk-python/tests/test_stagehand.py567async def test_context_close_is_an_alias_for_browser_close(CODE
LOWpackages/sdk-python/tests/test_stagehand.py587async def test_invalid_success_response_fails_closed_because_initialization_is_ambiguous(CODE
LOWpackages/sdk-python/tests/test_stagehand.py606async def test_ambiguous_initialization_uses_browser_invalidation_not_public_close(CODE
LOWpackages/sdk-python/tests/test_stagehand.py645async def test_cancelled_create_fails_closed_and_prevents_same_browser_retry(CODE
LOWpackages/sdk-python/tests/test_stagehand.py700async def test_create_deadline_fails_closed_without_a_flaky_five_millisecond_timer(CODE
LOWpackages/sdk-python/tests/test_stagehand.py754async def test_failed_create_for_missing_cdp_url_can_retry_same_handle(CODE
LOWpackages/sdk-python/tests/test_stagehand.py772async def test_close_is_memoized_and_never_closes_browser_or_transport(CODE
LOWpackages/sdk-python/tests/test_stagehand.py807async def test_close_works_with_eager_task_factory(CODE
LOWpackages/sdk-python/tests/test_stagehand.py830async def test_close_swallows_cdp_connection_closed_error(CODE
LOWpackages/sdk-python/tests/test_stagehand.py850async def test_close_failure_retains_browser_claim(CODE
LOWpackages/sdk-python/tests/test_stagehand.py868async def test_stagehand_prints_logs_and_calls_structured_callback(CODE
LOWpackages/sdk-python/tests/test_stagehand.py905async def test_callback_llm_handler_preserves_structured_and_image_content(CODE
LOWpackages/sdk-python/tests/test_stagehand.py954async def test_stagehand_routes_metrics_and_ai_methods(CODE
LOWpackages/sdk-python/tests/test_stagehand.py1071async def test_stagehand_observe_and_extract_serialize_active_page_locators(CODE
LOWpackages/sdk-python/tests/test_stagehand.py1140async def test_stagehand_act_observe_and_extract_reject_cross_page_locators(CODE
LOWpackages/sdk-python/tests/test_stagehand.py1165async def test_stagehand_extract_uses_default_schema(CODE
LOWpackages/sdk-python/tests/test_stagehand.py1210async def test_stagehand_ai_methods_require_an_active_page(CODE
LOWpackages/sdk-python/tests/test_stagehand.py1230def test_semantic_arguments_stay_positional(method: str, positional: list[str]) -> None:CODE
LOWpackages/sdk-python/tests/test_stagehand.py1255async def test_create_validates_api_url_before_claiming_browser(CODE
LOWpackages/sdk-python/tests/test_browser_context.py21async def test_browser_context_wraps_generated_page_references() -> None:CODE
LOWpackages/sdk-python/tests/test_browser_context.py48async def test_browser_context_new_page_validates_optional_url() -> None:CODE
LOWpackages/sdk-python/tests/test_browser_context.py61def test_browser_context_reuses_one_clipboard_wrapper() -> None:CODE
LOWpackages/sdk-python/tests/test_browser_context.py68async def test_browser_context_serializes_python_cookie_filters() -> None:CODE
LOW…kages/sdk-python/tests/test_page_event_notification.py12def test_page_event_notification_round_trip(event: str) -> None:CODE
LOWpackages/sdk-python/tests/test_browserbase_transport.py142async def test_shared_gateway_headers(upstream: _Upstream, fixture: dict[str, object]) -> None:CODE
LOWpackages/sdk-python/tests/test_browserbase_transport.py157async def test_shared_request_header_rules(CODE
LOWpackages/sdk-python/tests/test_browserbase_transport.py192async def test_custom_headers_and_reserved_precedence(CODE
LOWpackages/sdk-python/tests/test_browserbase_transport.py216async def test_http_failures_are_returned_without_retries(CODE
LOWpackages/sdk-python/tests/test_browserbase_transport.py237async def test_response_header_bytes_and_duplicates(upstream: _Upstream) -> None:CODE
740 more matches not shown…
Hallucination Indicators8 hits · 115 pts
SeverityFileLineSnippetContext
CRITICAL⚡packages/evals/core/tools/stagehand_code.ts358 return (await this.sdk.stagehand.browser.context.pages()).map((page) => this.wrap(page));CODE
CRITICAL⚡packages/evals/core/tools/stagehand_code.ts362 const page = await this.sdk.stagehand.browser.context.activePage();CODE
CRITICAL⚡packages/evals/core/tools/stagehand_code.ts364 const pages = await this.sdk.stagehand.browser.context.pages();CODE
CRITICAL⚡packages/evals/core/tools/stagehand_code.ts370 return this.wrap(await this.sdk.stagehand.browser.context.newPage(url));CODE
CRITICAL⚡packages/evals/core/tools/stagehand_code.ts374 const page = (await this.sdk.stagehand.browser.context.pages()).find(CODE
CRITICAL⚡packages/evals/core/tools/stagehand_code.ts378 await this.sdk.stagehand.browser.context.setActivePage(page);CODE
CRITICAL⚡packages/evals/core/tools/stagehand_code.ts382 const page = (await this.sdk.stagehand.browser.context.pages()).find(CODE
CRITICALpackages/extension/clients/rpcClient.ts80 const span = this.router.runtime.tracing.tracer.startSpan(CODE
Unused Imports145 hits · 113 pts
SeverityFileLineSnippetContext
LOWpackages/sdk-python/tests/test_response.py1CODE
LOWpackages/sdk-python/tests/test_stagehand.py1CODE
LOWpackages/sdk-python/tests/test_browser_context.py1CODE
LOWpackages/sdk-python/tests/test_browserbase_transport.py1CODE
LOWpackages/sdk-python/tests/_support.py1CODE
LOWpackages/sdk-python/tests/test_locator.py1CODE
LOW…ages/sdk-python/tests/test_browserbase_routing_live.py1CODE
LOWpackages/sdk-python/tests/_http_server.py1CODE
LOWpackages/sdk-python/tests/test_browser_clipboard.py1CODE
LOWpackages/sdk-python/tests/test_browserbase_services.py1CODE
LOWpackages/sdk-python/tests/test_browserbase_rpc.py1CODE
LOWpackages/sdk-python/tests/test_browser.py1CODE
LOWpackages/sdk-python/tests/test_client_models.py1CODE
LOW…kages/sdk-python/tests/test_browser_disconnect_live.py1CODE
LOW…ckages/sdk-python/tests/test_browserbase_connection.py1CODE
LOWpackages/sdk-python/tests/test_browserbase_session.py1CODE
LOWpackages/sdk-python/scripts/build.py1CODE
LOWpackages/sdk-python/scripts/generate.py1CODE
LOWpackages/sdk-python/scripts/smoke.py1CODE
LOW…ges/sdk-python/src/stagehand/browserbase_connection.py1CODE
LOW…kages/sdk-python/src/stagehand/browserbase_services.py1CODE
LOWpackages/sdk-python/src/stagehand/cdp_client.py1CODE
LOWpackages/sdk-python/src/stagehand/browserbase_rpc.py1CODE
LOWpackages/sdk-python/src/stagehand/__init__.py3CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py6CODE
LOWpackages/sdk-python/src/stagehand/__init__.py20CODE
LOWpackages/sdk-python/src/stagehand/__init__.py23CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
LOWpackages/sdk-python/src/stagehand/__init__.py24CODE
85 more matches not shown…
Cross-Language Confusion (JS/TS)17 hits · 98 pts
SeverityFileLineSnippetContext
HIGHpackages/evals/tui/commands/help.ts16 print([CODE
HIGHpackages/evals/tui/commands/help.ts46 print([CODE
HIGHpackages/evals/tui/commands/help.ts168 print([CODE
HIGHpackages/evals/tui/commands/help.ts186 print([CODE
HIGHpackages/evals/tui/commands/help.ts206 print([CODE
HIGHpackages/evals/tui/commands/help.ts267 print([CODE
HIGHpackages/evals/tui/commands/help.ts297 print([CODE
HIGHpackages/evals/tui/commands/help.ts319 print([CODE
HIGHpackages/evals/tui/commands/help.ts335 print([CODE
HIGHpackages/evals/tui/commands/help.ts350 print([CODE
HIGHpackages/evals/tui/commands/help.ts371 print([CODE
HIGHpackages/evals/tui/commands/help.ts402 print([CODE
HIGH⚡packages/evals/tui/commands/run.ts218 print(`\n ${bold("Running:")} ${cyan(buildRunTargetLabel(options))}`);CODE
HIGH⚡packages/evals/tui/commands/run.ts219 print(` ${bold("Plan:")} ${buildPlanLine(options, matrix)}`);CODE
HIGH⚡packages/evals/tui/commands/run.ts220 print(` ${buildRunContextLine(options, tasks, matrix)}`);CODE
HIGH⚡packages/evals/tui/commands/run.ts222 print(separator());CODE
HIGH⚡packages/evals/tui/commands/run.ts223 print("");CODE
Decorative Section Separators29 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMpackages/evals/tui/wizardAnim.ts46// ─── Color ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/wizardAnim.ts109// ─── Layout ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/wizardAnim.ts194// ─── Reveal cadences ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/wizardAnim.ts285// ─── Input ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/wizardAnim.ts417// ─── Decoded keys ───────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/fx.ts16// ─── Palette ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/fx.ts77// ─── Easing ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/fx.ts92// ─── Canvas ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/fx.ts180// ─── Frame loop ────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/fx.ts215// ─── Randomness ────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/progress.ts181 // ─── Events ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/progress.ts375 // ─── Board ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/progress.ts502 // ─── Rendering ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/repl.ts68 // ─── Onboarding chrome ───────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/arena.ts172// ─── Drawing helpers ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/arena.ts220// ─── Race ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/arena.ts326// ─── Podium ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/arena.ts417// ─── Flow ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/intro.ts40// ─── Content ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/intro.ts50// ─── Track (rows, at rest) and timeline (ms) ────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/intro.ts76// ─── Drawing ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/intro.ts177// ─── Player ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/dialogue.ts31// ─── Layout ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/dialogue.ts190// ─── Motion ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/dialogue.ts339// ─── Transcript ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/welcome/dialogue.ts416// ─── Flow ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/commands/verify.ts141 // ── Build a verifier without launching a browser ────────────────────────COMMENT
MEDIUMpackages/evals/tui/commands/verify.ts209 // ── Human summary ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/evals/tui/commands/verify.ts251 // ── Persist ────────────────────────────────────────────────────────────COMMENT
Empty Error Handlers11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHpackages/sdk-python/tests/_http_server.py41except (ConnectionError, asyncio.IncompleteReadError):CODE
HIGHpackages/sdk-python/src/stagehand/cdp_client.py865except Exception:CODE
HIGHpackages/sdk-python/src/stagehand/browser.py1110except TimeoutError:CODE
HIGHpackages/sdk-python/src/stagehand/browser.py522except CDPConnectionClosedError:CODE
HIGH…ckages/sdk-python/src/stagehand/browserbase_session.py303except Exception:CODE
HIGH…ckages/sdk-python/src/stagehand/browserbase_session.py314except Exception:CODE
HIGHpackages/sdk-python/src/stagehand/file_upload.py60except OSError:CODE
HIGHpackages/integrations/deepagents/runner/run_eval.py89except Exception: # noqa: BLE001CODE
HIGHpackages/integrations/deepagents/runner/run_eval.py735except Exception: # noqa: BLE001CODE
HIGH…integrations/deepagents/runner/tests/test_watchdogs.py190except GeneratorExit:CODE
HIGH…rations/deepagents/examples/managed/tools/stagehand.py231except Exception:CODE
Fake / Example Data44 hits · 44 pts
SeverityFileLineSnippetContext
LOWpackages/sdk-python/tests/test_stagehand.py386 "headers", [None, {}, {"Authorization": "Bearer dummy-secret", "X-Api-Key": "dummy-key"}]CODE
LOWpackages/sdk-python/tests/test_stagehand.py438 for sensitive in ("Authorization", "X-Api-Key", "dummy-secret", "dummy-key"):CODE
LOWpackages/sdk-python/tests/test_cdp_headers.py36 credentials = {"Authorization": "Bearer dummy", "X-Api-Key": "dummy-key"}CODE
LOWpackages/sdk-python/tests/test_cdp_headers.py61 for sensitive in ("Bearer dummy", "dummy-key", "Authorization", "X-Api-Key", destination):CODE
LOWpackages/extension/tests/observe.test.ts24 value: "user@example.com",CODE
LOWpackages/extension/tests/observe.test.ts60 expect(request?.systemPrompt).not.toContain("user@example.com");CODE
LOWpackages/extension/tests/observe.test.ts138 value: "user@example.com",CODE
LOWpackages/extension/tests/act.test.ts121 value: "user@example.com",CODE
LOWpackages/extension/tests/act.test.ts141 ["user@example.com"],CODE
LOWpackages/extension/tests/stagehand-clients.test.ts2483 value: "user@example.com",CODE
LOWpackages/extension/tests/stagehand-clients.test.ts2491 expect(page.locatorRefs[0]?.fillCalls).toStrictEqual(["user@example.com"]);CODE
LOWpackages/extension/tests/stagehand-clients.test.ts2555 inputValue: "user@example.com",CODE
LOWpackages/extension/tests/stagehand-clients.test.ts2570 await expect(runtime.locatorInputValue(descriptor)).resolves.toBe("user@example.com");CODE
LOWpackages/extension/tests/stagehand-clients.test.ts2702 value: "user@example.com",CODE
LOWpackages/extension/tests/stagehand-clients.test.ts2715 expect(page.locatorRefs[0]?.fillCalls).toStrictEqual(["user@example.com"]);CODE
LOWpackages/protocol/tests/protocol/wire-casing.test.ts294 value: "user@example.com",CODE
LOWpackages/protocol/tests/protocol/wire-casing.test.ts307 value: "user@example.com",CODE
LOWpackages/protocol/tests/protocol/wire-casing.test.ts327 value: "user@example.com",CODE
LOWpackages/protocol/tests/protocol/wire-casing.test.ts340 value: "user@example.com",CODE
LOW…/protocol/tests/protocol/object-model-protocol.test.ts243 value: "user@example.com",CODE
LOW…/protocol/tests/protocol/object-model-protocol.test.ts257 value: "user@example.com",CODE
LOW…/protocol/tests/protocol/object-model-protocol.test.ts292 variables: { accountEmail: "user@example.com" },CODE
LOW…/protocol/tests/protocol/object-model-protocol.test.ts300 variables: { accountEmail: "user@example.com" },CODE
LOW…/protocol/tests/protocol/object-model-protocol.test.ts457 expect(StagehandMethods.locatorInputValue.result.parse("user@example.com")).toBe(CODE
LOW…/protocol/tests/protocol/object-model-protocol.test.ts458 "user@example.com",CODE
LOWpackages/cli/tests/driver-commands.test.ts229 value: "user@example.com",CODE
LOWpackages/cli/tests/driver-commands.test.ts236 expect(locator.fill).toHaveBeenCalledWith("user@example.com");CODE
LOWpackages/integrations/core/tests/facade-tools.test.ts1154 const filled = world.locators.find((l) => l.selector.includes("placeholder"));CODE
LOWpackages/integrations/core/tests/facade-tools.test.ts1371 tools.run(`await page.frameLocator("#editor").locator("input").getAttribute("placeholder");`),CODE
LOWpackages/integrations/core/src/facade/runtime.ts1223 return this.byAttribute("placeholder", value, options.exact);CODE
LOWpackages/integrations/core/src/facade/runtime.ts1951 name: "placeholder",CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1498 variables: { accountEmail: "user@example.com" },CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1524 variables: { accountEmail: "user@example.com" },CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1599 value: "user@example.com",CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1624 value: "user@example.com",CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1896 await page.locator("#email").fill("user@example.com");CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1902 value: "user@example.com",CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1939 client.queueResponse(StagehandMethods.locatorInputValue, "user@example.com");CODE
LOWpackages/sdk-ts/tests/objectWrapper.test.ts1948 await expect(locator.inputValue()).resolves.toBe("user@example.com");CODE
LOWpackages/sdk-ts/tests/clientLocatorOptions.test.ts27 variables: { accountEmail: "user@example.com" },CODE
LOWpackages/sdk-ts/tests/clientLocatorOptions.test.ts35 variables: { accountEmail: "user@example.com" },CODE
LOW…ts/browser-runtime/stagehandLaunchConnectSmoke.test.ts186 await page.locator("#locator-input").fill("user@example.com");CODE
LOW…ts/browser-runtime/stagehandLaunchConnectSmoke.test.ts191 await expect(page.locator("#locator-input").inputValue()).resolves.toBe("user@example.com");CODE
LOW…/tests/browser-runtime/rpcClientExtensionSmoke.test.ts336 value: "user@example.com",CODE
Excessive Try-Catch Wrapping39 hits · 41 pts
SeverityFileLineSnippetContext
LOWpackages/sdk-python/src/stagehand/cdp_client.py551 except Exception as error:CODE
LOWpackages/sdk-python/src/stagehand/cdp_client.py556 except Exception as error:CODE
LOWpackages/sdk-python/src/stagehand/cdp_client.py748 except Exception:CODE
LOWpackages/sdk-python/src/stagehand/cdp_client.py865 except Exception:CODE
MEDIUMpackages/sdk-python/src/stagehand/cdp_client.py546def _read(self) -> None:CODE
LOWpackages/sdk-python/src/stagehand/browserbase_rpc.py90 except Exception:CODE
LOWpackages/sdk-python/src/stagehand/page.py465 except Exception as error:CODE
LOWpackages/sdk-python/src/stagehand/page.py499 except Exception as error:CODE
LOWpackages/sdk-python/src/stagehand/browser.py1058 except Exception:CODE
LOWpackages/sdk-python/src/stagehand/rpc_client.py394 except Exception as error:CODE
LOWpackages/sdk-python/src/stagehand/rpc_client.py505 except Exception as error:CODE
MEDIUMpackages/sdk-python/src/stagehand/rpc_client.py388def _read(self) -> None:CODE
LOWpackages/sdk-python/src/stagehand/stagehand.py545 except Exception as error:CODE
LOW…ckages/sdk-python/src/stagehand/browserbase_session.py186 except Exception as error:CODE
LOW…ckages/sdk-python/src/stagehand/browserbase_session.py195 except Exception as error:CODE
LOW…ckages/sdk-python/src/stagehand/browserbase_session.py223 except Exception as error:CODE
LOW…ckages/sdk-python/src/stagehand/browserbase_session.py275 except Exception:CODE
LOW…ckages/sdk-python/src/stagehand/browserbase_session.py303 except Exception:CODE
LOW…ckages/sdk-python/src/stagehand/browserbase_session.py314 except Exception:CODE
LOW…ges/integrations/core/python/tests/test_conformance.py282 except Exception as error:CODE
LOW…s/core/python/src/stagehand_middleware/facade/tools.py266 except Exception as error:CODE
LOW…s/core/python/src/stagehand_middleware/facade/tools.py272 except Exception as close_error:CODE
LOW…s/core/python/src/stagehand_middleware/facade/tools.py289 except Exception as error:CODE
LOW…s/core/python/src/stagehand_middleware/facade/tools.py424 except Exception:CODE
LOW…s/core/python/src/stagehand_middleware/facade/tools.py432 except Exception:CODE
LOWpackages/integrations/deepagents/runner/run_eval.py89 except Exception: # noqa: BLE001CODE
LOWpackages/integrations/deepagents/runner/run_eval.py723 except Exception as error: # noqa: BLE001CODE
LOWpackages/integrations/deepagents/runner/run_eval.py735 except Exception: # noqa: BLE001CODE
LOW…integrations/deepagents/runner/tests/test_watchdogs.py135 except Exception as error:CODE
LOW…integrations/deepagents/runner/tests/test_watchdogs.py194 except Exception as error:CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py41 except Exception as error:CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py205 except Exception:CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py231 except Exception:CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py240 except Exception:CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py278 except Exception as error:CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py288 except Exception as error:CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py303 except Exception as error:CODE
LOW…grations/deepagents/src/stagehand_deepagents/server.py55 except Exception as error:CODE
LOW…grations/deepagents/src/stagehand_deepagents/server.py149 except Exception as error:CODE
Cross-Language Confusion6 hits · 40 pts
SeverityFileLineSnippetContext
HIGHpackages/sdk-python/examples/file_upload.py24 return file ? { name: file.name, text: await file.text() } : null;CODE
HIGHpackages/sdk-python/src/stagehand/cdp_client.py35 marker: globalThis.__stagehand_runtime ?? null,CODE
HIGH⚡packages/integrations/core/python/tests/test_facade.py41 assert canonical_json(value) == '{"a":true,"b":[1,{"c":null,"d":"\u2014\\n\\u0001"}]}'CODE
HIGH⚡packages/integrations/core/python/tests/test_facade.py315 ({"a": [1, None]}, len('{"a":[1,null]}')),CODE
HIGH⚡packages/integrations/core/python/tests/test_browser.py128 await tools.run(code=f"await page.goto({mutating_page(1200)!r}); return null;")CODE
HIGH⚡packages/integrations/core/python/tests/test_browser.py138 await tools.run(code=f"await page.goto({mutating_page(None)!r}); return null;")CODE
Deep Nesting26 hits · 26 pts
SeverityFileLineSnippetContext
LOW…ages/sdk-python/tests/test_browserbase_routing_live.py74CODE
LOWpackages/sdk-python/tests/test_client_lifecycle_live.py42CODE
LOWpackages/sdk-python/examples/custom_logging.py11CODE
LOWpackages/sdk-python/examples/file_upload.py8CODE
LOWpackages/sdk-python/scripts/smoke.py62CODE
LOWpackages/sdk-python/scripts/smoke.py112CODE
LOWpackages/sdk-python/src/stagehand/cdp_client.py266CODE
LOWpackages/sdk-python/src/stagehand/cdp_client.py678CODE
LOWpackages/sdk-python/src/stagehand/cdp_client.py727CODE
LOWpackages/sdk-python/src/stagehand/browser.py442CODE
LOWpackages/sdk-python/src/stagehand/browser.py938CODE
LOWpackages/sdk-python/src/stagehand/browser.py1012CODE
LOWpackages/sdk-python/src/stagehand/browser.py513CODE
LOW…ckages/sdk-python/src/stagehand/browserbase_session.py23CODE
LOWpackages/sdk-python/src/stagehand/file_upload.py33CODE
LOW…ges/integrations/core/python/tests/test_conformance.py209CODE
LOW…ges/integrations/core/python/tests/test_conformance.py230CODE
LOW…s/core/python/src/stagehand_middleware/facade/tools.py327CODE
LOWpackages/integrations/deepagents/runner/run_eval.py223CODE
LOWpackages/integrations/deepagents/runner/run_eval.py546CODE
LOW…integrations/deepagents/runner/tests/test_watchdogs.py170CODE
LOW…integrations/deepagents/runner/tests/test_watchdogs.py177CODE
LOW…rations/deepagents/examples/managed/tools/stagehand.py183CODE
LOW…grations/deepagents/src/stagehand_deepagents/server.py140CODE
LOW…es/examples/cookbooks/paginated-catalog/python/main.py45CODE
LOW…ages/examples/cookbooks/persisted-login/python/main.py13CODE
AI Structural Patterns11 hits · 11 pts
SeverityFileLineSnippetContext
LOWpackages/sdk-python/src/stagehand/cdp_client.py266CODE
LOWpackages/sdk-python/src/stagehand/page.py614CODE
LOWpackages/sdk-python/src/stagehand/page.py665CODE
LOWpackages/sdk-python/src/stagehand/browser.py576CODE
LOWpackages/sdk-python/src/stagehand/browser.py777CODE
LOWpackages/sdk-python/src/stagehand/stagehand.py120CODE
LOWpackages/sdk-python/src/stagehand/stagehand.py345CODE
LOWpackages/sdk-python/src/stagehand/stagehand.py386CODE
LOWpackages/sdk-python/src/stagehand/stagehand.py347CODE
LOWpackages/sdk-python/src/stagehand/stagehand.py389CODE
LOWpackages/sdk-python/src/stagehand/stagehand.py418CODE
AI Slop Vocabulary3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM…s/core/python/src/stagehand_middleware/facade/tools.py61# sanitizeErrorMessage in src/harness/redact.ts. JavaScript regexes without theCOMMENT
MEDIUMpackages/integrations/deepagents/runner/run_eval.py49# waits on the child's exit indefinitely and the eval harness freezes. All areCOMMENT
MEDIUM⚡…/integrations/deepagents/runner/tests/test_run_eval.py558 # deepagents must still derive its harness profile key from the prebuilt model.COMMENT
Modern AI Meta-Vocabulary5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md1226- [#586](https://github.com/browserbase/stagehand/pull/586) [`c57dc19`](https://github.com/browserbase/stagehand/commit/CODE
MEDIUMCHANGELOG.md1226- [#586](https://github.com/browserbase/stagehand/pull/586) [`c57dc19`](https://github.com/browserbase/stagehand/commit/CODE
MEDIUMCHANGELOG.md1393- [#373](https://github.com/browserbase/stagehand/pull/373) [`ff00965`](https://github.com/browserbase/stagehand/commit/CODE
MEDIUMCHANGELOG.md1393- [#373](https://github.com/browserbase/stagehand/pull/373) [`ff00965`](https://github.com/browserbase/stagehand/commit/CODE
MEDIUMpackages/cli/README.md260browse functions init my-function # scaffold a new project (--package-manager)CODE
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWpackages/sdk-python/src/stagehand/__init__.py98__all__ = [CODE
LOWpackages/sdk-python/src/stagehand/page.py507 async def set_extra_http_headers(self, headers: Mapping[str, str]) -> None:CODE
LOWpackages/sdk-python/src/stagehand/browser_context.py75 async def set_active_page(self, page: Page) -> None:CODE
LOWpackages/sdk-python/src/stagehand/browser_context.py100 async def set_extra_http_headers(self, headers: Mapping[str, str]) -> None:CODE
LOWpackages/sdk-python/src/stagehand/client_types.py118__all__ = [CODE
LOW…ges/integrations/core/python/tests/test_conformance.py134 async def set_active_page(self, page: FakePage) -> None:CODE
LOW…ore/python/src/stagehand_middleware/facade/__init__.py20__all__ = [CODE
LOW…ations/deepagents/src/stagehand_deepagents/__init__.py5__all__ = ["BrowserTools", "RuntimeConfig"]CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWpackages/evals/framework/claudeCodeToolAdapter.ts661// caveat appended after conflicting examples.COMMENT
LOWpackages/evals/framework/claudeCodeToolAdapter.ts681 // Unterminated/invalid YAML frontmatter -- fall back to the sameCOMMENT
LOWpackages/evals/tui/repl.ts101 } else {COMMENT
LOWpackages/extension/understudy/context.ts701 const resume = async (): Promise<void> => {COMMENT
LOWpackages/docs/language-selector.js1// Language switcher for Stagehand docsCOMMENT
LOWpackages/integrations/middleware/src/index.ts1// The npm build of Stagehand's facade. The source lives inCOMMENT
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpackages/evals/tui/commands/new.ts23 // TODO: implement test logicCOMMENT
LOWpackages/evals/tui/commands/new.ts41 // TODO: implement eval logicCOMMENT
LOWpackages/evals/tui/commands/new.ts73 // TODO: implement eval logicCOMMENT
LOWpackages/evals/tests/tui/new.test.ts58 expect(task?.content).toContain("// TODO: implement eval logic");CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpackages/sdk-python/tests/test_rpc_client.py332 async def handle_request(params: models.EmptyParams) -> RPCResult:CODE
LOWpackages/sdk-ts/tests/integration/_support.ts116async function handleRequest(CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…integrations/deepagents/runner/tests/test_watchdogs.py291CODE