Repository Analysis

musistudio/claude-code-router

One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.

9.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of musistudio/claude-code-router, a TypeScript project with 36,949 GitHub stars. SynthScan v2.0 examined 227,053 lines of code across 482 source files, recording 2394 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 9.8 places this repository in the Low AI signal 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).

9.8
Adjusted Score
9.8
Raw Score
100%
Time Factor
2026-08-27
Last Push
36.9K
Stars
TypeScript
Language
227.1K
Lines of Code
482
Files
2.4K
Pattern Hits
2026-08-29
Scan Date
0.00
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 1MEDIUM 2LOW 2391

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 2394 distinct pattern matches across 6 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 Identifiers2361 hits · 2166 pts
SeverityFileLineSnippetContext
LOWextension/chrome/popup.js125async function readLocalStorageForDomains(domains, cookies) {CODE
LOWextension/chrome/popup.js137async function readLocalStorageForOrigin(origin) {CODE
LOWextension/chrome/popup.js209function localStorageOriginsForDomains(domains, cookies) {CODE
LOWextension/chrome/popup.js231function allowedLocalStorageOrigin(actualOrigin, requestedOrigin) {CODE
LOWextension/chrome/background.js83async function readLocalStorageForDomains(domains, cookies) {CODE
LOWextension/chrome/background.js95async function readLocalStorageForOrigin(origin) {CODE
LOWextension/chrome/background.js167function localStorageOriginsForDomains(domains, cookies) {CODE
LOWextension/chrome/background.js246function allowedLocalStorageOrigin(actualOrigin, requestedOrigin) {CODE
LOWtests/e2e/electron-cdp.spec.ts367function createLegacyApiKeyDatabase(file: string): void {CODE
LOWdocs/src/configuration-docs.ts34export function configurationSlugFromPath(filePath: string): string {CODE
LOW…rc/components/interactive/fixtures-agent-analysis.json7094 "preview": "935:type ProviderPresetComboboxOption = {\n942:function ProviderPresetCombobox({\n948: optionCODE
LOW…rc/components/interactive/fixtures-agent-analysis.json7282 "preview": "1296\t option: ProviderPresetComboboxOption,\n1297\t query: string\n1298\t): boolean {\n1299CODE
LOW…rc/components/interactive/fixtures-agent-analysis.json7326 "preview": "1705\tfunction ProviderFormStepHeader({\n1706\t description,\n1707\t index,\n1708\t title\nCODE
LOW…rc/components/interactive/fixtures-agent-analysis.json7526 "preview": "1583:export type ProviderSetupStepId = \"provider\" | \"credentials\" | \"models\" | \"verify\CODE
LOW…rc/components/interactive/fixtures-agent-analysis.json7714 "preview": "1851\tfunction ProviderApiKeyInput({\n1852\t onChange,\n1853\t resetProbe,\n1854\t value\n1CODE
LOW…rc/components/interactive/fixtures-agent-analysis.json7902 "preview": "1780\t return (\n1781\t <div className={cn(\"rounded-md border border-border bg-muted/20 pCODE
LOW…rc/components/interactive/fixtures-agent-analysis.json7946 "preview": "1889\tfunction ProviderCredentialModeTabs({\n1890\t onChange,\n1891\t value\n1892\t}: {\n189CODE
LOW…rc/components/interactive/fixtures-agent-analysis.json8190 "preview": "/Volumes/Data/Products/claude-code-router/packages/ui/src/pages/home/App.tsx:1397: }, [activeCODE
LOWpackages/ui/test/integration/providers.test.ts1570function providerInstallLinkPayload(link) {CODE
LOWpackages/ui/src/pages/home/App.tsx62function isLocalCodexProviderDraft(draft: AddProviderDraft): boolean {CODE
LOWpackages/ui/src/pages/home/App.tsx69function localCodexProviderDraftProbeKey(draft: AddProviderDraft): string {CODE
LOWpackages/ui/src/pages/home/App.tsx77function materializeProviderPluginTemplates(CODE
LOWpackages/ui/src/pages/home/App.tsx2037 function openInstallExtensionDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx2043 function updateExtensionInstallDraft(patch: Partial<ExtensionInstallDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2048 async function chooseLocalExtensionDirectory() {CODE
LOWpackages/ui/src/pages/home/App.tsx2225 function updateClaudeDesignRoutingDraft(patch: Partial<ClaudeDesignRoutingDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2229 function addClaudeDesignRoutingRule() {CODE
LOWpackages/ui/src/pages/home/App.tsx2236 function updateClaudeDesignRoutingRule(index: number, patch: Partial<ClaudeDesignRoutingRuleDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2243 function removeClaudeDesignRoutingRule(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx2250 function submitClaudeDesignRoutingDraft() {CODE
LOWpackages/ui/src/pages/home/App.tsx2276 function updateCursorProxyRoutingDraft(patch: Partial<ClaudeDesignRoutingDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2280 function addCursorProxyRoutingRule() {CODE
LOWpackages/ui/src/pages/home/App.tsx2287 function updateCursorProxyRoutingRule(index: number, patch: Partial<ClaudeDesignRoutingRuleDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2294 function removeCursorProxyRoutingRule(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx2301 function submitCursorProxyRoutingDraft() {CODE
LOWpackages/ui/src/pages/home/App.tsx99function replaceProviderPluginPlaceholders(value: unknown, replacements: Record<string, string>): unknown {CODE
LOWpackages/ui/src/pages/home/App.tsx138async function loadProviderAccountSnapshots(forceRefresh = false): Promise<ProviderAccountSnapshot[]> {CODE
LOWpackages/ui/src/pages/home/App.tsx145function providerRefreshModelsInputKey(CODE
LOWpackages/ui/src/pages/home/App.tsx166function canInstallExtensionCandidate(candidate: PluginInstallCandidate): boolean {CODE
LOWpackages/ui/src/pages/home/App.tsx543 async function refreshProviderAccountsNow() {CODE
LOWpackages/ui/src/pages/home/App.tsx1776 async function confirmProviderDeepLinkImport() {CODE
LOWpackages/ui/src/pages/home/App.tsx1837 function updateProviderModelDescription(providerIndex: number, model: string, description: string) {CODE
LOWpackages/ui/src/pages/home/App.tsx1874 function openEditRoutingRuleDialog(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx1949 function openAddVirtualModelDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx1956 function openEditVirtualModelDialog(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx2085 function submitExtensionInstallDraft() {CODE
LOWpackages/ui/src/pages/home/App.tsx2097 function installExtensionCandidate(candidate: PluginInstallCandidate) {CODE
LOWpackages/ui/src/pages/home/App.tsx2189 function updatePluginSettingsDraft(patch: Partial<PluginSettingsDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2194 function submitPluginSettingsDraft() {CODE
LOWpackages/ui/src/pages/home/App.tsx2409 function changeTrayBalanceProgress(config: TrayBalanceProgressConfig) {CODE
LOWpackages/ui/src/pages/home/App.tsx2444 function changeObservabilityConfig(patch: Partial<AppConfig["observability"]>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2486 function openBotSettingsWithAddDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx2497 function openGeneralSettingsDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx2558 async function refreshProxyNetworkCaptures() {CODE
LOWpackages/ui/src/pages/home/App.tsx2635 async function clearProxyNetworkCaptures() {CODE
LOWpackages/ui/src/pages/home/App.tsx2643 async function setProxyNetworkCaptureEnabled(enabled: boolean) {CODE
LOWpackages/ui/src/pages/home/App.tsx2868 async function refreshProfileRuntimeStatus(): Promise<void> {CODE
LOWpackages/ui/src/pages/home/App.tsx2881 function removeProfileRuntimeEntry(profileId: string, surface: ProfileOpenSurface) {CODE
LOWpackages/ui/src/pages/home/App.tsx3488function removeProfileBotReference(profile: ProfileConfig): ProfileConfig {CODE
LOWpackages/ui/src/pages/home/App.tsx3493function isProfileBotSelectionValid(draft: AddProfileDraft, botConfigs: BotGatewaySavedConfig[]): boolean {CODE
2301 more matches not shown…
Structural Annotation Overuse28 hits · 58 pts
SeverityFileLineSnippetContext
LOWdocs/src/content/docs/en/agentclaw/feishu.md22## Step 1: Create an enterprise self-built appCOMMENT
LOWdocs/src/content/docs/en/agentclaw/feishu.md32## Step 2: Copy the App ID and App SecretCOMMENT
LOWdocs/src/content/docs/en/agentclaw/feishu.md42## Step 3: Enable the bot capabilityCOMMENT
LOWdocs/src/content/docs/en/agentclaw/feishu.md51## Step 4: Request message permissionsCOMMENT
LOWdocs/src/content/docs/en/agentclaw/feishu.md63## Step 5: Configure event subscriptionsCOMMENT
LOWdocs/src/content/docs/en/agentclaw/feishu.md70## Step 6: Publish or install the appCOMMENT
LOWdocs/src/content/docs/en/agentclaw/wecom.md24## Step 1: Get the Corp IDCOMMENT
LOWdocs/src/content/docs/en/agentclaw/wecom.md32## Step 2: Create a self-built appCOMMENT
LOWdocs/src/content/docs/en/agentclaw/wecom.md42## Step 3: Copy the Agent ID and SecretCOMMENT
LOWdocs/src/content/docs/en/agentclaw/slack.md21## Step 1: Create the Slack appCOMMENT
LOWdocs/src/content/docs/en/agentclaw/slack.md30## Step 2: Turn on Socket ModeCOMMENT
LOWdocs/src/content/docs/en/agentclaw/slack.md39## Step 3: Add bot scopes and installCOMMENT
LOWdocs/src/content/docs/en/agentclaw/slack.md49## Step 4: Invite the bot into a channelCOMMENT
LOWdocs/src/content/docs/en/agentclaw/dingtalk.md24## Step 1: Create a DingTalk appCOMMENT
LOWdocs/src/content/docs/en/agentclaw/dingtalk.md35## Step 2: Copy the App Key and App SecretCOMMENT
LOWdocs/src/content/docs/en/agentclaw/dingtalk.md44## Step 3: Enable the bot capabilityCOMMENT
LOWdocs/src/content/docs/en/agentclaw/dingtalk.md53## Step 4: Publish the app and join a chatCOMMENT
LOWdocs/src/content/docs/en/agentclaw/telegram.md20## Step 1: Create the bot with BotFatherCOMMENT
LOWdocs/src/content/docs/en/agentclaw/telegram.md32## Step 2: Set up group support (optional)COMMENT
LOWdocs/src/content/docs/en/agentclaw/discord.md24## Step 1: Create the Discord app and botCOMMENT
LOWdocs/src/content/docs/en/agentclaw/discord.md34## Step 2: Enable the required intentsCOMMENT
LOWdocs/src/content/docs/en/agentclaw/discord.md41## Step 3: Copy the Bot TokenCOMMENT
LOWdocs/src/content/docs/en/agentclaw/discord.md50## Step 4: Invite the bot into a serverCOMMENT
LOWdocs/src/content/docs/en/agentclaw/discord.md59## Step 5: Copy optional fields (if needed)COMMENT
LOWdocs/src/content/docs/en/agentclaw/line.md23## Step 1: Create a Messaging API channelCOMMENT
LOWdocs/src/content/docs/en/agentclaw/line.md35## Step 2: Copy the Channel SecretCOMMENT
LOWdocs/src/content/docs/en/agentclaw/line.md41## Step 3: Issue a Channel Access TokenCOMMENT
LOWdocs/src/content/docs/en/agentclaw/line.md50## Step 4: Open the chat entryCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpackages/core/src/profiles/service.ts1781 "# Generated by Claude Code Router for this Kimi CLI profile.",CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMpackage-lock.json7857 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMdocs/package-lock.json6021 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Redundant / Tautological Comments1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…rc/components/interactive/fixtures-agent-analysis.json19764 "preview": "{\n \"command\": \"export PATH=\\\"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH\\\"\\ncCODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/core/src/web/management-server.ts177async function handleRequest(request: IncomingMessage, response: ServerResponse, security: WebManagementSecurityContext)CODE