The open source AI research agent.
This report summarizes scanner evidence for companion-inc/feynman, a TypeScript project with 10,048 GitHub stars. SynthScan examined 49,503 lines of code across 210 source files, recording 74 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.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.
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? 74 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 61 finding(s).
Which changes need focused human review? 74 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 74 distinct pattern matches across 4 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 | extensions/research-tools/science-database-openalex.ts | 14 | export function isOpenAlexScienceDatabaseSource(source: string): source is OpenAlexScienceDatabaseSource { | CODE |
| LOW | extensions/research-tools/ncbi-rate-limit.ts | 45 | export function resetNcbiRateLimitForTests(): void { | CODE |
| LOW | extensions/research-tools/service-tier.ts | 27 | function resolveFeynmanSettingsPath(): string { | CODE |
| LOW | extensions/research-tools/service-tier.ts | 66 | function resolveProviderServiceTier( | CODE |
| LOW | extensions/research-tools/service-tier.ts | 100 | export function registerServiceTierControls(pi: ExtensionAPI): void { | CODE |
| LOW | extensions/research-tools/science-database-pubmed.ts | 23 | export function setRequestTimeoutForTests(ms: number): void { | CODE |
| LOW | extensions/research-tools/current-date.ts | 3 | export function buildCurrentDateResearchContext(now: Date): string { | CODE |
| LOW | extensions/research-tools/current-date.ts | 14 | export function registerCurrentDateResearchContext( | CODE |
| LOW | extensions/research-tools/telemetry.ts | 41 | export function resolveResearchTelemetryConfig(env: NodeJS.ProcessEnv = process.env): ResearchTelemetryConfig | undefine | CODE |
| LOW | extensions/research-tools/telemetry.ts | 139 | export function registerResearchTelemetry( | CODE |
| LOW | extensions/research-tools/project-scaffold.ts | 1 | export function buildProjectAgentsTemplate(): string { | CODE |
| LOW | extensions/research-tools/discovery.ts | 54 | export function registerDiscoveryCommands(pi: ExtensionAPI): void { | CODE |
| LOW | extensions/research-tools/science-databases.ts | 296 | export function parseSemanticScholarQuery(raw: string): { query: string; year?: string } { | CODE |
| LOW | extensions/research-tools/science-databases.ts | 424 | async function semanticScholarByArxivIds(ids: string[]): Promise<Record<string, unknown>> { | CODE |
| LOW | extensions/research-tools/science-databases.ts | 501 | export function registerScienceDatabaseTools(pi: ExtensionAPI): void { | CODE |
| LOW | src/cli.ts | 140 | export function resolveBundledAlphaCliPath(appRoot: string): string { | CODE |
| LOW | src/cli.ts | 165 | export function resolveAlphaPassthroughArgs(rawArgs: string[], defaultCwd = process.cwd()): AlphaPassthroughArgs | undef | CODE |
| LOW | src/cli.ts | 475 | export function buildLocalModelWorkflowNotice(modelSpec: string, workflowName: string): string { | CODE |
| LOW | src/cli.ts | 483 | export function appendWorkflowFlagPositionals( | CODE |
| LOW | src/cli.ts | 513 | export async function shouldRunInteractiveSetup( | CODE |
| LOW | src/setup/doctor.ts | 20 | async function findProvidersMissingApiKey(modelRuntime: ModelRuntime, authPath: string): Promise<string[]> { | CODE |
| LOW | src/setup/setup.ts | 36 | function printNonInteractiveSetupGuidance(): void { | CODE |
| LOW | src/setup/setup.ts | 45 | async function maybeInstallOptionalPackages(options: SetupOptions): Promise<void> { | CODE |
| LOW | src/setup/setup.ts | 98 | async function maybeInstallPreviewDependencies(): Promise<void> { | CODE |
| LOW | src/setup/prompts.ts | 32 | export function nonInteractiveTerminalMessage(env: NodeJS.ProcessEnv = process.env, platform = process.platform): string | CODE |
| LOW | src/setup/prompts.ts | 50 | function ensureInteractiveTerminal(): void { | CODE |
| LOW | src/system/self-update.ts | 22 | export async function fetchLatestFeynmanVersion(timeoutMs = 5000): Promise<string | undefined> { | CODE |
| LOW | src/system/node-version.ts | 29 | export function getUnsupportedNodeVersionLines(version = process.versions.node): string[] { | CODE |
| LOW | src/system/node-version.ts | 42 | export function ensureSupportedNodeVersion(version = process.versions.node): void { | CODE |
| LOW | src/pi/settings.ts | 186 | function removeLegacyResearcherExtension(settings: Record<string, unknown>): void { | CODE |
| LOW | src/pi/settings.ts | 202 | export function feynmanSubagentExtensions(appRoot: string): string[] { | CODE |
| LOW | src/pi/settings.ts | 207 | function isFeynmanSubagentExtension(path: unknown): boolean { | CODE |
| LOW | src/pi/settings.ts | 224 | function updateSettingsWithoutPiSetter(settingsPath: string, appRoot: string, defaults: Record<string, unknown>): void { | CODE |
| LOW | src/pi/runtime.ts | 89 | export function ensureFeynmanWorkspaceScaffold( | CODE |
| LOW | src/pi/packages.ts | 22 | export function normalizeOptionalPackagePresetName(name: string): OptionalPackagePresetName | undefined { | CODE |
| LOW | src/pi/packages.ts | 27 | export function listOptionalPackagePresets() { | CODE |
| LOW | src/pi/web-access.ts | 155 | export function formatPiWebAccessDoctorLines( | CODE |
| LOW | src/model/commands.ts | 112 | export async function resolveModelProviderForCommand( | CODE |
| LOW | src/model/commands.ts | 189 | function normalizeCustomProviderBaseUrl( | CODE |
| LOW | src/model/commands.ts | 254 | async function bestEffortFetchOpenAiModelIds( | CODE |
| LOW | src/model/commands.ts | 283 | async function promptCustomProviderSetup(): Promise<CustomProviderSetup | undefined> { | CODE |
| LOW | src/model/commands.ts | 395 | async function promptLmStudioProviderSetup(): Promise<CustomProviderSetup | undefined> { | CODE |
| LOW | src/model/commands.ts | 433 | async function promptLiteLlmProviderSetup(): Promise<CustomProviderSetup | undefined> { | CODE |
| LOW | src/model/commands.ts | 616 | async function maybeSetRecommendedDefaultModel(settingsPath: string | undefined, authPath: string): Promise<void> { | CODE |
| LOW | src/model/commands.ts | 762 | async function resolveAvailableModelSpec(authPath: string, input: string): Promise<string | undefined> { | CODE |
| LOW | src/model/commands.ts | 826 | export async function authenticateModelProvider(authPath: string, settingsPath?: string): Promise<boolean> { | CODE |
| LOW | src/model/commands.ts | 853 | export async function getOrCreateDeviceId(authPath: string): Promise<string> { | CODE |
| LOW | src/model/commands.ts | 864 | export function describeOAuthLoginFailure(providerId: string, error: unknown): unknown { | CODE |
| LOW | src/model/commands.ts | 1003 | async function describeUnavailableModelSpec(authPath: string, spec: string): Promise<string> { | CODE |
| LOW | src/model/service-tier.ts | 56 | export function resolveProviderServiceTier( | CODE |
| LOW | src/model/catalog.ts | 176 | function compareByResearchPreference(left: ModelRecord, right: ModelRecord): number { | CODE |
| LOW | src/model/catalog.ts | 240 | function compareCurrentModelFamily(left: ModelRecord, right: ModelRecord): number { | CODE |
| LOW | src/model/catalog.ts | 383 | export async function getAuthenticatedModelRecords(authPath: string): Promise<ModelRecord[]> { | CODE |
| LOW | src/model/catalog.ts | 412 | export function buildModelStatusSnapshotFromRecords( | CODE |
| LOW | src/telemetry/posthog.ts | 54 | export function createTelemetryCircuitBreakerFetch( | CODE |
| LOW | src/telemetry/posthog.ts | 77 | function disableTelemetryAfterTransportFailure(error: unknown): void { | CODE |
| LOW | src/telemetry/posthog.ts | 159 | export function resolvePostHogTelemetryConfig(options: { | CODE |
| LOW | src/telemetry/posthog.ts | 216 | export function normalizeTelemetryProperties(properties: TelemetryProperties = {}): Record<string, string | number | boo | CODE |
| LOW | src/telemetry/posthog.ts | 252 | export function initializePostHogTelemetry(options: { | CODE |
| LOW | src/telemetry/posthog.ts | 299 | export async function captureTelemetryException(error: unknown, properties: TelemetryProperties = {}): Promise<void> { | CODE |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | prompts/deepresearch.md | 22 | ## Step 1: Plan | COMMENT |
| LOW | prompts/deepresearch.md | 36 | ## Step 2: Scale | COMMENT |
| LOW | prompts/deepresearch.md | 50 | ## Step 3: Gather Evidence | COMMENT |
| LOW | prompts/deepresearch.md | 88 | ## Step 4: Draft | COMMENT |
| LOW | prompts/deepresearch.md | 106 | ## Step 5: Cite | COMMENT |
| LOW | prompts/deepresearch.md | 129 | ## Step 6: Review | COMMENT |
| LOW | prompts/deepresearch.md | 156 | ## Step 7: Deliver | COMMENT |
| LOW | prompts/autoresearch.md | 11 | ## Step 1: Gather | COMMENT |
| LOW | prompts/autoresearch.md | 23 | ## Step 2: Environment | COMMENT |
| LOW | prompts/autoresearch.md | 35 | ## Step 3: Confirm | COMMENT |
| LOW | prompts/autoresearch.md | 49 | ## Step 4: Run | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | RELEASES.md | 1415 | - Fixed `alpha_search` returning empty results in every mode (#167). alphaXiv search tools now return structured JSON in | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extensions/research-tools/ncbi-rate-limit.ts | 1 | // NCBI limits E-utilities to 3 requests/sec/IP, or 10 with an API key. Pi runs | COMMENT |