Repository Analysis

vercel-labs/open-agents

An open source template for building cloud agents.

3.2 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of vercel-labs/open-agents, a TypeScript project with 5,720 GitHub stars. SynthScan v2.0 examined 129,359 lines of code across 691 source files, recording 296 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 3.2 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.2
Adjusted Score
3.2
Raw Score
100%
Time Factor
2026-06-17
Last Push
5.7K
Stars
TypeScript
Language
129.4K
Lines of Code
691
Files
296
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 52LOW 244

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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 statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers219 hits · 222 pts
SeverityFileLineSnippetContext
LOWpackages/agent/usage.ts143export function collectTaskToolUsageEvents(CODE
LOWpackages/agent/open-agent.ts54function normalizeAgentModelSelection(CODE
LOWpackages/agent/models.ts12function supportsAdaptiveAnthropicThinking(modelId: string): boolean {CODE
LOWpackages/agent/models.ts104export function shouldApplyOpenAIReasoningDefaults(modelId: string): boolean {CODE
LOWpackages/agent/models.ts108function shouldApplyOpenAITextVerbosityDefaults(modelId: string): boolean {CODE
LOWpackages/agent/models.ts112export function getProviderOptionsForModel(CODE
LOWpackages/agent/subagents/registry.ts30export function buildSubagentSummaryLines(): string {CODE
LOW…nt/context-management/aggressive-compaction-helpers.ts44export function findPendingCompactionCandidates({CODE
LOW…nt/context-management/aggressive-compaction-helpers.ts107export function getPendingCompactionUnits(CODE
LOW…nt/context-management/aggressive-compaction-helpers.ts116export function estimateCompactionSavings({CODE
LOW…nt/context-management/aggressive-compaction-helpers.ts310function isCompactedToolResultPart(CODE
LOWpackages/sandbox/git.ts71async function resetToFetchedRemoteBranch(CODE
LOWpackages/sandbox/git.ts347export async function syncToRemotePreservingChanges(CODE
LOWpackages/sandbox/vercel/snapshot-refresh.ts45function defaultConnectSnapshotSandbox(CODE
LOWpackages/sandbox/vercel/sandbox.ts47function buildGitHubCredentialBrokeringPolicy(CODE
LOWpackages/sandbox/vercel/sandbox.ts88async function syncGitHubCredentialBrokering(CODE
LOWpackages/sandbox/vercel/sandbox.ts113async function clearGitHubCredentialBrokering(CODE
LOWpackages/sandbox/vercel/sandbox.ts119async function clearGitHubCredentialBrokeringBestEffort(CODE
LOWpackages/sandbox/vercel/sandbox.ts143function getRemainingTimeoutFromSession(CODE
LOWapps/web/app/settings/model-variants-section.tsx77export function ModelVariantsSectionSkeleton() {CODE
LOWapps/web/app/settings/accounts-section.tsx99function startGitHubInstallFromSettings() {CODE
LOWapps/web/app/settings/accounts-section.tsx647function ConnectionLoadingSkeleton() {CODE
LOWapps/web/app/settings/preferences-section.tsx89export function PreferencesSectionSkeleton() {CODE
LOWapps/web/app/settings/preferences-section.tsx145export function ModelPreferencesSectionSkeleton() {CODE
LOWapps/web/app/settings/preferences-section.tsx189function usePreferencesSectionState() {CODE
LOWapps/web/app/settings/leaderboard-section.tsx63export function LeaderboardSectionSkeleton() {CODE
LOW…pp/settings/usage/domain-usage-leaderboard-section.tsx32export function DomainUsageLeaderboardSection({CODE
LOWapps/web/app/workflows/sandbox-provisioning.ts55export async function sandboxProvisioningWorkflow(sessionId: string) {CODE
LOWapps/web/app/workflows/chat.ts102function shouldRefreshDiffCacheForParts(CODE
LOWapps/web/app/workflows/chat.ts352function summarizeRequestInputItem(item: unknown): unknown {CODE
LOWapps/web/app/workflows/chat.ts413function summarizeResponseOutputItem(item: unknown): unknown {CODE
LOWapps/web/app/workflows/sandbox-lifecycle.ts39async function computeLifecycleWakeDecision(CODE
LOWapps/web/app/workflows/sandbox-lifecycle.ts75async function clearLifecycleRunIdIfOwned(CODE
LOWapps/web/app/workflows/chat.test.ts25function createResolvedChatSandboxRuntime(CODE
LOWapps/web/app/workflows/chat-post-finish.ts135export async function persistAssistantMessageWithToolResults(CODE
LOWapps/web/app/workflows/chat-sandbox-runtime.ts88export async function resolveChatSandboxRuntime(params: {CODE
LOW…/web/app/shared/[shareId]/redact-shared-env-content.ts155function sanitizeSubagentFinalMessages(messages: unknown): unknown {CODE
LOW…s/[sessionId]/chats/[chatId]/stream-recovery-policy.ts19export function getStreamRecoveryDecision(options: {CODE
LOW…s/[sessionId]/chats/[chatId]/stream-recovery-policy.ts60export function shouldScheduleStallRecovery(options: {CODE
LOW…s/[sessionId]/chats/[chatId]/stream-recovery-policy.ts88export function isChatStreamingProbeResponse(CODE
LOW…ns/[sessionId]/chats/[chatId]/session-chat-context.tsx95function resolveContextLimitForModel(CODE
LOW…ns/[sessionId]/chats/[chatId]/session-chat-context.tsx1153export function useSessionChatRuntimeContext() {CODE
LOW…ns/[sessionId]/chats/[chatId]/session-chat-context.tsx1163export function useSessionChatWorkspaceContext() {CODE
LOW…ns/[sessionId]/chats/[chatId]/session-chat-context.tsx1173export function useSessionChatMetadataContext() {CODE
LOW…ons/[sessionId]/chats/[chatId]/only-chat-in-session.ts5export function getInitialIsOnlyChatInSession(CODE
LOW…/sessions/[sessionId]/chats/[chatId]/sandbox-create.ts42function parseCreateSandboxErrorResponse(CODE
LOW…/sessions/[sessionId]/chats/[chatId]/sandbox-create.ts70export function getSandboxCreateErrorDetails(CODE
LOW…/sessions/[sessionId]/chats/[chatId]/sandbox-create.ts87function getFallbackSandboxCreateErrorMessage(status: number): string {CODE
LOW…/sessions/[sessionId]/chats/[chatId]/diff-tab-view.tsx57function getFilenameFromContentDisposition(header: string | null): string {CODE
LOWapps/web/app/api/settings/model-variants/route.test.ts43function createProviderOptionsWithExactSize(CODE
LOWapps/web/app/api/settings/model-variants/route.ts26function providerOptionsSizeInBytes(CODE
LOWapps/web/app/api/settings/model-variants/route.ts33function isProviderOptionsTooLarge(CODE
LOWapps/web/app/api/chat/route.ts201async function reconcileExistingActiveStream(CODE
LOWapps/web/app/api/chat/[chatId]/stream/route.test.ts52function createWorkflowReadableStream(startIndex?: number) {CODE
LOWapps/web/app/api/chat/[chatId]/stream/route.test.ts106function createStreamRequestWithStartIndex(startIndex: string) {CODE
LOWapps/web/app/api/chat/_lib/persist-tool-results.ts19export async function persistAssistantMessagesWithToolResults(CODE
LOWapps/web/app/api/chat/_lib/model-selection.ts12export function resolveChatModelSelection({CODE
LOWapps/web/app/api/shared/[shareId]/markdown/route.ts40function stringifyFrontmatterValue(value: number | string): string {CODE
LOWapps/web/app/api/sessions/_lib/session-context.ts106export async function requireOwnedSessionWithSandboxGuard(CODE
LOW…/web/app/api/sessions/[sessionId]/code-editor/route.ts105function isCodeServerProcessCommand(command: string): boolean {CODE
159 more matches not shown…
Decorative Section Separators52 hits · 156 pts
SeverityFileLineSnippetContext
MEDIUM…kills/agent-browser/templates/authenticated-session.sh20# ══════════════════════════════════════════════════════════════COMMENT
MEDIUM…kills/agent-browser/templates/authenticated-session.sh22# ══════════════════════════════════════════════════════════════COMMENT
MEDIUM…kills/agent-browser/templates/authenticated-session.sh39# ══════════════════════════════════════════════════════════════COMMENT
MEDIUM…kills/agent-browser/templates/authenticated-session.sh41# ══════════════════════════════════════════════════════════════COMMENT
MEDIUM…kills/agent-browser/templates/authenticated-session.sh62# ══════════════════════════════════════════════════════════════COMMENT
MEDIUM…kills/agent-browser/templates/authenticated-session.sh64# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMapps/web/app/settings/profile/page.tsx18// ── Types ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/settings/profile/page.tsx67// ── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/settings/profile/page.tsx219// ── Sub-components ─────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/settings/profile/page.tsx277// ── Top repos for sidebar ──────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/settings/profile/page.tsx321// ── Profile sidebar (left column) ──────────────────────────────────────────COMMENT
MEDIUMapps/web/app/settings/profile/page.tsx422// ── Main page ──────────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts4// ── Mutable spy state ──────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts107// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts131// ── Tests ──────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts144// ─── persistUserMessage ────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts215// ─── persistAssistantMessage ───────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts253// ─── refreshLifecycleActivity ──────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts273// ─── persistSandboxState ───────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts302// ─── clearActiveStream ─────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts347// ─── refreshDiffCache ──────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts366// ─── hasAutoCommitChangesStep ───────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat-post-finish.test.ts394// ─── runAutoCommitStep ─────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat.test.ts4// ── Spy state ──────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat.test.ts196// ── Module mocks ───────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat.test.ts356// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/workflows/chat.test.ts388// ── Tests ──────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stream/route.test.ts3// ── Mutable state ──────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stream/route.test.ts33// ── Module mocks ───────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stream/route.test.ts97// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stream/route.test.ts120// ── Tests ──────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stop/route.test.ts3// ── Mutable state ──────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stop/route.test.ts39// ── Module mocks ───────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stop/route.test.ts72// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/api/chat/[chatId]/stop/route.test.ts89// ── Tests ──────────────────────────────────────────────────────────COMMENT
MEDIUM…s/web/app/api/sessions/[sessionId]/checks/fix/route.ts68// ── Formatting helpers ──────────────────────────────────────────────────COMMENT
MEDIUM…s/web/app/api/sessions/[sessionId]/checks/fix/route.ts140// ── Log compaction via LLM ──────────────────────────────────────────────COMMENT
MEDIUM…s/web/app/api/sessions/[sessionId]/checks/fix/route.ts168// ── Route handler ───────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/[username]/page.tsx63// ── Gray-scale dot classes: brightest first (top rank), darkest last ────────COMMENT
MEDIUMapps/web/app/[username]/page.tsx73// ── Sub-components ─────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/[username]/page.tsx122// ── Main page ──────────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/app/[username]/og/route.tsx26 // ── Activity grid ────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/chat/auto-commit-direct.test.ts3// ── spy state ──────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/chat/auto-commit-direct.test.ts42// ── module mocks ───────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/chat/auto-commit-direct.test.ts119// ── helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/chat/auto-commit-direct.test.ts137// ── tests ──────────────────────────────────────────────────────────COMMENT
MEDIUM…web/lib/chat/create-cancelable-readable-stream.test.ts4// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUM…web/lib/chat/create-cancelable-readable-stream.test.ts28// ── Tests ──────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/diff/compute-diff.test.ts3// ── Spy state ──────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/diff/compute-diff.test.ts24// ── Module mocks ───────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/diff/compute-diff.test.ts38// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMapps/web/lib/diff/compute-diff.test.ts67// ── Tests ──────────────────────────────────────────────────────────COMMENT
Fake / Example Data9 hits · 10 pts
SeverityFileLineSnippetContext
LOW.agents/skills/agent-browser/SKILL.md264agent-browser fill @e1 "user@example.com"CODE
LOW…ents/skills/agent-browser/references/authentication.md17agent-browser fill @e1 "user@example.com"CODE
LOW…ents/skills/agent-browser/references/authentication.md36agent-browser fill @e1 "user@example.com"CODE
LOW…ents/skills/agent-browser/references/authentication.md93agent-browser fill @e1 "user@example.com"CODE
LOW…gents/skills/agent-browser/references/snapshot-refs.md64agent-browser fill @e10 "user@example.com"CODE
LOW…/skills/agent-browser/references/session-management.md17agent-browser --session auth fill @e1 "user@example.com"CODE
LOW…ents/skills/agent-browser/templates/form-automation.sh23# agent-browser fill @e1 "John Doe" # Name fieldCOMMENT
LOW…ents/skills/agent-browser/templates/form-automation.sh24# agent-browser fill @e2 "user@example.com" # Email fieldCOMMENT
LOWapps/web/app/workflows/chat.test.ts376 email: "user@example.com",CODE
Over-Commented Block9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…nts/skills/agent-browser/templates/capture-workflow.sh41# agent-browser get text ".content" > "$OUTPUT_DIR/content.txt"COMMENT
LOW…ents/skills/agent-browser/templates/form-automation.sh21COMMENT
LOW…kills/agent-browser/templates/authenticated-session.sh1#!/bin/bashCOMMENT
LOW…kills/agent-browser/templates/authenticated-session.sh61COMMENT
LOW…kills/agent-browser/templates/authenticated-session.sh81# echo "ERROR: Login failed - still on login page"COMMENT
LOW…onId]/chats/[chatId]/hooks/use-session-chat-runtime.ts281 //COMMENT
LOWapps/web/app/api/sandbox/route.ts41// import { getUserVercelToken } from "@/lib/vercel/token";COMMENT
LOWapps/web/app/api/sandbox/route.ts61// if (!token) {COMMENT
LOWapps/web/app/api/sandbox/route.ts241 sessionRecord?.lifecycleVersion,COMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOW.agents/skills/plan-mode/SKILL.md21## Step 1: ExploreCOMMENT
LOW.agents/skills/plan-mode/SKILL.md33## Step 2: ClarifyCOMMENT
LOW.agents/skills/plan-mode/SKILL.md37## Step 3: DesignCOMMENT
LOW.agents/skills/plan-mode/SKILL.md65## Step 4: ReviewCOMMENT
LOW.agents/skills/plan-mode/SKILL.md75## Step 5: Present the PlanCOMMENT
LOW.agents/skills/plan-mode/SKILL.md107## Step 6: Implement and VerifyCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…kills/agent-browser/templates/authenticated-session.sh5# Usage:COMMENT