Repository Analysis

Narcooo/inkos

Story Creation AI Agent for novel, scripts, translation, interactive games, and IP content

2.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Narcooo/inkos, a TypeScript project with 7,974 GitHub stars. SynthScan v2.0 examined 173,941 lines of code across 753 source files, recording 429 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 2.9 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).

2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-07-12
Last Push
8.0K
Stars
TypeScript
Language
173.9K
Lines of Code
753
Files
429
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 5MEDIUM 7LOW 417

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 429 distinct pattern matches across 9 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 Identifiers369 hits · 371 pts
SeverityFileLineSnippetContext
LOWpackages/studio/src/components/chat-utils.ts21export function coerceSharedSessionMessages(CODE
LOWpackages/studio/src/components/chat-utils.ts49export function formatSharedSessionContext(meta: SharedSessionMeta): string {CODE
LOW…ages/studio/src/components/chat/ToolExecutionSteps.tsx192export function getGeneratedArtifactDetails(exec: ToolExecution): GeneratedArtifactDetails | null {CODE
LOW…ages/studio/src/components/chat/ToolExecutionSteps.tsx224function ScriptStoryboardResultPreview({ exec, onOpenFilmStudio }: { exec: ToolExecution; onOpenFilmStudio?: (projectId:CODE
LOW…ages/studio/src/components/chat/ToolExecutionSteps.tsx289function ShortFictionResultPreview({ exec }: { exec: ToolExecution }) {CODE
LOW…ages/studio/src/components/chat/ToolExecutionSteps.tsx480export function getProposedActionContractRows(details: ProposedActionDetails): ReadonlyArray<{ label: string; value: strCODE
LOW…ages/studio/src/components/chat/ToolExecutionSteps.tsx855export function groupToolExecutionsChronologically(executions: ToolExecution[]): RenderGroup[] {CODE
LOWpackages/studio/src/hooks/use-book-activity.ts149export function shouldRefetchBookCollections(message: SSEMessage | undefined): boolean {CODE
LOWpackages/studio/src/hooks/use-book-activity.ts153export function shouldRefetchDaemonStatus(message: SSEMessage | undefined): boolean {CODE
LOWpackages/studio/src/lib/error-copy.ts33export function localizeKnownRuntimeMessage(message: string): string {CODE
LOWpackages/studio/src/api/server.ts498function normalizeStudioSessionKind(value: unknown, fallback: SessionKind): SessionKind {CODE
LOWpackages/studio/src/api/server.ts507function normalizeStudioActionSource(value: unknown): ActionSource {CODE
LOWpackages/studio/src/api/server.ts515function normalizeStudioRequestedIntent(value: unknown): RequestedIntent | undefined {CODE
LOWpackages/studio/src/api/server.ts523function normalizeStudioActionPayload(value: unknown): ActionPayload | undefined {CODE
LOWpackages/studio/src/api/server.ts532function normalizeStudioSkillIdList(value: unknown, field: string): string[] {CODE
LOWpackages/studio/src/api/server.ts1801function normalizeChapterReviewMode(mode: unknown): ChapterReviewMode {CODE
LOWpackages/studio/src/api/server.ts1805function readProjectChapterReviewMode(config: Record<string, unknown>): ChapterReviewMode {CODE
LOWpackages/studio/src/api/server.ts1812function readBookChapterReviewMode(rawBook: Record<string, unknown>): ChapterReviewMode | undefined {CODE
LOWpackages/studio/src/api/server.ts418function normalizeProjectGeneratedPath(root: string, rawPath: string, code: string): { readonly relPath: string; readonlCODE
LOWpackages/studio/src/api/server.ts449function resolveProjectTextArtifactFile(root: string, rawPath: string): { readonly relPath: string; readonly resolved: sCODE
LOWpackages/studio/src/api/server.ts471function hasSuccessfulSubAgentExec(CODE
LOWpackages/studio/src/api/server.ts591async function normalizeAgentAttachments(CODE
LOWpackages/studio/src/api/server.ts867function parseReplacementInstruction(instruction: string): { oldText: string; newText: string } | null {CODE
LOWpackages/studio/src/api/server.ts883function isExplicitExternalChatEditInstruction(instruction: string): boolean {CODE
LOWpackages/studio/src/api/server.ts895function parseChapterNumberForEdit(instruction: string): number | null {CODE
LOWpackages/studio/src/api/server.ts918function resolveExternalChatEditPath(root: string, requestedPath: string): { path: string; rel: string } {CODE
LOWpackages/studio/src/api/server.ts949function parseBookChapterFromRelativePath(rel: string): { bookId: string; chapterNumber: number } | null {CODE
LOWpackages/studio/src/api/server.ts991async function tryHandleExternalChatEdit(params: {CODE
LOWpackages/studio/src/api/server.ts1071function validateAgentActionExecution(args: {CODE
LOWpackages/studio/src/api/server.ts1220function suppressManualTextForTool(exec: CollectedToolExec): boolean {CODE
LOWpackages/studio/src/api/server.ts1229function manualToolAssistantMessage(CODE
LOWpackages/studio/src/api/server.ts1264function isConfirmedProductionAction(args: {CODE
LOWpackages/studio/src/api/server.ts1297async function executeConfirmedProductionAction(args: {CODE
LOWpackages/studio/src/api/server.ts1644function resolveArchitectBookIdFromArgs(args?: Record<string, unknown>): string | null {CODE
LOWpackages/studio/src/api/server.ts1653function resolveCreatedBookIdFromToolExecs(execs: ReadonlyArray<CollectedToolExec>): string | null {CODE
LOWpackages/studio/src/api/server.ts1666function resolveCreatedBookIdFromDetails(details: Readonly<Record<string, unknown>> | undefined): string | null {CODE
LOWpackages/studio/src/api/server.ts1673async function loadStudioBookListSummary(CODE
LOWpackages/studio/src/api/server.ts1825async function resolveBookChapterReviewMode(root: string, bookId: string | undefined, projectMode: ChapterReviewMode): PCODE
LOWpackages/studio/src/api/server.ts1939async function readEffectiveEnvConfigValues(root: string): Promise<{ source: "project" | "global"; values: EnvConfigValuCODE
LOWpackages/studio/src/api/server.ts1947async function resolveConfiguredServiceBaseUrl(root: string, serviceId: string, inlineBaseUrl?: string): Promise<string CODE
LOWpackages/studio/src/api/server.ts1964async function resolveConfiguredServiceEntry(root: string, serviceId: string): Promise<ServiceConfigEntry | undefined> {CODE
LOWpackages/studio/src/api/server.ts2036function radarTimestampForFilename(value: string | undefined): string {CODE
LOWpackages/studio/src/api/server.ts2098function fallbackTextModelsForEndpoint(CODE
LOWpackages/studio/src/api/server.ts2111function shouldTrustStaticModelsWhenLiveListUnavailable(endpoint: ReturnType<typeof getAllEndpoints>[number] | undefinedCODE
LOWpackages/studio/src/api/server.ts2219async function fetchModelsFromServiceBaseUrl(CODE
LOWpackages/studio/src/pages/prompt-pack-ui-state.ts31export function groupPromptPacksForDisplay(input: PromptPacksResponse): PromptPackDisplayGroup[] {CODE
LOWpackages/studio/src/pages/prompt-pack-ui-state.ts63function sortPromptsByPackManifest(CODE
LOWpackages/studio/src/pages/chat-page-state.ts124export function shouldShowPlayChoicePanel(input: {CODE
LOWpackages/studio/src/pages/StoryGraphTree.tsx17export function buildProjectExportDownloadUrl(projectId: string): string | null {CODE
LOWpackages/studio/src/pages/service-detail-state.ts64export async function rehydrateServiceConnectionStatus(args: {CODE
LOWpackages/studio/src/pages/service-detail-state.ts92export function matchServiceConfigEntryForDetail(CODE
LOWpackages/studio/src/pages/BookCreate.tsx215export function defaultChapterWordsForLanguage(language: "zh" | "en"): string {CODE
LOWpackages/studio/src/pages/BookCreate.tsx230export function platformOptionsForLanguage(language: "zh" | "en"): ReadonlyArray<PlatformOption> {CODE
LOWpackages/studio/src/pages/BookCreate.tsx400export function buildCreationDraftSummary(CODE
LOWpackages/studio/src/pages/BookCreate.tsx454export function buildBookCreateAgentRequest(CODE
LOWpackages/studio/src/pages/BookCreate.tsx478export async function ensureBookCreateSessionId(CODE
LOWpackages/studio/src/store/preferences/store.ts28export function readStoredToolDetailsDefaultOpen(CODE
LOWpackages/studio/src/store/chat/message-policy.ts3export function shouldRefreshSidebarForTool(toolName: string): boolean {CODE
LOWpackages/studio/src/store/chat/parts-builder.ts125function applyContextCompressionEvent(parts: MessagePart[], event: ContextCompressionStreamEvent): void {CODE
LOW…/studio/src/store/chat/slices/message/stream-events.ts97export function createStreamTextDeltaBatcher(CODE
309 more matches not shown…
Verbosity Indicators19 hits · 40 pts
SeverityFileLineSnippetContext
LOWpackages/studio/e2e/authoring-confirm.spec.ts25 // Step 1: navigate to the film tree pageCOMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts33 // Step 2: click the authoring button → navigates to #/film-author/<id>COMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts42 // Step 3: type the instruction and press Enter to sendCOMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts46 // Step 4: wait for the agent to stream and render the proposed-action card.COMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts52 // Step 5: click the confirm buttonCOMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts55 // Step 6: cross-check via the graph API endpoint.COMMENT
LOWpackages/studio/e2e/export.spec.ts19 // Step 1: fetch the exported HTML from the server.COMMENT
LOWpackages/studio/e2e/export.spec.ts25 // Step 2: load the raw HTML string into a blank page (no server connection).COMMENT
LOWpackages/studio/e2e/export.spec.ts29 // Step 3: the embedded player must have bootstrapped with no server.COMMENT
LOWpackages/studio/e2e/export.spec.ts32 // Step 4: click the single choice in the start node.COMMENT
LOWpackages/studio/e2e/export.spec.ts37 // Step 5: the ending screen must appear.COMMENT
LOW…es/studio/src/__tests__/authoring-confirm-flow.test.ts39 // Step 1: free-text instruction → stubbed agent proposes draft_structure via propose_actionCOMMENT
LOW…es/studio/src/__tests__/authoring-confirm-flow.test.ts53 // Step 2: confirm the proposed action → executeConfirmedProductionAction runs draft_structureCOMMENT
LOWpackages/core/src/pipeline/runner.ts955 // Step 1: Import source material → fanfic_canon.mdCOMMENT
LOWpackages/core/src/pipeline/runner.ts959 // Step 2: Generate foundation with review loopCOMMENT
LOWpackages/core/src/pipeline/runner.ts989 // Step 3: Generate style guide from source materialCOMMENT
LOWpackages/core/src/pipeline/runner.ts995 // Step 4: Initialize chapters directory + snapshotCOMMENT
LOWpackages/core/src/pipeline/runner.ts2742 // Step 1: Generate foundation on first run (not on resume)COMMENT
LOWpackages/core/src/pipeline/runner.ts2788 // Step 2: Sequential replayCOMMENT
Structural Annotation Overuse19 hits · 40 pts
SeverityFileLineSnippetContext
LOWpackages/studio/e2e/authoring-confirm.spec.ts25 // Step 1: navigate to the film tree pageCOMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts33 // Step 2: click the authoring button → navigates to #/film-author/<id>COMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts42 // Step 3: type the instruction and press Enter to sendCOMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts46 // Step 4: wait for the agent to stream and render the proposed-action card.COMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts52 // Step 5: click the confirm buttonCOMMENT
LOWpackages/studio/e2e/authoring-confirm.spec.ts55 // Step 6: cross-check via the graph API endpoint.COMMENT
LOWpackages/studio/e2e/export.spec.ts19 // Step 1: fetch the exported HTML from the server.COMMENT
LOWpackages/studio/e2e/export.spec.ts25 // Step 2: load the raw HTML string into a blank page (no server connection).COMMENT
LOWpackages/studio/e2e/export.spec.ts29 // Step 3: the embedded player must have bootstrapped with no server.COMMENT
LOWpackages/studio/e2e/export.spec.ts32 // Step 4: click the single choice in the start node.COMMENT
LOWpackages/studio/e2e/export.spec.ts37 // Step 5: the ending screen must appear.COMMENT
LOW…es/studio/src/__tests__/authoring-confirm-flow.test.ts39 // Step 1: free-text instruction → stubbed agent proposes draft_structure via propose_actionCOMMENT
LOW…es/studio/src/__tests__/authoring-confirm-flow.test.ts53 // Step 2: confirm the proposed action → executeConfirmedProductionAction runs draft_structureCOMMENT
LOWpackages/core/src/pipeline/runner.ts955 // Step 1: Import source material → fanfic_canon.mdCOMMENT
LOWpackages/core/src/pipeline/runner.ts959 // Step 2: Generate foundation with review loopCOMMENT
LOWpackages/core/src/pipeline/runner.ts989 // Step 3: Generate style guide from source materialCOMMENT
LOWpackages/core/src/pipeline/runner.ts995 // Step 4: Initialize chapters directory + snapshotCOMMENT
LOWpackages/core/src/pipeline/runner.ts2742 // Step 1: Generate foundation on first run (not on resume)COMMENT
LOWpackages/core/src/pipeline/runner.ts2788 // Step 2: Sequential replayCOMMENT
Magic Placeholder Names5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHpackages/cli/src/project-bootstrap.ts13 return content.includes("INKOS_LLM_API_KEY=") && !content.includes("your-api-key-here");CODE
HIGHpackages/cli/src/tui/setup.ts326 return !!match && match[1]!.trim().length > 0 && !match[1]!.includes("your-api-key");CODE
HIGHpackages/cli/src/tui/setup.ts379 if (!key || key.includes("your-api-key")) return undefined;CODE
HIGHpackages/cli/src/commands/doctor.ts162 hasGlobal = globalContent.includes("INKOS_LLM_API_KEY=") && !globalContent.includes("your-api-key-here");CODE
HIGHpackages/cli/src/commands/doctor.ts193 const hasKey = apiKeyOptional || (!!apiKey && apiKey.length > 10 && apiKey !== "your-api-key-here");CODE
Decorative Section Separators5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMpackages/core/src/utils/chapter-cadence.ts205// ── Helpers ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/__tests__/provider.test.ts9// ── Mock @mariozechner/pi-ai ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/__tests__/provider.test.ts26// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/__tests__/provider.test.ts139// ── Tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/__tests__/provider.test.ts864// ── 回归测试:per-call maxTokens 不被裁剪(v2.0.0 精简版)─────────────COMMENT
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWpackages/studio/src/api/server.ts2761COMMENT
LOWpackages/core/src/llm/provider.ts301 if (!RESERVED_KEYS.has(key)) result[key] = value;COMMENT
LOWpackages/core/src/agents/architect.ts21//COMMENT
LOWpackages/core/src/agents/architect.ts41//COMMENT
LOWpackages/core/src/agents/architect.ts681 const rolesRaw = parsedSections.get("roles") ?? "";COMMENT
LOWpackages/core/src/utils/chapter-memo-parser.ts1import { ChapterMemoSchema, type ChapterMemo } from "../models/input-governance.js";COMMENT
LOWpackages/core/src/utils/outline-paths.ts221 return blocks.join("\n\n");COMMENT
LOW…re/src/__tests__/architect-phase5-consolidated.test.ts21// append to.COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/studio/src/lib/truth-display.ts216// reader-facing; parse the table by header name (robust to column reordering)COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…ges/core/src/__tests__/agent-tools-en-language.test.ts108 getEnvApiKey: vi.fn(() => "fake-key"),CODE
LOWpackages/core/src/__tests__/agent-session.test.ts179 getEnvApiKey: vi.fn(() => "fake-key"),CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpackages/core/src/__tests__/writer.test.ts1438 expect(systemPrompt).toContain("Real hook_id"); // English book gets the English output scaffoldCODE