This report presents the forensic synthetic code analysis of companion-inc/feynman, a TypeScript project with 8,294 GitHub stars. SynthScan v2.0 examined 145,996 lines of code across 472 source files, recording 488 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.5 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).
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.
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.
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.
The scanner identified 488 distinct pattern matches across 7 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/package-ops.test.ts | 12 | function createInstalledGlobalPackage(homeRoot: string, packageName: string, version = "1.0.0"): void { | CODE |
| LOW | tests/package-ops.test.ts | 50 | function getSessionSearchIndexerPath(homeRoot: string): string { | CODE |
| LOW | tests/package-ops.test.ts | 54 | function writeFakeSessionSearchNpmScript(root: string, logPath?: string): string { | CODE |
| LOW | tests/workbench-frame-messages.test.ts | 11 | function makeFrameMessageWorkspace(): string { | CODE |
| LOW | tests/workbench-safety-feedback.test.ts | 11 | function makeSafetyFeedbackWorkspace(): string { | CODE |
| LOW | tests/pi-subagents-patch.test.ts | 6 | function assertUserDirLoadsHaveDeclaration(source: string): void { | CODE |
| LOW | tests/pi-subagents-patch.test.ts | 343 | "async function runForegroundParallelTasks(input: ForegroundParallelRunInput): Promise<SingleResult[]> {", | CODE |
| LOW | tests/pi-subagents-patch.test.ts | 411 | "export function resolveWindowsPiCliScript(deps: PiSpawnDeps = {}): string | undefined {", | CODE |
| LOW | tests/pi-subagents-patch.test.ts | 441 | "export function resolveWindowsPiCliScript(deps: PiSpawnDeps = {}): string | undefined {", | CODE |
| LOW | tests/pi-web-access-patch.test.ts | 81 | "function getChromeProfileFromConfig(): string | undefined {", | CODE |
| LOW | tests/pi-runtime-patches.test.ts | 174 | export function resolveWindowsPiCliScript(deps: PiSpawnDeps = {}): string | undefined { | CODE |
| LOW⚡ | workbench-web/src/main.tsx | 6326 | function createHtmlAnnotationNonce(): string { | CODE |
| LOW⚡ | workbench-web/src/main.tsx | 6331 | function injectHtmlAnnotationBridge(content: string, nonce: string): string { | CODE |
| LOW⚡ | workbench-web/src/main.tsx | 6338 | function htmlSelectorFromAnnotation(annotation: WorkbenchArtifactAnnotation): string | null { | CODE |
| LOW⚡ | workbench-web/src/main.tsx | 6344 | function htmlSelectionFromFrameMessage(message: Extract<HtmlAnnotationFrameMessage, { kind: "html-annot-selected" }>): A | CODE |
| LOW | workbench-web/src/main.tsx | 558 | function transcriptAnnotationsForMessage( | CODE |
| LOW | workbench-web/src/main.tsx | 734 | function shouldShowActivityInQueue(activity: WorkbenchSessionActivityItem): boolean { | CODE |
| LOW | workbench-web/src/main.tsx | 1271 | function startNewProjectFromPalette() { | CODE |
| LOW | workbench-web/src/main.tsx | 1482 | async function saveArtifactRefinementAnnotation() { | CODE |
| LOW | workbench-web/src/main.tsx | 1522 | async function requestArtifactRefinementSuggestion(mode: ArtifactRefinementMode) { | CODE |
| LOW | workbench-web/src/main.tsx | 1579 | async function applyArtifactRefinementSuggestion() { | CODE |
| LOW | workbench-web/src/main.tsx | 1640 | function useArtifactAnnotationInChat(annotation: WorkbenchArtifactAnnotation) { | CODE |
| LOW | workbench-web/src/main.tsx | 1683 | async function removeTranscriptAnnotation(annotationId: string) { | CODE |
| LOW | workbench-web/src/main.tsx | 1700 | function useTranscriptAnnotationInChat(annotation: WorkbenchTranscriptAnnotation) { | CODE |
| LOW | workbench-web/src/main.tsx | 1710 | function nextArtifactPathAfterRemoval(nextState: WorkbenchState, artifactPath: string): string | null { | CODE |
| LOW | workbench-web/src/main.tsx | 1827 | async function removeCloudStorageCredential(settingsRecordId: string) { | CODE |
| LOW | workbench-web/src/main.tsx | 2085 | async function updateWorkbenchPlanActionFromPreview(plan: WorkbenchGeneratedPlan, action: WorkbenchPlanAction) { | CODE |
| LOW | workbench-web/src/main.tsx | 2101 | async function updateWorkbenchPlanStepFromPreview(plan: WorkbenchGeneratedPlan, stepTitle: string, status: WorkbenchPla | CODE |
| LOW | workbench-web/src/main.tsx | 2117 | async function requestReviewFromComposer() { | CODE |
| LOW | workbench-web/src/main.tsx | 2333 | async function manageNotebookEnvironment() { | CODE |
| LOW | workbench-web/src/main.tsx | 2380 | async function handleComputeProviderAction(provider: WorkbenchComputeProvider, action: ComputeProviderAction) { | CODE |
| LOW | workbench-web/src/main.tsx | 2656 | async function retryApprovedConnectorCall(activity: ToolActivityView) { | CODE |
| LOW | workbench-web/src/main.tsx | 5923 | function WorkbenchPlanArtifactPreview({ | CODE |
| LOW | workbench-web/src/main.tsx | 6050 | function SpreadsheetArtifactPreview({ artifact }: { artifact: WorkbenchArtifact }) { | CODE |
| LOW | workbench-web/src/main.tsx | 7293 | function MediaAnnotationDraftMarker({ selection }: { selection: ArtifactAnchorSelection }) { | CODE |
| LOW⚡ | workbench-web/src/notebook.ts | 16 | export function notebookEnvironmentLanguages(): NotebookEnvironmentLanguage[] { | CODE |
| LOW⚡ | workbench-web/src/notebook.ts | 20 | export function normalizeNotebookPackageInput(value: string): string[] { | CODE |
| LOW⚡ | workbench-web/src/notebook.ts | 24 | export function notebookEnvironmentActionLabel( | CODE |
| LOW | workbench-web/src/artifacts.ts | 1365 | export function artifactExecutionsForPath(state: WorkbenchState, path: string): WorkbenchExecutionRecord[] { | CODE |
| LOW | workbench-web/src/tensor-preview.ts | 255 | export async function parseTensorArchivePreview( | CODE |
| LOW | workbench-web/src/tool-activity.ts | 80 | function permissionResourceForScope(groups: WorkbenchResourceGroup[], scope: string): WorkbenchResource | undefined { | CODE |
| LOW | workbench-web/src/tool-activity.ts | 111 | export function connectorApprovalScopeFromText(value: string | undefined): string | undefined { | CODE |
| LOW | workbench-web/src/tool-activity.ts | 126 | export function parseConnectorApprovalScope(scope: string | undefined): { connectorId: string; toolName: string } | unde | CODE |
| LOW | workbench-web/src/tool-activity.ts | 135 | export function connectorApprovalForEvent( | CODE |
| LOW | workbench-web/src/tool-activity.ts | 206 | export function connectorApprovalRetryPrompt(approval: ConnectorApprovalView, input?: string): string { | CODE |
| LOW | workbench-web/src/artifact-refinement.ts | 75 | export function artifactAnnotationsForPath( | CODE |
| LOW | workbench-web/src/artifact-refinement.ts | 105 | export function textSelectionFromSelectedText(content: string, selectedText: string): ArtifactTextSelection | null { | CODE |
| LOW | workbench-web/src/artifact-refinement.ts | 181 | export function canSuggestArtifactRefinement(selection: ArtifactAnchorSelection): selection is ArtifactTextSelection { | CODE |
| LOW | workbench-web/src/science-viewers.tsx | 164 | function applyTidyTreeInitialTransform(container: HTMLElement, layout: TidyTreeLayout): { k: number; x: number; y: numbe | CODE |
| LOW | workbench-web/src/artifact-actions.ts | 60 | export function artifactEditDisabledReason(artifact: WorkbenchArtifact): string { | CODE |
| LOW | workbench-web/src/artifact-actions.ts | 76 | export function artifactVersionActionBody(version: WorkbenchArtifactVersion): { artifactPath: string; versionId: string | CODE |
| LOW | workbench-web/src/artifact-actions.ts | 107 | export function configuredCloudExportTarget(targets: WorkbenchCloudExportTarget[]): WorkbenchCloudExportTarget | null { | CODE |
| LOW | workbench-web/src/files.ts | 55 | export function primaryArtifactPathForRun(run: WorkbenchRun | undefined): string | null { | CODE |
| LOW | workbench-web/src/files.ts | 59 | export function defaultArtifactPathForRun(state: WorkbenchState, run: WorkbenchRun | undefined): string | null { | CODE |
| LOW | workbench-web/src/files.ts | 102 | export function filterArtifactsForBrowser( | CODE |
| LOW | extensions/research-tools/feynman-model.ts | 73 | function serializeFrontmatterDocument(document: FrontmatterDocument): string { | CODE |
| LOW | extensions/research-tools/feynman-model.ts | 224 | export function registerFeynmanModelCommand(pi: ExtensionAPI): void { | CODE |
| LOW | …research-tools/science-database-chemistry-reference.ts | 304 | function normalizePubchemInformation(info: Record<string, unknown>): Record<string, unknown> { | CODE |
| LOW | …research-tools/science-database-chemistry-reference.ts | 573 | export async function searchChemistryReferenceScienceDatabase(params: SearchParams): Promise<Record<string, unknown>> { | CODE |
| LOW | extensions/research-tools/science-database-unibind.ts | 20 | export function isUniBindScienceDatabaseSource(source: string): source is UniBindScienceDatabaseSource { | CODE |
| 408 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | prompts/deepresearch.md | 36 | ## Step 1: Plan | COMMENT |
| LOW | prompts/deepresearch.md | 56 | ## Step 2: Scale | COMMENT |
| LOW | prompts/deepresearch.md | 70 | ## Step 3: Gather Evidence | COMMENT |
| LOW | prompts/deepresearch.md | 108 | ## Step 4: Draft | COMMENT |
| LOW | prompts/deepresearch.md | 126 | ## Step 5: Cite | COMMENT |
| LOW | prompts/deepresearch.md | 148 | ## Step 6: Review | COMMENT |
| LOW | prompts/deepresearch.md | 176 | ## Step 7: Deliver | COMMENT |
| LOW | prompts/autoresearch.md | 22 | ## Step 1: Gather | COMMENT |
| LOW | prompts/autoresearch.md | 34 | ## Step 2: Environment | COMMENT |
| LOW | prompts/autoresearch.md | 46 | ## Step 3: Confirm | COMMENT |
| LOW | prompts/autoresearch.md | 60 | ## Step 4: Run | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CHANGELOG.md | 1674 | - Verified: Local model state showed default provider/model `openai`/`gpt-5.5-pro`; `feynman model list` showed `openai/ | CODE |
| HIGH | tests/model-harness.test.ts | 212 | "Model synthesis: generated by openai/gpt-5 (recommended current research model; resolved openai/gpt-5); /tmp/example- | CODE |
| HIGH | tests/model-harness.test.ts | 230 | "Model synthesis: generated by openai/gpt-5 (explicit override; resolved openai/gpt-5)", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | RELEASES.md | 209 | - Fixed `alpha_search` returning empty results in every mode (#167). alphaXiv search tools now return structured JSON in | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | package-lock.json | 10743 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .astro/types.d.ts | 1 | /// <reference types="astro/client" /> | COMMENT |
| LOW | website/.astro/types.d.ts | 1 | /// <reference types="astro/client" /> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/workbench/notebook-kernels.ts | 116 | except Exception as exc: | CODE |
| LOW | src/workbench/notebook-kernels.ts | 129 | except Exception: | CODE |