An open source template for building cloud agents.
This report summarizes scanner evidence for vercel-labs/open-agents, a TypeScript project with 5,872 GitHub stars. SynthScan examined 129,359 lines of code across 691 source files, recording 296 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 3.2 (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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 235 finding(s).
Are imports declared and package/API names verified? 9 finding(s).
Are wrappers, guards, and repeated structures necessary? 271 finding(s).
Which changes need focused human review? 296 finding(s).
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.
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.
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.
The scanner identified 296 distinct pattern matches across 6 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/agent/usage.ts | 143 | export function collectTaskToolUsageEvents( | CODE |
| LOW | packages/agent/open-agent.ts | 54 | function normalizeAgentModelSelection( | CODE |
| LOW | packages/agent/models.ts | 12 | function supportsAdaptiveAnthropicThinking(modelId: string): boolean { | CODE |
| LOW⚡ | packages/agent/models.ts | 104 | export function shouldApplyOpenAIReasoningDefaults(modelId: string): boolean { | CODE |
| LOW⚡ | packages/agent/models.ts | 108 | function shouldApplyOpenAITextVerbosityDefaults(modelId: string): boolean { | CODE |
| LOW⚡ | packages/agent/models.ts | 112 | export function getProviderOptionsForModel( | CODE |
| LOW | packages/agent/subagents/registry.ts | 30 | export function buildSubagentSummaryLines(): string { | CODE |
| LOW | …nt/context-management/aggressive-compaction-helpers.ts | 44 | export function findPendingCompactionCandidates({ | CODE |
| LOW | …nt/context-management/aggressive-compaction-helpers.ts | 107 | export function getPendingCompactionUnits( | CODE |
| LOW | …nt/context-management/aggressive-compaction-helpers.ts | 116 | export function estimateCompactionSavings({ | CODE |
| LOW | …nt/context-management/aggressive-compaction-helpers.ts | 310 | function isCompactedToolResultPart( | CODE |
| LOW | packages/sandbox/git.ts | 71 | async function resetToFetchedRemoteBranch( | CODE |
| LOW | packages/sandbox/git.ts | 347 | export async function syncToRemotePreservingChanges( | CODE |
| LOW | packages/sandbox/vercel/snapshot-refresh.ts | 45 | function defaultConnectSnapshotSandbox( | CODE |
| LOW | packages/sandbox/vercel/sandbox.ts | 47 | function buildGitHubCredentialBrokeringPolicy( | CODE |
| LOW | packages/sandbox/vercel/sandbox.ts | 88 | async function syncGitHubCredentialBrokering( | CODE |
| LOW | packages/sandbox/vercel/sandbox.ts | 113 | async function clearGitHubCredentialBrokering( | CODE |
| LOW | packages/sandbox/vercel/sandbox.ts | 119 | async function clearGitHubCredentialBrokeringBestEffort( | CODE |
| LOW | packages/sandbox/vercel/sandbox.ts | 143 | function getRemainingTimeoutFromSession( | CODE |
| LOW | apps/web/app/settings/model-variants-section.tsx | 77 | export function ModelVariantsSectionSkeleton() { | CODE |
| LOW | apps/web/app/settings/accounts-section.tsx | 99 | function startGitHubInstallFromSettings() { | CODE |
| LOW | apps/web/app/settings/accounts-section.tsx | 647 | function ConnectionLoadingSkeleton() { | CODE |
| LOW | apps/web/app/settings/preferences-section.tsx | 89 | export function PreferencesSectionSkeleton() { | CODE |
| LOW | apps/web/app/settings/preferences-section.tsx | 145 | export function ModelPreferencesSectionSkeleton() { | CODE |
| LOW | apps/web/app/settings/preferences-section.tsx | 189 | function usePreferencesSectionState() { | CODE |
| LOW | apps/web/app/settings/leaderboard-section.tsx | 63 | export function LeaderboardSectionSkeleton() { | CODE |
| LOW | …pp/settings/usage/domain-usage-leaderboard-section.tsx | 32 | export function DomainUsageLeaderboardSection({ | CODE |
| LOW | apps/web/app/workflows/sandbox-provisioning.ts | 55 | export async function sandboxProvisioningWorkflow(sessionId: string) { | CODE |
| LOW | apps/web/app/workflows/chat.ts | 102 | function shouldRefreshDiffCacheForParts( | CODE |
| LOW | apps/web/app/workflows/chat.ts | 352 | function summarizeRequestInputItem(item: unknown): unknown { | CODE |
| LOW | apps/web/app/workflows/chat.ts | 413 | function summarizeResponseOutputItem(item: unknown): unknown { | CODE |
| LOW | apps/web/app/workflows/sandbox-lifecycle.ts | 39 | async function computeLifecycleWakeDecision( | CODE |
| LOW | apps/web/app/workflows/sandbox-lifecycle.ts | 75 | async function clearLifecycleRunIdIfOwned( | CODE |
| LOW | apps/web/app/workflows/chat.test.ts | 25 | function createResolvedChatSandboxRuntime( | CODE |
| LOW | apps/web/app/workflows/chat-post-finish.ts | 135 | export async function persistAssistantMessageWithToolResults( | CODE |
| LOW | apps/web/app/workflows/chat-sandbox-runtime.ts | 88 | export async function resolveChatSandboxRuntime(params: { | CODE |
| LOW | …/web/app/shared/[shareId]/redact-shared-env-content.ts | 155 | function sanitizeSubagentFinalMessages(messages: unknown): unknown { | CODE |
| LOW | …s/[sessionId]/chats/[chatId]/stream-recovery-policy.ts | 19 | export function getStreamRecoveryDecision(options: { | CODE |
| LOW | …s/[sessionId]/chats/[chatId]/stream-recovery-policy.ts | 60 | export function shouldScheduleStallRecovery(options: { | CODE |
| LOW | …s/[sessionId]/chats/[chatId]/stream-recovery-policy.ts | 88 | export function isChatStreamingProbeResponse( | CODE |
| LOW | …ns/[sessionId]/chats/[chatId]/session-chat-context.tsx | 95 | function resolveContextLimitForModel( | CODE |
| LOW⚡ | …ns/[sessionId]/chats/[chatId]/session-chat-context.tsx | 1153 | export function useSessionChatRuntimeContext() { | CODE |
| LOW⚡ | …ns/[sessionId]/chats/[chatId]/session-chat-context.tsx | 1163 | export function useSessionChatWorkspaceContext() { | CODE |
| LOW⚡ | …ns/[sessionId]/chats/[chatId]/session-chat-context.tsx | 1173 | export function useSessionChatMetadataContext() { | CODE |
| LOW | …ons/[sessionId]/chats/[chatId]/only-chat-in-session.ts | 5 | export function getInitialIsOnlyChatInSession( | CODE |
| LOW | …/sessions/[sessionId]/chats/[chatId]/sandbox-create.ts | 42 | function parseCreateSandboxErrorResponse( | CODE |
| LOW | …/sessions/[sessionId]/chats/[chatId]/sandbox-create.ts | 70 | export function getSandboxCreateErrorDetails( | CODE |
| LOW | …/sessions/[sessionId]/chats/[chatId]/sandbox-create.ts | 87 | function getFallbackSandboxCreateErrorMessage(status: number): string { | CODE |
| LOW | …/sessions/[sessionId]/chats/[chatId]/diff-tab-view.tsx | 57 | function getFilenameFromContentDisposition(header: string | null): string { | CODE |
| LOW | apps/web/app/api/settings/model-variants/route.test.ts | 43 | function createProviderOptionsWithExactSize( | CODE |
| LOW | apps/web/app/api/settings/model-variants/route.ts | 26 | function providerOptionsSizeInBytes( | CODE |
| LOW | apps/web/app/api/settings/model-variants/route.ts | 33 | function isProviderOptionsTooLarge( | CODE |
| LOW | apps/web/app/api/chat/route.ts | 201 | async function reconcileExistingActiveStream( | CODE |
| LOW | apps/web/app/api/chat/[chatId]/stream/route.test.ts | 52 | function createWorkflowReadableStream(startIndex?: number) { | CODE |
| LOW | apps/web/app/api/chat/[chatId]/stream/route.test.ts | 106 | function createStreamRequestWithStartIndex(startIndex: string) { | CODE |
| LOW | apps/web/app/api/chat/_lib/persist-tool-results.ts | 19 | export async function persistAssistantMessagesWithToolResults( | CODE |
| LOW | apps/web/app/api/chat/_lib/model-selection.ts | 12 | export function resolveChatModelSelection({ | CODE |
| LOW | apps/web/app/api/shared/[shareId]/markdown/route.ts | 40 | function stringifyFrontmatterValue(value: number | string): string { | CODE |
| LOW | apps/web/app/api/sessions/_lib/session-context.ts | 106 | export async function requireOwnedSessionWithSandboxGuard( | CODE |
| LOW | …/web/app/api/sessions/[sessionId]/code-editor/route.ts | 105 | function isCodeServerProcessCommand(command: string): boolean { | CODE |
| 159 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …kills/agent-browser/templates/authenticated-session.sh | 20 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …kills/agent-browser/templates/authenticated-session.sh | 22 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …kills/agent-browser/templates/authenticated-session.sh | 39 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …kills/agent-browser/templates/authenticated-session.sh | 41 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …kills/agent-browser/templates/authenticated-session.sh | 62 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …kills/agent-browser/templates/authenticated-session.sh | 64 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | apps/web/app/settings/profile/page.tsx | 18 | // ── Types ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/settings/profile/page.tsx | 67 | // ── Helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/settings/profile/page.tsx | 219 | // ── Sub-components ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/settings/profile/page.tsx | 277 | // ── Top repos for sidebar ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/settings/profile/page.tsx | 321 | // ── Profile sidebar (left column) ────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/settings/profile/page.tsx | 422 | // ── Main page ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 4 | // ── Mutable spy state ────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 107 | // ── Helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 131 | // ── Tests ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 144 | // ─── persistUserMessage ──────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 215 | // ─── persistAssistantMessage ─────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 253 | // ─── refreshLifecycleActivity ────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 273 | // ─── persistSandboxState ─────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 302 | // ─── clearActiveStream ───────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 347 | // ─── refreshDiffCache ────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 366 | // ─── hasAutoCommitChangesStep ─────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat-post-finish.test.ts | 394 | // ─── runAutoCommitStep ───────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat.test.ts | 4 | // ── Spy state ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat.test.ts | 196 | // ── Module mocks ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat.test.ts | 356 | // ── Helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/workflows/chat.test.ts | 388 | // ── Tests ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stream/route.test.ts | 3 | // ── Mutable state ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stream/route.test.ts | 33 | // ── Module mocks ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stream/route.test.ts | 97 | // ── Helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stream/route.test.ts | 120 | // ── Tests ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stop/route.test.ts | 3 | // ── Mutable state ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stop/route.test.ts | 39 | // ── Module mocks ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stop/route.test.ts | 72 | // ── Helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/api/chat/[chatId]/stop/route.test.ts | 89 | // ── Tests ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …s/web/app/api/sessions/[sessionId]/checks/fix/route.ts | 68 | // ── Formatting helpers ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …s/web/app/api/sessions/[sessionId]/checks/fix/route.ts | 140 | // ── Log compaction via LLM ────────────────────────────────────────────── | COMMENT |
| MEDIUM | …s/web/app/api/sessions/[sessionId]/checks/fix/route.ts | 168 | // ── Route handler ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/[username]/page.tsx | 63 | // ── Gray-scale dot classes: brightest first (top rank), darkest last ──────── | COMMENT |
| MEDIUM | apps/web/app/[username]/page.tsx | 73 | // ── Sub-components ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/[username]/page.tsx | 122 | // ── Main page ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/app/[username]/og/route.tsx | 26 | // ── Activity grid ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/chat/auto-commit-direct.test.ts | 3 | // ── spy state ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/chat/auto-commit-direct.test.ts | 42 | // ── module mocks ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/chat/auto-commit-direct.test.ts | 119 | // ── helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/chat/auto-commit-direct.test.ts | 137 | // ── tests ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …web/lib/chat/create-cancelable-readable-stream.test.ts | 4 | // ── Helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …web/lib/chat/create-cancelable-readable-stream.test.ts | 28 | // ── Tests ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/diff/compute-diff.test.ts | 3 | // ── Spy state ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/diff/compute-diff.test.ts | 24 | // ── Module mocks ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/diff/compute-diff.test.ts | 38 | // ── Helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/lib/diff/compute-diff.test.ts | 67 | // ── Tests ────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/agent-browser/SKILL.md | 264 | agent-browser fill @e1 "user@example.com" | CODE |
| LOW | …ents/skills/agent-browser/references/authentication.md | 17 | agent-browser fill @e1 "user@example.com" | CODE |
| LOW | …ents/skills/agent-browser/references/authentication.md | 36 | agent-browser fill @e1 "user@example.com" | CODE |
| LOW | …ents/skills/agent-browser/references/authentication.md | 93 | agent-browser fill @e1 "user@example.com" | CODE |
| LOW | …gents/skills/agent-browser/references/snapshot-refs.md | 64 | agent-browser fill @e10 "user@example.com" | CODE |
| LOW | …/skills/agent-browser/references/session-management.md | 17 | agent-browser --session auth fill @e1 "user@example.com" | CODE |
| LOW | …ents/skills/agent-browser/templates/form-automation.sh | 23 | # agent-browser fill @e1 "John Doe" # Name field | COMMENT |
| LOW | …ents/skills/agent-browser/templates/form-automation.sh | 24 | # agent-browser fill @e2 "user@example.com" # Email field | COMMENT |
| LOW | apps/web/app/workflows/chat.test.ts | 376 | email: "user@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nts/skills/agent-browser/templates/capture-workflow.sh | 41 | # agent-browser get text ".content" > "$OUTPUT_DIR/content.txt" | COMMENT |
| LOW | …ents/skills/agent-browser/templates/form-automation.sh | 21 | COMMENT | |
| LOW | …kills/agent-browser/templates/authenticated-session.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …kills/agent-browser/templates/authenticated-session.sh | 61 | COMMENT | |
| LOW | …kills/agent-browser/templates/authenticated-session.sh | 81 | # echo "ERROR: Login failed - still on login page" | COMMENT |
| LOW | …onId]/chats/[chatId]/hooks/use-session-chat-runtime.ts | 281 | // | COMMENT |
| LOW | apps/web/app/api/sandbox/route.ts | 41 | // import { getUserVercelToken } from "@/lib/vercel/token"; | COMMENT |
| LOW | apps/web/app/api/sandbox/route.ts | 61 | // if (!token) { | COMMENT |
| LOW | apps/web/app/api/sandbox/route.ts | 241 | sessionRecord?.lifecycleVersion, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/plan-mode/SKILL.md | 21 | ## Step 1: Explore | COMMENT |
| LOW | .agents/skills/plan-mode/SKILL.md | 33 | ## Step 2: Clarify | COMMENT |
| LOW | .agents/skills/plan-mode/SKILL.md | 37 | ## Step 3: Design | COMMENT |
| LOW | .agents/skills/plan-mode/SKILL.md | 65 | ## Step 4: Review | COMMENT |
| LOW | .agents/skills/plan-mode/SKILL.md | 75 | ## Step 5: Present the Plan | COMMENT |
| LOW | .agents/skills/plan-mode/SKILL.md | 107 | ## Step 6: Implement and Verify | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …kills/agent-browser/templates/authenticated-session.sh | 5 | # Usage: | COMMENT |