One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.
This report summarizes scanner evidence for musistudio/claude-code-router, a TypeScript project with 37,619 GitHub stars. SynthScan examined 243,114 lines of code across 512 source files, recording 2537 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 9.7 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 2537 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 2504 finding(s).
Which changes need focused human review? 2537 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 2537 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extension/chrome/popup.js | 125 | async function readLocalStorageForDomains(domains, cookies) { | CODE |
| LOW | extension/chrome/popup.js | 137 | async function readLocalStorageForOrigin(origin) { | CODE |
| LOW | extension/chrome/popup.js | 209 | function localStorageOriginsForDomains(domains, cookies) { | CODE |
| LOW | extension/chrome/popup.js | 231 | function allowedLocalStorageOrigin(actualOrigin, requestedOrigin) { | CODE |
| LOW | extension/chrome/background.js | 83 | async function readLocalStorageForDomains(domains, cookies) { | CODE |
| LOW | extension/chrome/background.js | 95 | async function readLocalStorageForOrigin(origin) { | CODE |
| LOW | extension/chrome/background.js | 167 | function localStorageOriginsForDomains(domains, cookies) { | CODE |
| LOW | extension/chrome/background.js | 246 | function allowedLocalStorageOrigin(actualOrigin, requestedOrigin) { | CODE |
| LOW | tests/e2e/electron-cdp.spec.ts | 367 | function createLegacyApiKeyDatabase(file: string): void { | CODE |
| LOW | tests/e2e/provider-edit.spec.ts | 267 | async function prepareProviderRegressionPage(page: Page, withReferences = false): Promise<void> { | CODE |
| LOW | docs/src/configuration-docs.ts | 34 | export function configurationSlugFromPath(filePath: string): string { | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 7094 | "preview": "935:type ProviderPresetComboboxOption = {\n942:function ProviderPresetCombobox({\n948: option | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 7282 | "preview": "1296\t option: ProviderPresetComboboxOption,\n1297\t query: string\n1298\t): boolean {\n1299 | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 7326 | "preview": "1705\tfunction ProviderFormStepHeader({\n1706\t description,\n1707\t index,\n1708\t title\n | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 7526 | "preview": "1583:export type ProviderSetupStepId = \"provider\" | \"credentials\" | \"models\" | \"verify\ | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 7714 | "preview": "1851\tfunction ProviderApiKeyInput({\n1852\t onChange,\n1853\t resetProbe,\n1854\t value\n1 | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 7902 | "preview": "1780\t return (\n1781\t <div className={cn(\"rounded-md border border-border bg-muted/20 p | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 7946 | "preview": "1889\tfunction ProviderCredentialModeTabs({\n1890\t onChange,\n1891\t value\n1892\t}: {\n189 | CODE |
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 8190 | "preview": "/Volumes/Data/Products/claude-code-router/packages/ui/src/pages/home/App.tsx:1397: }, [active | CODE |
| LOW | packages/ui/test/integration/providers.test.ts | 1644 | function providerInstallLinkPayload(link) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2150 | function openInstallExtensionDialog() { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2156 | function updateExtensionInstallDraft(patch: Partial<ExtensionInstallDraft>) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2161 | async function chooseLocalExtensionDirectory() { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2338 | function updateClaudeDesignRoutingDraft(patch: Partial<ClaudeDesignRoutingDraft>) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2342 | function addClaudeDesignRoutingRule() { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2349 | function updateClaudeDesignRoutingRule(index: number, patch: Partial<ClaudeDesignRoutingRuleDraft>) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2356 | function removeClaudeDesignRoutingRule(index: number) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2363 | function submitClaudeDesignRoutingDraft() { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2389 | function updateCursorProxyRoutingDraft(patch: Partial<ClaudeDesignRoutingDraft>) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2393 | function addCursorProxyRoutingRule() { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2400 | function updateCursorProxyRoutingRule(index: number, patch: Partial<ClaudeDesignRoutingRuleDraft>) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2407 | function removeCursorProxyRoutingRule(index: number) { | CODE |
| LOW⚡ | packages/ui/src/pages/home/App.tsx | 2414 | function submitCursorProxyRoutingDraft() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 66 | function isLocalCodexProviderDraft(draft: AddProviderDraft): boolean { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 73 | function localCodexProviderDraftProbeKey(draft: AddProviderDraft): string { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 89 | function materializeProviderPluginTemplates( | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 111 | function replaceProviderPluginPlaceholders(value: unknown, replacements: Record<string, string>): unknown { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 150 | async function loadProviderAccountSnapshots(forceRefresh = false): Promise<ProviderAccountSnapshot[]> { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 157 | function providerRefreshModelsInputKey( | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 178 | function canInstallExtensionCandidate(candidate: PluginInstallCandidate): boolean { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 560 | async function refreshProviderAccountsNow() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 1889 | async function confirmProviderDeepLinkImport() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 1950 | function updateProviderModelDescription(providerIndex: number, model: string, description: string) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 1987 | function openEditRoutingRuleDialog(index: number) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2062 | function openAddVirtualModelDialog() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2069 | function openEditVirtualModelDialog(index: number) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2198 | function submitExtensionInstallDraft() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2210 | function installExtensionCandidate(candidate: PluginInstallCandidate) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2302 | function updatePluginSettingsDraft(patch: Partial<PluginSettingsDraft>) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2307 | function submitPluginSettingsDraft() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2529 | function changeTrayBalanceProgress(config: TrayBalanceProgressConfig) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2564 | function changeObservabilityConfig(patch: Partial<AppConfig["observability"]>) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2606 | function openBotSettingsWithAddDialog() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2617 | function openGeneralSettingsDialog() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2678 | async function refreshProxyNetworkCaptures() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2755 | async function clearProxyNetworkCaptures() { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2763 | async function setProxyNetworkCaptureEnabled(enabled: boolean) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 2993 | async function refreshProfileRuntimeStatus(): Promise<void> { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 3006 | function removeProfileRuntimeEntry(profileId: string, surface: ProfileOpenSurface) { | CODE |
| LOW | packages/ui/src/pages/home/App.tsx | 3632 | function removeProfileBotReference(profile: ProfileConfig): ProfileConfig { | CODE |
| 2444 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docs/src/content/docs/en/agentclaw/feishu.md | 22 | ## Step 1: Create an enterprise self-built app | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/feishu.md | 32 | ## Step 2: Copy the App ID and App Secret | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/feishu.md | 42 | ## Step 3: Enable the bot capability | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/feishu.md | 51 | ## Step 4: Request message permissions | COMMENT |
| LOW | docs/src/content/docs/en/agentclaw/feishu.md | 63 | ## Step 5: Configure event subscriptions | COMMENT |
| LOW | docs/src/content/docs/en/agentclaw/feishu.md | 70 | ## Step 6: Publish or install the app | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/wecom.md | 24 | ## Step 1: Get the Corp ID | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/wecom.md | 32 | ## Step 2: Create a self-built app | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/wecom.md | 42 | ## Step 3: Copy the Agent ID and Secret | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/slack.md | 21 | ## Step 1: Create the Slack app | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/slack.md | 30 | ## Step 2: Turn on Socket Mode | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/slack.md | 39 | ## Step 3: Add bot scopes and install | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/slack.md | 49 | ## Step 4: Invite the bot into a channel | COMMENT |
| LOW | docs/src/content/docs/en/agentclaw/dingtalk.md | 24 | ## Step 1: Create a DingTalk app | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/dingtalk.md | 35 | ## Step 2: Copy the App Key and App Secret | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/dingtalk.md | 44 | ## Step 3: Enable the bot capability | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/dingtalk.md | 53 | ## Step 4: Publish the app and join a chat | COMMENT |
| LOW | docs/src/content/docs/en/agentclaw/telegram.md | 20 | ## Step 1: Create the bot with BotFather | COMMENT |
| LOW | docs/src/content/docs/en/agentclaw/telegram.md | 32 | ## Step 2: Set up group support (optional) | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/discord.md | 24 | ## Step 1: Create the Discord app and bot | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/discord.md | 34 | ## Step 2: Enable the required intents | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/discord.md | 41 | ## Step 3: Copy the Bot Token | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/discord.md | 50 | ## Step 4: Invite the bot into a server | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/discord.md | 59 | ## Step 5: Copy optional fields (if needed) | COMMENT |
| LOW | docs/src/content/docs/en/agentclaw/line.md | 23 | ## Step 1: Create a Messaging API channel | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/line.md | 35 | ## Step 2: Copy the Channel Secret | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/line.md | 41 | ## Step 3: Issue a Channel Access Token | COMMENT |
| LOW⚡ | docs/src/content/docs/en/agentclaw/line.md | 50 | ## Step 4: Open the chat entry | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/core/src/profiles/service.ts | 2054 | "# Generated by Claude Code Router for this Kimi CLI profile.", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | package-lock.json | 7857 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", | CODE |
| MEDIUM | docs/package-lock.json | 6021 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rc/components/interactive/fixtures-agent-analysis.json | 19764 | "preview": "{\n \"command\": \"export PATH=\\\"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH\\\"\\nc | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/core/src/web/management-server.ts | 178 | async function handleRequest(request: IncomingMessage, response: ServerResponse, security: WebManagementSecurityContext) | CODE |