Repository Analysis

companion-inc/feynman

3.5 Likely human-written View on GitHub

Analysis Overview

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).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-10
Last Push
8.3K
Stars
TypeScript
Language
146.0K
Lines of Code
472
Files
488
Pattern Hits
2026-07-14
Scan Date
0.01
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 3MEDIUM 2LOW 483

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 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.

Hyper-Verbose Identifiers468 hits · 470 pts
SeverityFileLineSnippetContext
LOWtests/package-ops.test.ts12function createInstalledGlobalPackage(homeRoot: string, packageName: string, version = "1.0.0"): void {CODE
LOWtests/package-ops.test.ts50function getSessionSearchIndexerPath(homeRoot: string): string {CODE
LOWtests/package-ops.test.ts54function writeFakeSessionSearchNpmScript(root: string, logPath?: string): string {CODE
LOWtests/workbench-frame-messages.test.ts11function makeFrameMessageWorkspace(): string {CODE
LOWtests/workbench-safety-feedback.test.ts11function makeSafetyFeedbackWorkspace(): string {CODE
LOWtests/pi-subagents-patch.test.ts6function assertUserDirLoadsHaveDeclaration(source: string): void {CODE
LOWtests/pi-subagents-patch.test.ts343 "async function runForegroundParallelTasks(input: ForegroundParallelRunInput): Promise<SingleResult[]> {",CODE
LOWtests/pi-subagents-patch.test.ts411 "export function resolveWindowsPiCliScript(deps: PiSpawnDeps = {}): string | undefined {",CODE
LOWtests/pi-subagents-patch.test.ts441 "export function resolveWindowsPiCliScript(deps: PiSpawnDeps = {}): string | undefined {",CODE
LOWtests/pi-web-access-patch.test.ts81 "function getChromeProfileFromConfig(): string | undefined {",CODE
LOWtests/pi-runtime-patches.test.ts174export function resolveWindowsPiCliScript(deps: PiSpawnDeps = {}): string | undefined {CODE
LOWworkbench-web/src/main.tsx6326function createHtmlAnnotationNonce(): string {CODE
LOWworkbench-web/src/main.tsx6331function injectHtmlAnnotationBridge(content: string, nonce: string): string {CODE
LOWworkbench-web/src/main.tsx6338function htmlSelectorFromAnnotation(annotation: WorkbenchArtifactAnnotation): string | null {CODE
LOWworkbench-web/src/main.tsx6344function htmlSelectionFromFrameMessage(message: Extract<HtmlAnnotationFrameMessage, { kind: "html-annot-selected" }>): ACODE
LOWworkbench-web/src/main.tsx558function transcriptAnnotationsForMessage(CODE
LOWworkbench-web/src/main.tsx734function shouldShowActivityInQueue(activity: WorkbenchSessionActivityItem): boolean {CODE
LOWworkbench-web/src/main.tsx1271 function startNewProjectFromPalette() {CODE
LOWworkbench-web/src/main.tsx1482 async function saveArtifactRefinementAnnotation() {CODE
LOWworkbench-web/src/main.tsx1522 async function requestArtifactRefinementSuggestion(mode: ArtifactRefinementMode) {CODE
LOWworkbench-web/src/main.tsx1579 async function applyArtifactRefinementSuggestion() {CODE
LOWworkbench-web/src/main.tsx1640 function useArtifactAnnotationInChat(annotation: WorkbenchArtifactAnnotation) {CODE
LOWworkbench-web/src/main.tsx1683 async function removeTranscriptAnnotation(annotationId: string) {CODE
LOWworkbench-web/src/main.tsx1700 function useTranscriptAnnotationInChat(annotation: WorkbenchTranscriptAnnotation) {CODE
LOWworkbench-web/src/main.tsx1710 function nextArtifactPathAfterRemoval(nextState: WorkbenchState, artifactPath: string): string | null {CODE
LOWworkbench-web/src/main.tsx1827 async function removeCloudStorageCredential(settingsRecordId: string) {CODE
LOWworkbench-web/src/main.tsx2085 async function updateWorkbenchPlanActionFromPreview(plan: WorkbenchGeneratedPlan, action: WorkbenchPlanAction) {CODE
LOWworkbench-web/src/main.tsx2101 async function updateWorkbenchPlanStepFromPreview(plan: WorkbenchGeneratedPlan, stepTitle: string, status: WorkbenchPlaCODE
LOWworkbench-web/src/main.tsx2117 async function requestReviewFromComposer() {CODE
LOWworkbench-web/src/main.tsx2333 async function manageNotebookEnvironment() {CODE
LOWworkbench-web/src/main.tsx2380 async function handleComputeProviderAction(provider: WorkbenchComputeProvider, action: ComputeProviderAction) {CODE
LOWworkbench-web/src/main.tsx2656 async function retryApprovedConnectorCall(activity: ToolActivityView) {CODE
LOWworkbench-web/src/main.tsx5923function WorkbenchPlanArtifactPreview({CODE
LOWworkbench-web/src/main.tsx6050function SpreadsheetArtifactPreview({ artifact }: { artifact: WorkbenchArtifact }) {CODE
LOWworkbench-web/src/main.tsx7293function MediaAnnotationDraftMarker({ selection }: { selection: ArtifactAnchorSelection }) {CODE
LOWworkbench-web/src/notebook.ts16export function notebookEnvironmentLanguages(): NotebookEnvironmentLanguage[] {CODE
LOWworkbench-web/src/notebook.ts20export function normalizeNotebookPackageInput(value: string): string[] {CODE
LOWworkbench-web/src/notebook.ts24export function notebookEnvironmentActionLabel(CODE
LOWworkbench-web/src/artifacts.ts1365export function artifactExecutionsForPath(state: WorkbenchState, path: string): WorkbenchExecutionRecord[] {CODE
LOWworkbench-web/src/tensor-preview.ts255export async function parseTensorArchivePreview(CODE
LOWworkbench-web/src/tool-activity.ts80function permissionResourceForScope(groups: WorkbenchResourceGroup[], scope: string): WorkbenchResource | undefined {CODE
LOWworkbench-web/src/tool-activity.ts111export function connectorApprovalScopeFromText(value: string | undefined): string | undefined {CODE
LOWworkbench-web/src/tool-activity.ts126export function parseConnectorApprovalScope(scope: string | undefined): { connectorId: string; toolName: string } | undeCODE
LOWworkbench-web/src/tool-activity.ts135export function connectorApprovalForEvent(CODE
LOWworkbench-web/src/tool-activity.ts206export function connectorApprovalRetryPrompt(approval: ConnectorApprovalView, input?: string): string {CODE
LOWworkbench-web/src/artifact-refinement.ts75export function artifactAnnotationsForPath(CODE
LOWworkbench-web/src/artifact-refinement.ts105export function textSelectionFromSelectedText(content: string, selectedText: string): ArtifactTextSelection | null {CODE
LOWworkbench-web/src/artifact-refinement.ts181export function canSuggestArtifactRefinement(selection: ArtifactAnchorSelection): selection is ArtifactTextSelection {CODE
LOWworkbench-web/src/science-viewers.tsx164function applyTidyTreeInitialTransform(container: HTMLElement, layout: TidyTreeLayout): { k: number; x: number; y: numbeCODE
LOWworkbench-web/src/artifact-actions.ts60export function artifactEditDisabledReason(artifact: WorkbenchArtifact): string {CODE
LOWworkbench-web/src/artifact-actions.ts76export function artifactVersionActionBody(version: WorkbenchArtifactVersion): { artifactPath: string; versionId: string CODE
LOWworkbench-web/src/artifact-actions.ts107export function configuredCloudExportTarget(targets: WorkbenchCloudExportTarget[]): WorkbenchCloudExportTarget | null {CODE
LOWworkbench-web/src/files.ts55export function primaryArtifactPathForRun(run: WorkbenchRun | undefined): string | null {CODE
LOWworkbench-web/src/files.ts59export function defaultArtifactPathForRun(state: WorkbenchState, run: WorkbenchRun | undefined): string | null {CODE
LOWworkbench-web/src/files.ts102export function filterArtifactsForBrowser(CODE
LOWextensions/research-tools/feynman-model.ts73function serializeFrontmatterDocument(document: FrontmatterDocument): string {CODE
LOWextensions/research-tools/feynman-model.ts224export function registerFeynmanModelCommand(pi: ExtensionAPI): void {CODE
LOW…research-tools/science-database-chemistry-reference.ts304function normalizePubchemInformation(info: Record<string, unknown>): Record<string, unknown> {CODE
LOW…research-tools/science-database-chemistry-reference.ts573export async function searchChemistryReferenceScienceDatabase(params: SearchParams): Promise<Record<string, unknown>> {CODE
LOWextensions/research-tools/science-database-unibind.ts20export function isUniBindScienceDatabaseSource(source: string): source is UniBindScienceDatabaseSource {CODE
408 more matches not shown…
Structural Annotation Overuse11 hits · 16 pts
SeverityFileLineSnippetContext
LOWprompts/deepresearch.md36## Step 1: PlanCOMMENT
LOWprompts/deepresearch.md56## Step 2: ScaleCOMMENT
LOWprompts/deepresearch.md70## Step 3: Gather EvidenceCOMMENT
LOWprompts/deepresearch.md108## Step 4: DraftCOMMENT
LOWprompts/deepresearch.md126## Step 5: CiteCOMMENT
LOWprompts/deepresearch.md148## Step 6: ReviewCOMMENT
LOWprompts/deepresearch.md176## Step 7: DeliverCOMMENT
LOWprompts/autoresearch.md22## Step 1: GatherCOMMENT
LOWprompts/autoresearch.md34## Step 2: EnvironmentCOMMENT
LOWprompts/autoresearch.md46## Step 3: ConfirmCOMMENT
LOWprompts/autoresearch.md60## Step 4: RunCOMMENT
Synthetic Comment Markers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHCHANGELOG.md1674- Verified: Local model state showed default provider/model `openai`/`gpt-5.5-pro`; `feynman model list` showed `openai/CODE
HIGHtests/model-harness.test.ts212 "Model synthesis: generated by openai/gpt-5 (recommended current research model; resolved openai/gpt-5); /tmp/example-CODE
HIGHtests/model-harness.test.ts230 "Model synthesis: generated by openai/gpt-5 (explicit override; resolved openai/gpt-5)",CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMRELEASES.md209- Fixed `alpha_search` returning empty results in every mode (#167). alphaXiv search tools now return structured JSON inCODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpackage-lock.json10743 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.astro/types.d.ts1/// <reference types="astro/client" />COMMENT
LOWwebsite/.astro/types.d.ts1/// <reference types="astro/client" />COMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/workbench/notebook-kernels.ts116 except Exception as exc:CODE
LOWsrc/workbench/notebook-kernels.ts129 except Exception:CODE