Repository Analysis

kaitranntt/ccs

Switch between Claude accounts, Gemini, Copilot, OpenRouter (300+ models) via CLIProxyAPI OAuth proxy. Visual dashboard, remote proxy support, WebSearch fallback. Zero-config to production-ready.

5.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kaitranntt/ccs, a TypeScript project with 2,790 GitHub stars. SynthScan v2.0 examined 442,804 lines of code across 1955 source files, recording 1728 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 5.7 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).

5.7
Adjusted Score
5.7
Raw Score
100%
Time Factor
2026-08-09
Last Push
2.8K
Stars
TypeScript
Language
442.8K
Lines of Code
2.0K
Files
1.7K
Pattern Hits
2026-08-09
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 3MEDIUM 321LOW 1404

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 1728 distinct pattern matches across 12 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 Identifiers1148 hits · 1192 pts
SeverityFileLineSnippetContext
LOWui/vite.config.ts17function rewriteTrustedViteDevOrigin(proxyRequest: ClientRequest, request: IncomingMessage): void {CODE
LOWui/tests/unit/components/ui/searchable-select.test.tsx45function SearchableSelectWithCreateHarness() {CODE
LOWui/src/components/shared/code-editor.tsx305function buildSensitiveDecorations(CODE
LOWui/src/components/shared/quota-tooltip-content.tsx61function getClaudeWindowDisplayLabel(CODE
LOWui/src/components/shared/quota-tooltip-content.tsx124function formatGeminiRemainingAmount(CODE
LOWui/src/components/cliproxy/cliproxy-edit-dialog.tsx80function isDeniedAgyModelForProvider(provider: string, modelId: string | undefined): boolean {CODE
LOWui/src/components/cliproxy/cliproxy-edit-dialog.tsx84function isSingleVariantOnlyTargetChange(variant: Variant, data: SingleProviderFormData): boolean {CODE
LOWui/src/components/cliproxy/cliproxy-edit-dialog.tsx107function isCompositeVariantOnlyTargetChange(variant: Variant, data: CompositeFormData): boolean {CODE
LOW…src/components/cliproxy/categorized-model-selector.tsx124export function CategorizedModelSelectorCompact({CODE
LOWui/src/components/cliproxy/control-panel-embed.tsx42function seedLocalControlPanelSession(apiBase: string, managementKey: string): void {CODE
LOWui/src/components/cliproxy/control-panel-embed.tsx52function clearLocalControlPanelSession(): void {CODE
LOWui/src/components/cliproxy/control-panel-embed.tsx60function clearPersistedLocalControlPanelSecret(): void {CODE
LOWui/src/components/cliproxy/cliproxy-dialog.tsx83function isDeniedAgyModelForProvider(provider: string, modelId: string | undefined): boolean {CODE
LOW…ts/cliproxy/provider-editor/provider-editor-header.tsx28function formatSettingsPathBadgeLabel(pathValue: string): string {CODE
LOW…components/profiles/alibaba-coding-plan-promo-card.tsx14export function AlibabaCodingPlanPromoCard({ onCreateClick }: AlibabaCodingPlanPromoCardProps) {CODE
LOW…ents/profiles/editor/image-analysis-status-section.tsx156export function ImageAnalysisStatusSection({CODE
LOW…nents/account/antigravity-responsibility-checklist.tsx19export function AntigravityResponsibilityChecklist({CODE
LOW…onents/account/antigravity-responsibility-constants.ts19export function isAntigravityRiskChecklistComplete(value: AntigravityRiskChecklistValue): boolean {CODE
LOW…nents/account/edit-account-shared-resources-dialog.tsx30export function EditAccountSharedResourcesDialog({CODE
LOW…src/components/account/shared/account-surface-card.tsx66function getCompactAudienceBadgeLabel(audience: AccountAudience, t: (key: string) => string) {CODE
LOW…src/components/account/shared/account-surface-card.tsx73function getCompactDetailBadgeClass(audience: AccountAudience) {CODE
LOWui/src/components/account/flow-viz/account-card.tsx180function getVariantCompactDetailLabel(CODE
LOWui/src/components/account/flow-viz/account-card.tsx245function getGroupedVariantSummaryLabel(CODE
LOW…/compatible-cli/droid-byok-reasoning-controls-card.tsx36export function DroidByokReasoningControlsCard({CODE
LOW…/compatible-cli/droid-settings-quick-controls-card.tsx119export function DroidSettingsQuickControlsCard({CODE
LOW…nents/compatible-cli/codex-top-level-controls-card.tsx545export function CodexTopLevelControlsCard({CODE
LOWui/src/hooks/use-profiles.ts74export function useDiscoverProfileOrphans() {CODE
LOWui/src/hooks/use-profiles.ts80export function useRegisterProfileOrphans() {CODE
LOWui/src/hooks/use-droid.ts88function parseDroidRawSettingsText(rawText: string): {CODE
LOWui/src/hooks/use-openrouter-models.ts59export function useRefreshOpenRouterModels() {CODE
LOWui/src/hooks/use-cliproxy-stats.ts176async function fetchCliproxyErrorLogContent(name: string): Promise<string> {CODE
LOWui/src/hooks/use-cliproxy-stats.ts201export function useCliproxyErrorLogContent(name: string | null) {CODE
LOWui/src/hooks/use-cliproxy-stats.ts337function getAccountQuotaQueryOptions(provider: string, accountId: string, enabled = true) {CODE
LOWui/src/hooks/use-cliproxy-auth-flow.ts55function invalidateCliproxyRoutingData(queryClient: ReturnType<typeof useQueryClient>): void {CODE
LOWui/src/hooks/use-shared.ts63function isSharedItemContentPayload(payload: unknown): payload is SharedItemContentPayload {CODE
LOWui/src/hooks/use-accounts.ts156export function useConfirmLegacyAccountPolicies() {CODE
LOWui/src/hooks/use-accounts.ts211export function useUpdateAccountSharedResources() {CODE
LOWui/src/hooks/use-cliproxy.ts21function invalidateCliproxyRoutingQueries(queryClient: ReturnType<typeof useQueryClient>): void {CODE
LOWui/src/hooks/use-cliproxy.ts27function invalidateCliproxyAccountQueries(queryClient: ReturnType<typeof useQueryClient>): void {CODE
LOWui/src/hooks/use-cliproxy.ts56export function useCliproxyRoutingStrategy() {CODE
LOWui/src/hooks/use-cliproxy.ts63export function useUpdateCliproxyRoutingStrategy() {CODE
LOWui/src/hooks/use-cliproxy.ts81export function useCliproxySessionAffinity() {CODE
LOWui/src/hooks/use-cliproxy.ts88export function useUpdateCliproxySessionAffinity() {CODE
LOWui/src/hooks/use-cliproxy.ts118export function useUpdateCliproxyRetryConfig() {CODE
LOWui/src/hooks/use-claude-extension.ts102export function useClaudeExtensionOptions() {CODE
LOWui/src/hooks/use-claude-extension.ts123export function useClaudeExtensionBindings() {CODE
LOWui/src/hooks/use-claude-extension.ts131export function useClaudeExtensionBindingStatus(bindingId?: string) {CODE
LOWui/src/hooks/use-claude-extension.ts142export function useCreateClaudeExtensionBinding() {CODE
LOWui/src/hooks/use-claude-extension.ts160export function useUpdateClaudeExtensionBinding() {CODE
LOWui/src/hooks/use-claude-extension.ts184export function useDeleteClaudeExtensionBinding() {CODE
LOWui/src/hooks/use-claude-extension.ts201function useClaudeExtensionActionMutation(action: 'apply' | 'reset', successMessage: string) {CODE
LOWui/src/hooks/use-claude-extension.ts222export function useApplyClaudeExtensionBinding() {CODE
LOWui/src/hooks/use-claude-extension.ts227export function useResetClaudeExtensionBinding() {CODE
LOWui/src/hooks/use-cliproxy-ai-providers.ts18export function useCreateCliproxyAiProviderEntry() {CODE
LOWui/src/hooks/use-cliproxy-ai-providers.ts40export function useUpdateCliproxyAiProviderEntry() {CODE
LOWui/src/hooks/use-cliproxy-ai-providers.ts64export function useDeleteCliproxyAiProviderEntry() {CODE
LOWui/src/lib/support-updates-catalog.ts419export function getSupportEntriesForNotice(notice: SupportNotice): CliSupportEntry[] {CODE
LOWui/src/lib/account-continuity.ts36export function summarizeAuthAccountContinuity(accounts: Account[]): AuthAccountContinuitySummary {CODE
LOWui/src/lib/cliproxy-version-risk.ts39export function isCliproxyVersionExperimental(version: string, maxStableVersion: string): boolean {CODE
LOWui/src/lib/account-identity.ts26function normalizeVariantTokenPart(value: string): string {CODE
1088 more matches not shown…
Decorative Section Separators312 hits · 984 pts
SeverityFileLineSnippetContext
MEDIUM…components/compatible-cli/codex-auth-profiles-card.tsx30// ── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…components/compatible-cli/codex-auth-profiles-card.tsx69// ── Disabled action button with terminal-redirect tooltip ───────────────────COMMENT
MEDIUM…components/compatible-cli/codex-auth-profiles-card.tsx94// ── Profile table row ────────────────────────────────────────────────────────COMMENT
MEDIUM…components/compatible-cli/codex-auth-profiles-card.tsx143// ── Main card ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…components/compatible-cli/codex-auth-profiles-card.tsx216// ── Active profile highlight banner ─────────────────────────────────────────COMMENT
MEDIUM…components/compatible-cli/codex-auth-profiles-card.tsx256// ── Profile table ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/bin/codex-runtime-router.test.ts99// ── Auth routing ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/bin/codex-runtime-router.test.ts135// ── Non-auth profile resolution ───────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/shell-detect.test.ts5// ── detectShell ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/shell-detect.test.ts74// ── formatExport ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/show-command.test.ts65// ── empty list ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/show-command.test.ts77// ── list with default marker ──────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/show-command.test.ts91// ── JSON account metadata ───────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/show-command.test.ts133// ── active(missing) row at top (D14) ─────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/show-command.test.ts152// ── detail view ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/remove-command.test.ts57// ── non-default removes cleanly ───────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/remove-command.test.ts82// ── default with others → refuses without --force ────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/remove-command.test.ts173// ── only profile → allows removal ────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/remove-command.test.ts189// ── confirmation prompt ───────────────────────────────────────────────────────COMMENT
MEDIUM…nit/codex-auth/commands/import-default-command.test.ts158// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/use-command.test.ts78// ── stdout discipline (CRITICAL) ──────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/use-command.test.ts129// ── shell syntax variants ─────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit/codex-auth/commands/use-command.test.ts218// ── missing profile → stderr only ────────────────────────────────────────────COMMENT
MEDIUMtests/docker/image-size-logic.test.sh34# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh37# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh78# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh80# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh124# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh126# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh130# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh257# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh263# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh310# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh315# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh373# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/image-size-logic.test.sh375# ------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh27# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh52# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh54# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh89# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh91# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh96# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh98# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh117# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/network-contract.sh119# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh66# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh75# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh77# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh86# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh96# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh100# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh102# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh166# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh168# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh176# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/docker/compose-parity.sh178# ---------------------------------------------------------------------------COMMENT
252 more matches not shown…
Fake / Example Data156 hits · 185 pts
SeverityFileLineSnippetContext
LOW…omponents/account/shared/account-surface-card.test.tsx48 accountId="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx49 email="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx50 displayEmail="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx66 email="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx67 displayEmail="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx84 email="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx85 displayEmail="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx102 accountId="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx103 email="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx104 displayEmail="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx119 accountId="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx120 email="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx121 displayEmail="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx137 email="user@example.com"CODE
LOW…omponents/account/shared/account-surface-card.test.tsx138 displayEmail="user@example.com"CODE
LOWui/tests/unit/ui/lib/account-identity.test.ts79 const presentation = getAccountIdentityPresentation('user@example.com', 'user@example.com');CODE
LOWui/tests/unit/ui/lib/account-identity.test.ts84 expect(formatAccountDisplayName('user@example.com', 'user@example.com')).toBe(CODE
LOWui/tests/unit/ui/lib/account-identity.test.ts85 'user@example.com'CODE
LOW…unit/components/account/flow-viz/account-card.test.tsx67 email: 'user@example.com',CODE
LOW…unit/components/account/flow-viz/account-card.test.tsx76 email: 'user@example.com',CODE
LOW…unit/components/account/flow-viz/account-card.test.tsx89 email: 'user@example.com',CODE
LOW…src/components/cliproxy/categorized-model-selector.tsx130}: Omit<CategorizedModelSelectorProps, 'placeholder' | 'className'>) {CODE
LOWtests/unit/targets/droid-config-manager.test.ts40 apiKey: 'dummy-key',CODE
LOWtests/unit/targets/droid-config-manager.test.ts59 apiKey: 'dummy-key',CODE
LOWtests/unit/targets/droid-config-manager.test.ts282 apiKey: 'dummy-key',CODE
LOWtests/unit/targets/droid-config-manager.test.ts334 apiKey: 'dummy-key',CODE
LOWtests/unit/targets/target-registry.test.ts233 apiKey: 'dummy-key',CODE
LOWtests/unit/targets/target-registry.test.ts255 apiKey: 'dummy-key',CODE
LOWtests/unit/targets/target-registry.test.ts281 apiKey: 'dummy-key',CODE
LOWtests/unit/cursor/cursor-auth.test.ts93 // JWT: {"email":"user@example.com","sub":"12345","exp":1234567890}COMMENT
LOWtests/unit/cursor/cursor-auth.test.ts95 JSON.stringify({ email: 'user@example.com', sub: '12345', exp: 1234567890 })CODE
LOWtests/unit/cursor/cursor-auth.test.ts101 email: 'user@example.com',CODE
LOWtests/unit/cursor/cursor-auth.test.ts135 // JWT: {"email":"user@example.com","user_id":"67890"}COMMENT
LOWtests/unit/cursor/cursor-auth.test.ts137 JSON.stringify({ email: 'user@example.com', user_id: '67890' })CODE
LOWtests/unit/cursor/cursor-auth.test.ts143 email: 'user@example.com',CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts11// Payload (base64url): {"email":"user@example.com","https://api.openai.com/auth":{"chatgpt_plan_type":"pro","chatgpt_acCOMMENT
LOWtests/unit/codex-auth/decode-id-token.test.ts13 email: 'user@example.com',CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts37 email: 'user@example.com',CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts45 email: 'user@example.com',CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts53 email: 'user@example.com',CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts72 expect(result.email).toBe('user@example.com');CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts103 expect(result.email).toBe('user@example.com');CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts110 expect(result.email).toBe('user@example.com');CODE
LOWtests/unit/codex-auth/decode-id-token.test.ts117 expect(result.email).toBe('user@example.com');CODE
LOWtests/unit/web-server/bar-routes.test.ts383 mockAccounts = [makeAccountInfo({ id: 'user@example.com', provider: 'agy' })];CODE
LOWtests/unit/web-server/bar-routes.test.ts563 // but the cost map key is the canonical email "user@example.com"COMMENT
LOW…sts/unit/web-server/cliproxy-usage-transformer.test.ts188 source: 'user@example.com',CODE
LOWsrc/web-server/health/config-checks.ts129 if (validation.error?.includes('placeholder')) {CODE
LOWsrc/management/checks/config-check.ts167 } else if (validation.error && validation.error.includes('placeholder')) {CODE
LOWsrc/cliproxy/auth/__tests__/auth-utils.test.ts13 const result = sanitizeEmail('user@example.com');CODE
LOWsrc/cliproxy/auth/__tests__/auth-utils.test.ts19 const result = sanitizeEmail('user@example.com');CODE
LOW…/accounts/__tests__/account-registry-integrity.test.ts128 JSON.stringify({ type: 'codex', email: 'user@example.com' }),CODE
LOW…/accounts/__tests__/account-registry-integrity.test.ts139 expect(accounts[0]?.id).toBe('user@example.com');CODE
LOW…/accounts/__tests__/account-registry-integrity.test.ts141 expect(registry.providers.codex?.accounts['user@example.com']?.tokenFile).toBe(CODE
LOW…/accounts/__tests__/account-registry-integrity.test.ts310 expect(Object.keys(providerAccounts?.accounts ?? {})).toEqual(['user@example.com']);CODE
LOW…/accounts/__tests__/account-registry-integrity.test.ts311 expect(providerAccounts?.accounts['user@example.com']?.email).toBe('user@example.com');CODE
LOW…/accounts/__tests__/account-registry-integrity.test.ts312 expect(providerAccounts?.accounts['user@example.com']?.tokenFile).toBe(testCase.tokenFile);CODE
LOW…/accounts/__tests__/account-registry-integrity.test.ts324 JSON.stringify({ type: 'codex', email: 'user@example.com' }),CODE
LOWsrc/cliproxy/accounts/__tests__/account-safety.test.ts122 expect(maskEmail('user@example.com')).toBe('use***@example.com');CODE
LOWsrc/cliproxy/accounts/__tests__/account-safety.test.ts608 default: 'user@example.com',CODE
96 more matches not shown…
Over-Commented Block51 hits · 50 pts
SeverityFileLineSnippetContext
LOWui/src/components/config-layout/config-layout.tsx81 // toggling visibility via Tailwind `hidden lg:grid` would mount two copiesCOMMENT
LOWdocker/compose.yaml1# Canonical CCS docker-compose. Served at https://ccs.kaitran.ca/docker-compose.yaml.COMMENT
LOWtests/unit/web-server/native-quota-collector.test.ts1821 expect(deps.claudeFetchCount()).toBe(2);COMMENT
LOWtests/unit/cliproxy/quota-manager-tier-lock.test.ts61const HEALTHY_QUOTA = { success: true, models: [{ percentage: 80 }] };COMMENT
LOWtests/unit/commands/bar-command.test.ts1861 // 1. Is NOT in the default candidate list (3000, 3001, 3002, 8000, 8080) — otherwise aCOMMENT
LOWtests/unit/commands/bar-command.test.ts2081 // temporarily patching the candidate list via a wrapper that re-implementsCOMMENT
LOWtests/unit/commands/bar-command.test.ts3221// ---------------------------------------------------------------------------COMMENT
LOWtests/docker/network-contract.sh1#!/usr/bin/env bashCOMMENT
LOWtests/docker/compose-parity.sh1#!/usr/bin/env bashCOMMENT
LOWtests/docker/compose-parity.sh21fail=0COMMENT
LOWtests/docker/compose-parity.sh81 grep -E '^[[:space:]]+- [a-z_]+:/' "$file" \COMMENT
LOWtests/docker/image-size.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/run-test-bucket.js1#!/usr/bin/env nodeCOMMENT
LOWscripts/bump-version.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/bar-release.yml1name: Bar ReleaseCOMMENT
LOW.github/workflows/docker-release.yml441 # :latest / :<major> / :<minor> aliases STAY POINTED AT THE PRIOR STABLECOMMENT
LOW.github/workflows/breaking-change-guard.yml1name: Breaking Change Guard – Docker Compose ContractCOMMENT
LOW.github/workflows/ci.yml161 - name: Assert compose parity (compose.yaml vs docker-compose.integrated.yml)COMMENT
LOW.github/workflows/promote-release.yml1name: Promote Stable Release to Docker LatestCOMMENT
LOWmacos-bar/Scripts/package_app.sh1#!/usr/bin/env bashCOMMENT
LOWmacos-bar/Sources/CCSBarApp/Sparkline.swift1import SwiftUICOMMENT
LOWmacos-bar/Sources/CCSBarApp/BarAnalyticsView.swift1import SwiftUICOMMENT
LOW…s-bar/Sources/CCSBarApp/SettingsWindowController.swift1import SwiftUICOMMENT
LOW…s-bar/Sources/CCSBarApp/SettingsWindowController.swift81 func close() { window?.performClose(nil) }COMMENT
LOW…cos-bar/Sources/CCSBarApp/WindowAppearanceForcer.swift1import SwiftUICOMMENT
LOW…cos-bar/Sources/CCSBarApp/WindowAppearanceForcer.swift21///COMMENT
LOW…cos-bar/Sources/CCSBarApp/WindowAppearanceForcer.swift81 }COMMENT
LOWmacos-bar/Sources/CCSBarApp/BarMenuView.swift21COMMENT
LOWmacos-bar/Sources/CCSBarApp/BarMenuView.swift41 /// Multi-profile carousel: which provider page is currently visible. Resets toCOMMENT
LOWmacos-bar/Sources/CCSBarApp/BarMenuView.swift581 }COMMENT
LOWmacos-bar/Sources/CCSBarApp/BarMenuView.swift1001 .padding(.vertical, 1.5)COMMENT
LOWmacos-bar/Sources/CCSBarApp/BarNotifier.swift1import FoundationCOMMENT
LOWmacos-bar/Sources/CCSBarApp/BarServerLauncher.swift1import FoundationCOMMENT
LOWmacos-bar/Sources/CCSBarApp/BarViewModel.swift121 // MARK: - Update checkingCOMMENT
LOWmacos-bar/Sources/CCSBarApp/BarSubscriptionCard.swift1import SwiftUICOMMENT
LOWmacos-bar/Sources/CCSBarApp/ScrollerHider.swift1import SwiftUICOMMENT
LOWmacos-bar/Sources/CCSBarCore/BarSummary.swift61 /// ISO timestamp this account was last used, null if never/unknown.COMMENT
LOWmacos-bar/Sources/CCSBarCore/BarFormatting.swift61 /// "unsupported"/"error" rows are skipped so they can't show "--".COMMENT
LOWmacos-bar/Sources/CCSBarCore/BarFormatting.swift161 return "Last active \(fmt.string(from: date))"COMMENT
LOWmacos-bar/Sources/CCSBarCore/BarChartStyle.swift1import FoundationCOMMENT
LOWmacos-bar/Sources/CCSBarCore/BarVersionDisplay.swift1import FoundationCOMMENT
LOWmacos-bar/Sources/CCSBarCore/BarQuotaGauge.swift41 /// time is at/in the past. Returns nil for nil/unparseable timestamps.COMMENT
LOWmacos-bar/Sources/CCSBarCore/BarQuotaGauge.swift61 /// simplifies to `(100 - usedPercent) * elapsed / usedPercent`.COMMENT
LOWmacos-bar/Sources/CCSBarCore/BarQuotaGauge.swift141 // Only at-risk when we will exhaust BEFORE the window resets.COMMENT
LOWmacos-bar/Sources/CCSBarCore/BarTheme.swift1import SwiftUICOMMENT
LOWmacos-bar/Sources/CCSBarCore/BarServerProbe.swift41/// 2. 3000, 3001, 3002, 8000, 8080COMMENT
LOWmacos-bar/Sources/CCSBarCore/BarAnalytics.swift81 public let allTime: WindowCOMMENT
LOWsrc/cliproxy/config/generator.ts781 session-affinity-ttl: "${poolEnabled ? '1h' : sessionAffinityTtl}"`;COMMENT
LOWsrc/cliproxy/config/generator.ts801# WARNING: Logs can grow to several GB if enabled!COMMENT
LOW…roxy/executor/__tests__/index-characterization.test.ts221 // TODO: mock triggerOAuth to resolve trueCOMMENT
LOWsrc/cliproxy/routing/pool-opt-in-prompt.ts141 if (accountCountBefore !== 1) {COMMENT
Verbosity Indicators20 hits · 37 pts
SeverityFileLineSnippetContext
LOWsrc/web-server/routes/persist-routes.ts237 // Step 1: Backup current settings for rollbackCOMMENT
LOWsrc/web-server/routes/persist-routes.ts242 // Step 2: Write validated content to temp fileCOMMENT
LOWsrc/web-server/routes/persist-routes.ts245 // Step 3: Atomic rename (replaces existing file)COMMENT
LOWsrc/web-server/routes/persist-routes.ts248 // Step 4: Cleanup rollback backup on successCOMMENT
LOWsrc/cliproxy/proxy/tool-sanitization-proxy.ts420 // Step 1: Sanitize input_schema properties (remove non-standard JSON Schema properties)COMMENT
LOWsrc/cliproxy/proxy/tool-sanitization-proxy.ts481 // Step 2: Sanitize tool names (truncate to 64 chars for Gemini)COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts401 // Step 1: fresh ensureProviderSettings creates the file and the marker.COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts407 // Step 2: simulate 'ccs claude --config' pinning all four tier models.COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts423 // Step 3: second ensureProviderSettings must NOT strip the user-written pinsCOMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts467 // Step 1: executor runs ensureProviderSettings BEFORE the --config write.COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts479 // Step 2: configureProviderModel writes the user's deliberate pick — and theCOMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts496 // Step 3: next plain `ccs claude` launch must NOT strip the just-written pinCOMMENT
LOWsrc/cliproxy/ai-providers/tool-name-sanitizer.ts136 // Step 1: Always try to remove duplicate segmentsCOMMENT
LOWsrc/cliproxy/ai-providers/tool-name-sanitizer.ts140 // Step 2: Truncate if still too longCOMMENT
LOWsrc/cliproxy/ai-providers/tool-name-sanitizer.ts145 // Step 3: If still invalid, fix characters and truncate if neededCOMMENT
LOWsrc/commands/setup-command.ts290 // Step 1: Local vs Remote modeCOMMENT
LOWsrc/commands/setup-command.ts371 // Step 2: Ask about API profilesCOMMENT
LOWsrc/commands/cliproxy/variant-subcommand.ts321 // Step 1: Profile nameCOMMENT
LOWsrc/commands/cliproxy/variant-subcommand.ts442 // Step 2: Provider selectionCOMMENT
LOWsrc/commands/cliproxy/variant-subcommand.ts536 // Step 3: Model selectionCOMMENT
Structural Annotation Overuse20 hits · 37 pts
SeverityFileLineSnippetContext
LOWsrc/web-server/routes/persist-routes.ts237 // Step 1: Backup current settings for rollbackCOMMENT
LOWsrc/web-server/routes/persist-routes.ts242 // Step 2: Write validated content to temp fileCOMMENT
LOWsrc/web-server/routes/persist-routes.ts245 // Step 3: Atomic rename (replaces existing file)COMMENT
LOWsrc/web-server/routes/persist-routes.ts248 // Step 4: Cleanup rollback backup on successCOMMENT
LOWsrc/cliproxy/proxy/tool-sanitization-proxy.ts420 // Step 1: Sanitize input_schema properties (remove non-standard JSON Schema properties)COMMENT
LOWsrc/cliproxy/proxy/tool-sanitization-proxy.ts481 // Step 2: Sanitize tool names (truncate to 64 chars for Gemini)COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts401 // Step 1: fresh ensureProviderSettings creates the file and the marker.COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts407 // Step 2: simulate 'ccs claude --config' pinning all four tier models.COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts423 // Step 3: second ensureProviderSettings must NOT strip the user-written pinsCOMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts467 // Step 1: executor runs ensureProviderSettings BEFORE the --config write.COMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts479 // Step 2: configureProviderModel writes the user's deliberate pick — and theCOMMENT
LOW…cliproxy/config/__tests__/claude-model-neutral.test.ts496 // Step 3: next plain `ccs claude` launch must NOT strip the just-written pinCOMMENT
LOWsrc/cliproxy/ai-providers/tool-name-sanitizer.ts136 // Step 1: Always try to remove duplicate segmentsCOMMENT
LOWsrc/cliproxy/ai-providers/tool-name-sanitizer.ts140 // Step 2: Truncate if still too longCOMMENT
LOWsrc/cliproxy/ai-providers/tool-name-sanitizer.ts145 // Step 3: If still invalid, fix characters and truncate if neededCOMMENT
LOWsrc/commands/setup-command.ts290 // Step 1: Local vs Remote modeCOMMENT
LOWsrc/commands/setup-command.ts371 // Step 2: Ask about API profilesCOMMENT
LOWsrc/commands/cliproxy/variant-subcommand.ts321 // Step 1: Profile nameCOMMENT
LOWsrc/commands/cliproxy/variant-subcommand.ts442 // Step 2: Provider selectionCOMMENT
LOWsrc/commands/cliproxy/variant-subcommand.ts536 // Step 3: Model selectionCOMMENT
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/integration/z-ai-streaming-test.js9if (!API_KEY || API_KEY === 'your-api-key-here') {CODE
HIGHsrc/utils/api-key-validator.ts24 'YOUR-API-KEY-HERE',CODE
HIGHsrc/utils/delegation-validator.ts91 'your-api-key-here',CODE
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/native/unix/edge-cases.sh267 # Check if ccs is in PATHCOMMENT
LOWtests/integration/ux-integration-test.sh486 # Check if completion is registeredCOMMENT
LOWscripts/dev-install.sh46 # Check if installed via bunCOMMENT
LOWscripts/dev-install.sh51 # Check if installed via npmCOMMENT
LOWscripts/dev-symlink.sh39# Check if dist/ccs.js existsCOMMENT
LOWscripts/dev-symlink.sh86# Check if already symlinked to our dev versionCOMMENT
LOWscripts/dev-release.sh90 # Check if tag already exists (safety check)COMMENT
LOWlib/prompt.sh96# Check if running in non-interactive modeCOMMENT
Self-Referential Comments3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/native/unix/uninstall.sh160 # Create a dummy skill directory firstCOMMENT
MEDIUMtests/native/unix/uninstall.sh149 # Create a dummy command file firstCOMMENT
MEDIUMscripts/dev-release.sh158# This file is read by send-discord-release.cjs for dev releasesCOMMENT
Modern AI Meta-Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMui/src/lib/openrouter-utils.ts62 isExacto: model.id.includes(':exacto'), // Exacto variants - optimized for agentic/tool useCODE
MEDIUMtests/unit/cliproxy/session-bridge-bg-keepalive.test.ts15 // No-op: feature scaffold removed per red-team finding on #1340.COMMENT
MEDIUMsrc/delegation/delegation-handler.ts324 // Parse --max-turns (limit agentic turns, max 100)COMMENT
MEDIUMsrc/delegation/executor/types.ts65 maxTurns?: number; // --max-turns: Limit agentic turns (prevents infinite loops)CODE
AI Slop Vocabulary2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMsrc/cliproxy/proxy/proxy-detector.ts181 // Definitely not our proxy - port is blockedCOMMENT
MEDIUMsrc/cliproxy/config/generator.ts842# This enables seamless multi-account rotation when rate limitedCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmacos-bar/Scripts/package_app.sh11# Usage:COMMENT