OpenWiki is a CLI that writes and maintains agent documentation for your codebase.
This report presents the forensic synthetic code analysis of langchain-ai/openwiki, a TypeScript project with 11,151 GitHub stars. SynthScan v2.0 examined 28,843 lines of code across 88 source files, recording 107 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 3.8 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 107 distinct pattern matches across 3 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 | test/openai-chatgpt-credentials.test.ts | 57 | function configureValidChatGptSession(): void { | CODE |
| LOW | src/schedules.ts | 119 | export function getSuggestedCronExpression( | CODE |
| LOW | src/schedules.ts | 348 | export async function installOpenWikiPowerSchedule( | CODE |
| LOW | src/schedules.ts | 405 | export function getSavedPowerScheduleStatus( | CODE |
| LOW | src/schedules.ts | 424 | async function reconcileOpenWikiPowerSchedule( | CODE |
| LOW | src/schedules.ts | 480 | async function cancelOpenWikiPowerSchedule(): Promise<PowerScheduleInstallResult> { | CODE |
| LOW | src/schedules.ts | 515 | function hasActiveIngestionSchedule(config: OpenWikiOnboardingConfig): boolean { | CODE |
| LOW | src/schedules.ts | 571 | function parseLaunchdCalendarInterval( | CODE |
| LOW | src/schedules.ts | 643 | function getPowerWindowForConfiguredSchedules( | CODE |
| LOW | src/commands.ts | 549 | export function shouldRunNonInteractively( | CODE |
| LOW | src/cli.tsx | 923 | function CredentialDiagnosticsPanel({ | CODE |
| LOW | src/cli.tsx | 1286 | function getActiveRunningToolLogId(log: RunLogItem[]): number | null { | CODE |
| LOW | src/cli.tsx | 2436 | function getCurrentModelOptionIndex( | CODE |
| LOW | src/cli.tsx | 2450 | function getCurrentProviderOptionIndex( | CODE |
| LOW | src/cli.tsx | 2549 | function updateRunningCredentialDiagnostics( | CODE |
| LOW | src/cli.tsx | 3057 | function shouldShowCredentialDiagnostics(): boolean { | CODE |
| LOW | src/cli.tsx | 3151 | function addAttachedDebugDiagnostics( | CODE |
| LOW | src/cli.tsx | 3168 | function addOpenRouterMetadataDiagnostics( | CODE |
| LOW | src/cli.tsx | 3194 | function addMetadataValueDiagnostic( | CODE |
| LOW | src/cli.tsx | 3212 | function addPreviousErrorDiagnostics( | CODE |
| LOW | src/cli.tsx | 3240 | function formatDiagnosticMetadataValue(value: unknown): string { | CODE |
| LOW | src/cli.tsx | 3256 | function createDiagnosticJsonReplacer() { | CODE |
| LOW | src/cli.tsx | 3540 | function formatScheduleMutationResult( | CODE |
| LOW | src/cli.tsx | 3593 | function formatPowerScheduleStatus( | CODE |
| LOW | src/cli.tsx | 3868 | function writePrintErrorDiagnostics(error: unknown): void { | CODE |
| LOW | src/credentials.tsx | 1520 | async function saveSelectedSourceDescription(description: string) { | CODE |
| LOW | src/credentials.tsx | 1600 | function continueAfterCodeRepoConfirmed(repoRoot: string) { | CODE |
| LOW | src/credentials.tsx | 1740 | function continueAfterSourceCredentialSetup(source: SourceSetupOption) { | CODE |
| LOW | src/credentials.tsx | 3049 | function getSingleLineInputDisplayValue( | CODE |
| LOW | src/credentials.tsx | 3409 | function hasValidConfiguredProvider(): boolean { | CODE |
| LOW | src/credentials.tsx | 3441 | function shouldStartWithCustomModelInput(provider: OpenWikiProvider): boolean { | CODE |
| LOW | src/credentials.tsx | 3466 | function getProviderSelectionIndex(provider: OpenWikiProvider): number { | CODE |
| LOW | src/credentials.tsx | 3545 | function getSourceDescriptionPrompt(source: SourceSetupOption): string { | CODE |
| LOW | src/credentials.tsx | 3572 | function getSourceDescriptionOptionCount(source: SourceSetupOption): number { | CODE |
| LOW | src/credentials.tsx | 3707 | function getDefaultLocalGitRepoPath(): string { | CODE |
| LOW | src/credentials.tsx | 3711 | function getDefaultCodeRepoRootPath(): string { | CODE |
| LOW | src/credentials.tsx | 3732 | async function validateLocalDirectoryPath(value: string): Promise<string> { | CODE |
| LOW | src/fs-errors.ts | 26 | export function isExpectedSnapshotRaceError(error: unknown): boolean { | CODE |
| LOW | src/code-mode.ts | 35 | async function writeCodeModeAgentSnippets(cwd: string): Promise<void> { | CODE |
| LOW | src/code-mode.ts | 45 | async function writeCodeModeAgentSnippet( | CODE |
| LOW | src/code-mode.ts | 124 | function createCodeModeAgentsSnippet(): string { | CODE |
| LOW | src/constants.ts | 327 | export function resolveConfiguredProvider( | CODE |
| LOW | src/constants.ts | 352 | export function resolveProviderRetryAttempts( | CODE |
| LOW | src/onboarding.ts | 65 | export function createEmptyOnboardingConfig(): OpenWikiOnboardingConfig { | CODE |
| LOW | src/onboarding.ts | 73 | export async function readOpenWikiOnboardingConfig(): Promise<OpenWikiOnboardingConfig> { | CODE |
| LOW | src/onboarding.ts | 97 | export async function saveOpenWikiOnboardingConfig( | CODE |
| LOW | src/onboarding.ts | 123 | export function getRepositoryWikiInstructionsPath(repoRoot: string): string { | CODE |
| LOW | src/onboarding.ts | 127 | export async function readRepositoryWikiInstructions( | CODE |
| LOW | src/onboarding.ts | 144 | function readRepositoryWikiInstructionsSync( | CODE |
| LOW | src/onboarding.ts | 157 | export async function saveRepositoryWikiInstructions( | CODE |
| LOW | src/onboarding.ts | 179 | export function isOpenWikiOnboardingCompleteSync(): boolean { | CODE |
| LOW | src/onboarding.ts | 196 | export function isRepositoryCodeOnboardingCompleteSync( | CODE |
| LOW | src/onboarding.ts | 244 | function normalizeOnboardingConfig(value: unknown): OpenWikiOnboardingConfig { | CODE |
| LOW | src/onboarding.ts | 384 | function normalizeSourceScheduleConfig( | CODE |
| LOW | src/onboarding.ts | 428 | function normalizePowerManagementConfig( | CODE |
| LOW | src/env.ts | 209 | function createCredentialDiagnostic( | CODE |
| LOW | src/startup.ts | 78 | async function canSkipCleanUpdateBeforeCredentials( | CODE |
| LOW | src/ingestion.ts | 206 | function resolveIngestionSourceInstances( | CODE |
| LOW | src/ingestion.ts | 254 | function createSourceUpdateMessage({ | CODE |
| LOW | src/ingestion.ts | 333 | function createSourceSynthesisPolicy(connectorId: ConnectorId): string { | CODE |
| 43 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pnpm-workspace.yaml | 21 | # Supply-chain hardening (see https://pnpm.io/supply-chain-security). | COMMENT |
| LOW | test/env-behavior.test.ts | 21 | // `loadOpenWikiEnv`, `saveOpenWikiEnv`, and `getCredentialDiagnostics` all read | COMMENT |
| LOW | test/connector-config-overrides.test.ts | 1 | import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises"; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | openwiki/integrations/connectors.md | 51 | ## Ingestion orchestration | COMMENT |