Lean, fine tuned Opencode multi agent suite · Mix any models · Auto delegate tasks
This report presents the forensic synthetic code analysis of alvinunreal/oh-my-opencode-slim, a TypeScript project with 6,895 GitHub stars. SynthScan v2.0 examined 93,123 lines of code across 358 source files, recording 186 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.3 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 186 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 |
|---|---|---|---|---|
| MEDIUM | src/index.ts | 447 | // ── Health check: validate registrations ──────────────────────────── | COMMENT |
| MEDIUM | src/index.ts | 480 | // ── Probe jsdom (async, non-blocking) ─────────────────────────────── | COMMENT |
| MEDIUM | src/utils/background-job-coordinator.ts | 36 | // ── Terminal state notification (guaranteed delivery) ───────────── | COMMENT |
| MEDIUM | src/utils/background-job-coordinator.ts | 66 | // ── Lifecycle policy ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/utils/background-job-coordinator.ts | 97 | // ── Mutation methods (sole writer to board) ────────────────────── | COMMENT |
| MEDIUM | src/utils/background-job-coordinator.ts | 136 | // ── Query methods ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/utils/background-job-store.ts | 16 | // ── Mutation methods ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/utils/background-job-store.ts | 38 | // ── Query methods ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/utils/background-job-store.ts | 71 | // ── Lifecycle policy ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/utils/background-job-board.ts | 529 | // ── Lifecycle policy (board = no policy, always close) ─────────── | COMMENT |
| MEDIUM | src/interview/manager.ts | 26 | // ─── Per-session mode (upstream behavior) ─────────────────────── | COMMENT |
| MEDIUM | src/interview/manager.ts | 31 | // ─── Dashboard mode ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/document.ts | 12 | // ─── Path Utilities ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/document.ts | 95 | // ─── String Utilities ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/document.ts | 105 | // ─── Markdown Document Operations ──────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 31 | // ─── Auth Token File ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 96 | // ─── Helpers ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 136 | // ─── Types ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 145 | // ─── Config ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 162 | // ─── Dashboard Server ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 285 | // ─── Auth ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 312 | // ─── Session Discovery ─────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 359 | // ─── File Scanning ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 411 | // ─── Failover: rebuild state from .md frontmatter ────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 495 | // ─── Request Handler ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 512 | // ── Health check (no auth required) ──────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 528 | // ── API: settings (scan days, folders, discovery) ────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 584 | // ── Dashboard UI ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 629 | // ── API: list sessions (auth required) ────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 649 | // ── API: list files (auth required) ───────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 660 | // ── Auth gate for mutation endpoints ─────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 666 | // ── API: register session ────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 699 | // ── API: create interview ────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 747 | // ── API: SSE stream (browser → dashboard, real-time push) ──────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 804 | // ── API: push state (session → dashboard) ────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 948 | // ── API: submit answers (browser → dashboard) ────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1002 | // ── API: submit block comment (browser → dashboard) ──────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1081 | // ── API: submit chat message (browser → dashboard) ────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1190 | // ── API: nudge agent (browser → dashboard) ──────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1239 | // ── API: get nudge action (session polls, auth required) ────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1269 | // ── Interview page ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1287 | // ── 404 ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1291 | // ─── Server Lifecycle ──────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1370 | // ─── Public API ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1476 | // ─── Health Probe (for session processes) ───────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard.ts | 1499 | // ─── Try Become Dashboard (with jitter retry) ───────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard-manager.ts | 44 | // ── Timer-based fallback for nudge/answer polling ───────────── | COMMENT |
| MEDIUM | src/interview/dashboard-manager.ts | 77 | // ── We ARE the dashboard ──────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard-manager.ts | 132 | // ── We're a SESSION ───────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/dashboard-manager.ts | 225 | // ── Client Poll Implementations (polls dashboard server) ────────── | COMMENT |
| MEDIUM | src/interview/dashboard-manager.ts | 460 | // ─── Helpers ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/types.ts | 21 | // ─── Zod Schemas (for validating untrusted LLM output) ───────────── | COMMENT |
| MEDIUM | src/interview/types.ts | 38 | // ─── Interfaces ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/ui.ts | 15 | // ─── Shared client-side helpers ──────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/ui.ts | 45 | // ─── Shared styles ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/ui.ts | 115 | // ─── Dashboard brand image ───────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/ui.ts | 1391 | // ── Completed-mode helpers ─────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/ui.ts | 1589 | // ── TOC Sidebar ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/ui.ts | 1625 | // ── Chat Panel ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/interview/ui.ts | 1965 | // ── Real-time updates via SSE ───────────────────────────────── | COMMENT |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/verify-release-artifact.ts | 88 | function verifyDistHasNoLeakedPaths() { | CODE |
| LOW | src/index.ts | 510 | function resolveTuiVariantForModel( | CODE |
| LOW | src/tools/preset-manager.ts | 43 | async function handleCommandExecuteBefore( | CODE |
| LOW | src/tools/smartfetch/network.ts | 76 | export function canUseCanonicalCacheAlias(baseUrl: string, aliasUrl: string) { | CODE |
| LOW | src/tools/smartfetch/network.ts | 458 | function parseFilenameFromContentDisposition(value: string | null) { | CODE |
| LOW | src/tools/smartfetch/secondary-model.ts | 39 | function findPreferredOpenCodeConfigPath(baseDir: string) { | CODE |
| LOW | src/tools/smartfetch/secondary-model.ts | 59 | async function readEffectiveOpenCodeConfig(directory: string) { | CODE |
| LOW | src/tools/smartfetch/secondary-model.ts | 75 | export async function readSecondaryModelFromConfig(directory: string) { | CODE |
| LOW | src/tools/smartfetch/secondary-model.ts | 299 | export async function runSecondaryModelWithFallback( | CODE |
| LOW | src/tools/smartfetch/utils.ts | 229 | export function buildRedirectResultMessage( | CODE |
| LOW | src/tools/smartfetch/utils.ts | 344 | export function inferCanonicalUrlFromText(content: string, finalUrl: string) { | CODE |
| LOW | src/tools/smartfetch/utils.ts | 355 | export function extractHeadingsFromMarkdown(content: string) { | CODE |
| LOW | src/multiplexer/shared.ts | 24 | export function buildOpencodeAttachCommand( | CODE |
| LOW | src/multiplexer/shared.ts | 42 | export function resolveHostOpencodeBinary( | CODE |
| LOW | src/multiplexer/session-manager.ts | 82 | export function resetMultiplexerSessionManagerState(): void { | CODE |
| LOW | src/config/schema.ts | 328 | function rejectOrchestratorPromptOnOrchestrator( | CODE |
| LOW | src/config/loader.ts | 161 | function validateFinalImageRouting( | CODE |
| LOW | src/config/runtime-preset.ts | 29 | export function setActiveRuntimePresetWithPrevious(name: string | null): void { | CODE |
| LOW | src/config/strip-orchestrator-model.ts | 21 | export function applyOrchestratorModelConfig(input: { | CODE |
| LOW | src/agents/permissions.ts | 13 | export function createReadOnlyAgentPermission(): AgentPermission { | CODE |
| LOW | src/agents/index.ts | 50 | function getPrimaryModelFromOverride( | CODE |
| LOW | src/agents/index.ts | 64 | function getActivePresetPrimaryModel( | CODE |
| LOW | src/agents/index.ts | 228 | function buildCustomAgentDefinition( | CODE |
| LOW | src/utils/internal-initiator.ts | 9 | export function createInternalAgentTextPart(text: string): { | CODE |
| LOW | src/utils/agent-variant.ts | 72 | export function createDisplayNameMentionRewriter( | CODE |
| LOW | src/utils/councillor-models.ts | 19 | export function normalizeCouncillorModels( | CODE |
| LOW | src/utils/task.ts | 20 | export function parseTaskIdFromTaskOutput(output: string): string | undefined { | CODE |
| LOW | src/utils/task.ts | 91 | export function parseTaskResultFromOutput(output: string): string | undefined { | CODE |
| LOW | src/cli/install.ts | 148 | export async function configureBackgroundSubagents( | CODE |
| LOW | src/cli/install.ts | 288 | function handleOptionalCompanionResult(result: ConfigMergeResult): void { | CODE |
| LOW | src/cli/config-io.ts | 164 | function getPinnedVersionFromConfig(): string | undefined { | CODE |
| LOW | src/cli/config-io.ts | 202 | function getVersionFromPackageRoot(packageRoot: string): string | undefined { | CODE |
| LOW | src/cli/config-io.ts | 215 | function getOpenCodePluginCacheDir(version?: string): string { | CODE |
| LOW | src/cli/config-io.ts | 224 | function writeOpenCodePluginCacheManifest( | CODE |
| LOW | src/cli/config-io.ts | 253 | function removeOpenCodePluginCacheArtifacts(cacheDir: string): void { | CODE |
| LOW | src/cli/config-io.ts | 262 | function verifyOpenCodePluginCache(cacheDir: string): ConfigMergeResult | null { | CODE |
| LOW | src/cli/config-io.ts | 438 | export async function addPluginToOpenCodeConfig(): Promise<ConfigMergeResult> { | CODE |
| LOW | src/cli/config-io.ts | 485 | export async function addPluginToOpenCodeTuiConfig(): Promise<ConfigMergeResult> { | CODE |
| LOW | src/cli/background-subagents.ts | 12 | export function isBackgroundSubagentsEnabled( | CODE |
| LOW | src/cli/background-subagents.ts | 28 | export function detectBackgroundSubagentsTarget( | CODE |
| LOW | src/cli/background-subagents.ts | 47 | export function getBackgroundSubagentsBlock(targetPath: string): string { | CODE |
| LOW | src/cli/background-subagents.ts | 56 | export function manualBackgroundSubagentsInstructions(options?: { | CODE |
| LOW | src/cli/background-subagents.ts | 84 | export function upsertBackgroundSubagentsBlock( | CODE |
| LOW | src/cli/background-subagents.ts | 102 | export function writeBackgroundSubagentsBlock(targetPath: string): void { | CODE |
| LOW | src/cli/skills.ts | 35 | export function getSkillPermissionsForAgent( | CODE |
| LOW | src/cli/paths.ts | 5 | function getDefaultOpenCodeConfigDir(): string { | CODE |
| LOW | src/cli/paths.ts | 13 | function getCustomOpenCodeConfigDir(): string | undefined { | CODE |
| LOW | src/cli/paths.ts | 89 | export function getExistingLiteConfigPath(): string { | CODE |
| LOW | src/interview/document.ts | 21 | export function createInterviewDirectoryPath( | CODE |
| LOW | src/interview/document.ts | 52 | export function resolveExistingInterviewPath( | CODE |
| LOW | src/interview/dashboard.ts | 335 | async function discoverSessionDirectories(): Promise<void> { | CODE |
| LOW | src/interview/ui.ts | 1241 | function updateActiveQuestionFocus() { | CODE |
| LOW | src/interview/interview.test.ts | 60 | function extractInterviewIdFromLastPrompt(promptMock: { | CODE |
| LOW | src/interview/service.ts | 637 | async function handleCommandExecuteBefore( | CODE |
| LOW | src/interview/session-server.ts | 7 | export function createPerSessionInterviewServer( | CODE |
| LOW | src/hooks/auto-update-checker/checker.ts | 238 | export function getCurrentRuntimePackageJsonPath( | CODE |
| LOW | src/hooks/auto-update-checker/checker.ts | 406 | export async function getLatestCompatibleVersion( | CODE |
| LOW | src/hooks/auto-update-checker/checker.ts | 460 | async function getCompatibleFromDistTags( | CODE |
| LOW | src/hooks/auto-update-checker/skill-sync.ts | 551 | export function syncBundledSkillsFromPackage( | CODE |
| LOW | src/hooks/auto-update-checker/index.ts | 28 | export function createAutoUpdateCheckerHook( | CODE |
| 40 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/installation.md | 148 | ### Step 1: Check OpenCode Installation | COMMENT |
| LOW | docs/installation.md | 156 | ### Step 2: Run the Installer | COMMENT |
| LOW | docs/installation.md | 191 | ### Step 3: Authenticate with Providers | COMMENT |
| LOW | docs/installation.md | 200 | ### Step 4: Verify Installation | COMMENT |
| LOW | src/skills/codemap/SKILL.md | 18 | ### Step 1: Check for Existing State | COMMENT |
| LOW | src/skills/codemap/SKILL.md | 30 | ### Step 2: Initialize (Only if no state exists) | COMMENT |
| LOW | src/skills/codemap/SKILL.md | 55 | ### Step 3: Detect Changes (If state already exists) | COMMENT |
| LOW | src/skills/codemap/SKILL.md | 78 | ### Step 4: Finalize Repository Atlas (Root Codemap) | COMMENT |
| LOW | src/skills/codemap/SKILL.md | 86 | ### Step 5: Register Codemap in AGENTS.md | COMMENT |
| LOW | src/skills/clonedeps/SKILL.md | 18 | ### Step 1: Check Existing State | COMMENT |
| LOW | src/skills/clonedeps/SKILL.md | 32 | ### Step 2: Ask Librarian for the Clone Plan | COMMENT |
| LOW | src/skills/clonedeps/SKILL.md | 88 | ### Step 3: Verify and Confirm the Plan | COMMENT |
| LOW | src/skills/clonedeps/SKILL.md | 103 | ### Step 4: Update Ignore Files | COMMENT |
| LOW | src/skills/clonedeps/SKILL.md | 133 | ### Step 5: Clone Sources Manually | COMMENT |
| LOW | src/skills/clonedeps/SKILL.md | 168 | ### Step 6: Write Local State | COMMENT |
| LOW | src/skills/clonedeps/SKILL.md | 206 | ### Step 7: Register Dependency Source in AGENTS.md | COMMENT |
| LOW | src/skills/simplify/SKILL.md | 76 | ### Step 1: Understand Before Touching | COMMENT |
| LOW | src/skills/simplify/SKILL.md | 90 | ### Step 2: Look for Simplification Opportunities | COMMENT |
| LOW | src/skills/simplify/SKILL.md | 104 | ### Step 3: Apply Changes Incrementally | COMMENT |
| LOW | src/skills/simplify/SKILL.md | 116 | ### Step 4: Verify the Result | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/interview/parser.ts | 120 | // A robust heuristic to escape literal carriage returns/newlines inside JSON string values | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 71 | │ ├── council/ # Council manager (multi-LLM session orchestration) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/index.ts | 601 | // ForegroundFallbackManager via the event hook. | COMMENT |
| LOW | src/agents/index.ts | 161 | if (Array.isArray(override.model)) { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/interview/dashboard.ts | 497 | async function handleRequest( | CODE |