Repository Analysis

musistudio/claude-code-router

Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic.

10.6 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 35,775 GitHub stars. SynthScan v2.0 examined 143,646 lines of code across 354 source files, recording 1562 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 10.6 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).

10.6
Adjusted Score
10.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
35.8K
Stars
TypeScript
Language
143.6K
Lines of Code
354
Files
1.6K
Pattern Hits
2026-07-14
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 0MEDIUM 1LOW 1561

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 1562 distinct pattern matches across 4 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 Identifiers1532 hits · 1462 pts
SeverityFileLineSnippetContext
LOWextension/chrome/popup.js109async function readLocalStorageForDomains(domains, cookies) {CODE
LOWextension/chrome/popup.js121async function readLocalStorageForOrigin(origin) {CODE
LOWextension/chrome/popup.js193function localStorageOriginsForDomains(domains, cookies) {CODE
LOWextension/chrome/popup.js215function 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/renderer/providers.test.ts530function providerInstallLinkPayload(link) {CODE
LOWdocs/src/configuration-docs.ts24export function configurationSlugFromPath(filePath: string): string {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.tsx1854 function openInstallExtensionDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx1860 function updateExtensionInstallDraft(patch: Partial<ExtensionInstallDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx1865 async function chooseLocalExtensionDirectory() {CODE
LOWpackages/ui/src/pages/home/App.tsx2023 function updateClaudeDesignRoutingDraft(patch: Partial<ClaudeDesignRoutingDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2027 function addClaudeDesignRoutingRule() {CODE
LOWpackages/ui/src/pages/home/App.tsx2034 function updateClaudeDesignRoutingRule(index: number, patch: Partial<ClaudeDesignRoutingRuleDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2041 function removeClaudeDesignRoutingRule(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx2048 function submitClaudeDesignRoutingDraft() {CODE
LOWpackages/ui/src/pages/home/App.tsx2074 function updateCursorProxyRoutingDraft(patch: Partial<ClaudeDesignRoutingDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2078 function addCursorProxyRoutingRule() {CODE
LOWpackages/ui/src/pages/home/App.tsx2085 function updateCursorProxyRoutingRule(index: number, patch: Partial<ClaudeDesignRoutingRuleDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2092 function removeCursorProxyRoutingRule(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx2099 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.tsx130function removeLocalAgentProviderPluginsForProvider(CODE
LOWpackages/ui/src/pages/home/App.tsx145function localAgentProviderPluginMatchesProvider(plugin: unknown, providerNames: Set<string>): boolean {CODE
LOWpackages/ui/src/pages/home/App.tsx173async function loadProviderAccountSnapshots(forceRefresh = false): Promise<ProviderAccountSnapshot[]> {CODE
LOWpackages/ui/src/pages/home/App.tsx526 async function refreshProviderAccountsNow() {CODE
LOWpackages/ui/src/pages/home/App.tsx1601 async function confirmProviderDeepLinkImport() {CODE
LOWpackages/ui/src/pages/home/App.tsx1646 function updateProviderModelDescription(providerIndex: number, model: string, description: string) {CODE
LOWpackages/ui/src/pages/home/App.tsx1683 function openEditRoutingRuleDialog(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx1769 function openAddVirtualModelDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx1776 function openEditVirtualModelDialog(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx1892 function submitExtensionInstallDraft() {CODE
LOWpackages/ui/src/pages/home/App.tsx1965 function updatePluginSettingsDraft(patch: Partial<PluginSettingsDraft>) {CODE
LOWpackages/ui/src/pages/home/App.tsx1970 function submitPluginSettingsDraft() {CODE
LOWpackages/ui/src/pages/home/App.tsx2008 function openConfigurePluginRouting(index: number) {CODE
LOWpackages/ui/src/pages/home/App.tsx2183 function changeTrayBalanceProgress(config: TrayBalanceProgressConfig) {CODE
LOWpackages/ui/src/pages/home/App.tsx2218 function changeObservabilityConfig(patch: Partial<AppConfig["observability"]>) {CODE
LOWpackages/ui/src/pages/home/App.tsx2260 function openBotSettingsWithAddDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx2271 function openGeneralSettingsDialog() {CODE
LOWpackages/ui/src/pages/home/App.tsx2330 async function refreshProxyNetworkCaptures() {CODE
LOWpackages/ui/src/pages/home/App.tsx2407 async function clearProxyNetworkCaptures() {CODE
LOWpackages/ui/src/pages/home/App.tsx2415 async function setProxyNetworkCaptureEnabled(enabled: boolean) {CODE
LOWpackages/ui/src/pages/home/App.tsx2647 async function refreshProfileRuntimeStatus(): Promise<void> {CODE
LOWpackages/ui/src/pages/home/App.tsx2659 function removeProfileRuntimeEntry(profileId: string, surface: ProfileOpenSurface) {CODE
LOWpackages/ui/src/pages/home/App.tsx3259function removeProfileBotReference(profile: ProfileConfig): ProfileConfig {CODE
LOWpackages/ui/src/pages/home/App.tsx3264function isProfileBotSelectionValid(draft: AddProfileDraft, botConfigs: BotGatewaySavedConfig[]): boolean {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts384export function gatewayEndpointFromConfig(config: AppConfig): string {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts392export function defaultProfileClientModel(config: AppConfig): string {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts400export function normalizeProfileClientModel(value: string | undefined): string {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts1141export function normalizeCodexConfigFormat(_value: unknown): CodexProfileConfigFormat {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts1149export function normalizeProfileFormScope(value: unknown): ProfileScope {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts1158export function normalizeProfileSurfaceForForm(value: unknown): ProfileSurface {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts1224function defaultBotGatewayAuthType(platform: string): string {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts1228function authTypeAllowedForPlatform(platform: string, value: string): string {CODE
LOWpackages/ui/src/pages/home/shared/profiles.ts1234function websocketBotGatewayIntegrationConfig(platform: string, value: Record<string, unknown>): Record<string, unknown>CODE
1472 more matches not shown…
Structural Annotation Overuse28 hits · 58 pts
SeverityFileLineSnippetContext
LOW…content/docs/en/relay-agents-in-im-with-bots/feishu.md22## Step 1: Create An Enterprise Self-Built AppCOMMENT
LOW…content/docs/en/relay-agents-in-im-with-bots/feishu.md32## Step 2: Copy The App ID And App SecretCOMMENT
LOW…content/docs/en/relay-agents-in-im-with-bots/feishu.md42## Step 3: Enable The Bot CapabilityCOMMENT
LOW…content/docs/en/relay-agents-in-im-with-bots/feishu.md51## Step 4: Request Message PermissionsCOMMENT
LOW…content/docs/en/relay-agents-in-im-with-bots/feishu.md63## Step 5: Configure Event SubscriptionsCOMMENT
LOW…content/docs/en/relay-agents-in-im-with-bots/feishu.md70## Step 6: Publish Or Install The AppCOMMENT
LOW…/content/docs/en/relay-agents-in-im-with-bots/wecom.md24## Step 1: Get The Corp IDCOMMENT
LOW…/content/docs/en/relay-agents-in-im-with-bots/wecom.md32## Step 2: Create A Self-Built AppCOMMENT
LOW…/content/docs/en/relay-agents-in-im-with-bots/wecom.md42## Step 3: Copy The Agent ID And SecretCOMMENT
LOW…/content/docs/en/relay-agents-in-im-with-bots/slack.md21## Step 1: Create The Slack AppCOMMENT
LOW…/content/docs/en/relay-agents-in-im-with-bots/slack.md30## Step 2: Turn On Socket ModeCOMMENT
LOW…/content/docs/en/relay-agents-in-im-with-bots/slack.md39## Step 3: Add Bot Scopes And InstallCOMMENT
LOW…/content/docs/en/relay-agents-in-im-with-bots/slack.md49## Step 4: Invite The Bot Into A ChannelCOMMENT
LOW…ntent/docs/en/relay-agents-in-im-with-bots/dingtalk.md24## Step 1: Create A DingTalk AppCOMMENT
LOW…ntent/docs/en/relay-agents-in-im-with-bots/dingtalk.md35## Step 2: Copy The App Key And App SecretCOMMENT
LOW…ntent/docs/en/relay-agents-in-im-with-bots/dingtalk.md44## Step 3: Enable The Bot CapabilityCOMMENT
LOW…ntent/docs/en/relay-agents-in-im-with-bots/dingtalk.md53## Step 4: Publish The App And Join A ChatCOMMENT
LOW…ntent/docs/en/relay-agents-in-im-with-bots/telegram.md20## Step 1: Create The Bot With BotFatherCOMMENT
LOW…ntent/docs/en/relay-agents-in-im-with-bots/telegram.md32## Step 2: Set Up Group Support (Optional)COMMENT
LOW…ontent/docs/en/relay-agents-in-im-with-bots/discord.md24## Step 1: Create The Discord App And BotCOMMENT
LOW…ontent/docs/en/relay-agents-in-im-with-bots/discord.md34## Step 2: Enable The Required IntentsCOMMENT
LOW…ontent/docs/en/relay-agents-in-im-with-bots/discord.md41## Step 3: Copy The Bot TokenCOMMENT
LOW…ontent/docs/en/relay-agents-in-im-with-bots/discord.md50## Step 4: Invite The Bot Into A ServerCOMMENT
LOW…ontent/docs/en/relay-agents-in-im-with-bots/discord.md59## Step 5: Copy Optional Fields (If Needed)COMMENT
LOW…c/content/docs/en/relay-agents-in-im-with-bots/line.md23## Step 1: Create A Messaging API ChannelCOMMENT
LOW…c/content/docs/en/relay-agents-in-im-with-bots/line.md35## Step 2: Copy The Channel SecretCOMMENT
LOW…c/content/docs/en/relay-agents-in-im-with-bots/line.md41## Step 3: Issue A Channel Access TokenCOMMENT
LOW…c/content/docs/en/relay-agents-in-im-with-bots/line.md50## Step 4: Open The Chat EntryCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpackage-lock.json8335 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/core/src/web/management-server.ts168async function handleRequest(request: IncomingMessage, response: ServerResponse, security: WebManagementSecurityContext)CODE