AI Slop Code Risk Monitor

tashfeenahmed/freellmapi

SlopCodeMonitor badge for tashfeenahmed/freellmapi Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

3.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for tashfeenahmed/freellmapi, a TypeScript project with 45,075 GitHub stars. SynthScan examined 296,161 lines of code across 1147 source files, recording 694 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 3.6 (Low 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.

3.6
Adjusted Signal
3.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
45.1K
Stars
TypeScript
Language
296.2K
Lines of Code
1.1K
Files
694
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 7.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 448 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.4/100 · LOW

Are imports declared and package/API names verified? 71 finding(s).

Agent Over-Engineering Ratio 10.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 314 finding(s).

PR Review Velocity Impact 16.9/100 · LOW

Which changes need focused human review? 694 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 3MEDIUM 193LOW 498

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 694 distinct pattern matches across 10 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.

Decorative Section Separators175 hits · 530 pts
SeverityFileLineSnippetContext
MEDIUMdesktop/src/main.ts106 // ── popover IPC ──────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/providers/index.ts583// ── Chinese domestic providers (#922/#923/#924) ─────────────────────────────COMMENT
MEDIUMserver/src/providers/index.ts583// ── Chinese domestic providers (#922/#923/#924) ─────────────────────────────COMMENT
MEDIUMserver/src/__tests__/providers/google.test.ts684 // ── Streaming ──────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/providers/google.test.ts817 // ── timeoutMs plumbing ────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/lib/exhaustion-statuses.test.ts71// ── isContextTooLargeError: real provider error shapes ───────────────────────COMMENT
MEDIUMserver/src/__tests__/lib/exhaustion-statuses.test.ts172// ── exhaustedRetryError: failure-kind → terminal-status taxonomy ─────────────COMMENT
MEDIUMserver/src/__tests__/lib/exhaustion-statuses.test.ts290// ── routingExhaustionBody: zero attempts ran ─────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/lib/exhaustion-statuses.test.ts370// ── Wire helpers: OpenAI error payload + Retry-After header ──────────────────COMMENT
MEDIUMserver/src/__tests__/lib/exhaustion-statuses.test.ts406// ── End-to-end through the shared loop ───────────────────────────────────────COMMENT
MEDIUM…ver/src/__tests__/lib/fallback-loop-issue-1239.test.ts124// ── 1. classification ────────────────────────────────────────────────────────COMMENT
MEDIUM…ver/src/__tests__/lib/fallback-loop-issue-1239.test.ts165// ── 2. 402 benches the key across the platform ───────────────────────────────COMMENT
MEDIUM…ver/src/__tests__/lib/fallback-loop-issue-1239.test.ts198// ── 3. exhaustion ladder ─────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/routing-semantics.test.ts232// ── #919: remaining-quota key selection ─────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/routing-semantics.test.ts232// ── #919: remaining-quota key selection ─────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/logs.test.ts86 // ── Capture ────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/logs.test.ts156 // ── Structured events ──────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/logs.test.ts198 // ── Storage ────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/logs.test.ts248 // ── API ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/logs.test.ts377 // ── Auth ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/logs.test.ts388 // ── Retention ──────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/anthropic.test.ts591 // ── Same-model cross-provider failover (#932) ────────────────────────────COMMENT
MEDIUMserver/src/__tests__/routes/anthropic.test.ts591 // ── Same-model cross-provider failover (#932) ────────────────────────────COMMENT
MEDIUMserver/src/lib/provider-identity.ts1// ── Provider identity for analytics ─────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts72// ── Model-level failure benching ─────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts160// ── Wall-clock retry budget ──────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts356// ── Truncated-stream streak (#1218) ──────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts356// ── Truncated-stream streak (#1218) ──────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts373// ── Empty-completion streak (issue #751) ─────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts373// ── Empty-completion streak (issue #751) ─────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts636// ── Upstream 401 handling (key-fatal, not request-fatal) ─────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts708// ── Attempt trail ─────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts767// ── Detailed failover trace header (opt-in) ──────────────────────────────────COMMENT
MEDIUMserver/src/lib/fallback-loop.ts1137// ── Routing exhaustion (zero attempts ran) ───────────────────────────────────COMMENT
MEDIUM⚡server/src/lib/guardrails.ts58// ── Token budget (pre-flight) ────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/server-logs.ts98// ── State ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/server-logs.ts128// ── Formatting ───────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/server-logs.ts165// ── Ingest ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/server-logs.ts303// ── Persistence ──────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/server-logs.ts442// ── Read side ────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/web-search-tool.ts150// ── Replay of earlier search results ────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/web-search-tool.ts181// ── In-process re-entry into a route handler ────────────────────────────────COMMENT
MEDIUMserver/src/lib/sampling-params.ts189// ── Per-platform support policy ──────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/sampling-params.ts396// ── Unified output-token cap ─────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/endpoint-scope.ts1// ── Endpoint identity for custom relay models (#651) ────────────────────────COMMENT
MEDIUMserver/src/lib/endpoint-scope.ts1// ── Endpoint identity for custom relay models (#651) ────────────────────────COMMENT
MEDIUMserver/src/lib/error-classify.ts113// ── Transport failures hidden in the cause chain (undici) ────────────────────COMMENT
MEDIUMserver/src/lib/error-classify.ts229// ── Timeout wording ─────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/error-classify.ts253// ── Client-caused aborts ─────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/lib/error-classify.ts279// ── Fallback time-budget hedging (fallback-v2) ──────────────────────────────COMMENT
MEDIUMserver/src/lib/error-classify.ts682// ── Permanent upstream retirement (issue #634) ───────────────────────────────COMMENT
MEDIUMserver/src/lib/error-classify.ts682// ── Permanent upstream retirement (issue #634) ───────────────────────────────COMMENT
MEDIUMserver/src/routes/fallback.ts31// ── Bandit routing strategy ─────────────────────────────────────────────────COMMENT
MEDIUMserver/src/routes/anthropic.ts67// ── Request schema ──────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/routes/anthropic.ts147// ── Response shape ──────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/routes/anthropic.ts209// ── Auth (shared with the OpenAI route) ─────────────────────────────────────COMMENT
MEDIUMserver/src/routes/anthropic.ts223// ── Request translation: Anthropic → internal (OpenAI-shaped) ───────────────COMMENT
MEDIUMserver/src/routes/anthropic.ts402// ── Response translation: internal → Anthropic ──────────────────────────────COMMENT
MEDIUMserver/src/routes/anthropic.ts438// ── SSE helpers ─────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/src/routes/settings.ts136// ── MCP server lifecycle (#925, MVP-1) ──────────────────────────────────────COMMENT
115 more matches not shown…
Over-Commented Block287 hits · 262 pts
SeverityFileLineSnippetContext
LOWdesktop/electron-builder.yml41 entitlements: assets/entitlements.mac.plistCOMMENT
LOWdesktop/src/server-host.ts81 console.warn(`[tls] could not load the OS certificate store: ${(err as Error)?.message ?? err}`);COMMENT
LOWdesktop/src/server-host.ts101 // the same credential-stripped lines a terminal would — users paste it intoCOMMENT
LOWdesktop/src/updater.ts1// In-app updates for the packaged desktop app, on top of electron-updater.COMMENT
LOWdesktop/src/logger.ts1// A file log for the desktop app (#824).COMMENT
LOWdesktop/src/preload.ts21contextBridge.exposeInMainWorld('__FREEAPI_PLATFORM__', process.platform);COMMENT
LOWdesktop/src/tray-platform.ts1// Per-platform tray behaviour, kept free of Electron imports so it can beCOMMENT
LOWdesktop/src/tray-visibility.ts1// macOS 26 (Tahoe) gave every user a per-app switch for menu-bar icons inCOMMENT
LOWdesktop/src/__tests__/version.test.ts1import { readFileSync } from 'node:fs';COMMENT
LOWserver/src/app.ts101 const cfg = config ?? loadConfig();COMMENT
LOWserver/src/app.ts121 // CSP: default-src 'self' restricts content to the same origin. ScriptsCOMMENT
LOWserver/src/app.ts201 // else keeps the #200 limit — code agents (OpenCode, AionUI, Qwen Code)COMMENT
LOWserver/src/app.ts221 // brute-forceable credential check without it. Dashboard traffic on theCOMMENT
LOWserver/src/app.ts241 app.use('/api', adminRateLimiter);COMMENT
LOWserver/src/app.ts301 app.use('/v1', providersRouter);COMMENT
LOWserver/src/app.ts341 // Error handler (for API routes)COMMENT
LOWserver/src/middleware/allowed-hosts.ts1import type { Request, Response, NextFunction } from 'express';COMMENT
LOWserver/src/middleware/rateLimit.ts1import type { Request, Response, NextFunction } from 'express';COMMENT
LOWserver/src/providers/openai-compat.ts441 // (1) base URL points at a non-OpenAI-compatible API (Ollama's nativeCOMMENT
LOWserver/src/providers/google.ts61 if (!name) return undefined;COMMENT
LOWserver/src/providers/google.ts221 }COMMENT
LOWserver/src/providers/google.ts821 // Reaching here means the body ended with neither `[DONE]` nor anyCOMMENT
LOWserver/src/providers/google.ts861 // Google's error taxonomy is NOT the usual 401/403-means-bad-key (#268):COMMENT
LOWserver/src/providers/index.ts141// publishes no RPM/RPD numbers at all; the 20 RPM / 200 RPD figures in #732 areCOMMENT
LOWserver/src/providers/index.ts161// in the hosted catalog rather than migrations. Both current models rejectCOMMENT
LOWserver/src/providers/index.ts221// GitHub Models was retired upstream on 30 July 2026 (#549): models.github.aiCOMMENT
LOWserver/src/providers/index.ts241register(new CloudflareProvider());COMMENT
LOWserver/src/providers/index.ts261register(new OpenAICompatProvider({COMMENT
LOWserver/src/providers/index.ts301}));COMMENT
LOWserver/src/providers/index.ts321}));COMMENT
LOWserver/src/providers/index.ts341// (documented 2 req/min per IP per model — observed even stricter acrossCOMMENT
LOWserver/src/providers/index.ts361// underneath, so watch for reversion to paid. ~30 concurrent requests succeedCOMMENT
LOWserver/src/providers/index.ts381// (#1202): Reka's FAQ now requires prepaid credits and a $0 balance answersCOMMENT
LOWserver/src/providers/index.ts521COMMENT
LOWserver/src/providers/index.ts541// xKiro (xkiro.com) — OpenAI-compatible gateway at api.xkiro.com/v1 (theCOMMENT
LOWserver/src/providers/index.ts561COMMENT
LOWserver/src/providers/index.ts581register(new ModelScopeProvider());COMMENT
LOWserver/src/providers/index.ts621}));COMMENT
LOWserver/src/providers/llmtr.ts141 /** The probe itself: one authenticated request, verdict classified below. */COMMENT
LOWserver/src/docs/docs-page.ts1// Self-contained API reference page served at `GET /v1/docs`.COMMENT
LOWserver/src/docs/openapi.ts1// Hand-written OpenAPI 3.0 description of the public `/v1` surface.COMMENT
LOWserver/src/__tests__/lib/proxy-restore.test.ts21// machine can genuinely have that set (macOS System Settings → Proxies),COMMENT
LOWserver/src/__tests__/lib/module-purity.test.ts1import fs from 'node:fs';COMMENT
LOW…rver/src/__tests__/lib/fallback-loop-size-skip.test.ts201 { status: 413 },COMMENT
LOW…ver/src/__tests__/lib/fallback-loop-issue-1239.test.ts1import { describe, it, expect, beforeAll, beforeEach, vi } from 'vitest';COMMENT
LOW…_tests__/routes/responses-fallback-convergence.test.ts1import { describe, it, expect, beforeAll, beforeEach, vi } from 'vitest';COMMENT
LOWserver/src/__tests__/routes/rescue-wants-tools.test.ts1import { describe, it, expect, beforeAll, beforeEach, afterEach, vi } from 'vitest';COMMENT
LOW…r/src/__tests__/routes/reasoning-only-failover.test.ts1import { describe, it, expect, beforeAll, beforeEach, afterEach, vi } from 'vitest';COMMENT
LOWserver/src/__tests__/routes/auth-reset-password.test.ts1import { describe, it, expect, beforeEach, afterAll, vi } from 'vitest';COMMENT
LOWserver/src/__tests__/services/ratelimit.test.ts141 // 1st 429 → transient (no signal yet). Subsequent 429s stay transientCOMMENT
LOWserver/src/lib/image-normalize.ts1import { readFileSync } from 'node:fs';COMMENT
LOWserver/src/lib/image-normalize.ts21// original image: a vision request must never be lost to a transcodingCOMMENT
LOWserver/src/lib/image-normalize.ts41// sharp is a NATIVE module: it ships a prebuilt libvips per platform+arch, andCOMMENT
LOWserver/src/lib/provider-size-parser.ts1// Pull a real token count out of a provider's 413 / context-length error body.COMMENT
LOWserver/src/lib/provider-size-parser.ts41COMMENT
LOWserver/src/lib/tool-args.ts1// Schema-aware repair of double-encoded tool-call arguments.COMMENT
LOWserver/src/lib/provider-identity.ts1// ── Provider identity for analytics ─────────────────────────────────────────COMMENT
LOWserver/src/lib/setup-code.ts1import { createOneTimeCode } from './one-time-code.js';COMMENT
LOWserver/src/lib/think-tags.ts1import type { ChatCompletionChunk } from '@freellmapi/shared/types.js';COMMENT
LOWserver/src/lib/header-value.ts1// Header-value sanitizer for the diagnostics headers built out of provider andCOMMENT
227 more matches not shown…
Hyper-Verbose Identifiers139 hits · 138 pts
SeverityFileLineSnippetContext
LOWdesktop/src/tray-platform.ts48export function shouldOpenDashboardOnLaunch(CODE
LOWserver/src/providers/google.ts82function noteDummyThoughtSignature(name: string | undefined): void {CODE
LOWserver/src/providers/modelscope.ts16function modelscopeValidateCacheMs(): number {CODE
LOWserver/src/providers/llmtr.ts56async function blocksAutomatedValidation(res: Response): Promise<boolean> {CODE
LOWserver/src/__tests__/db/migrate/roundtrip.test.ts217function getLatestAppliedMigrationName(db: Database.Database): string {CODE
LOWserver/src/__tests__/db/migrate/roundtrip.test.ts241function getEnabledZenDeadPromoCount(db: Database.Database): number {CODE
LOWserver/src/__tests__/routes/proxy-stream-usage.test.ts89function sseResponseUsageMidStream() {CODE
LOWserver/src/__tests__/routes/proxy-stream-usage.test.ts111function sseResponseUsageOnContentFrame() {CODE
LOWserver/src/__tests__/services/custom-model-sync.test.ts32function addDisabledCustomEndpoint(baseUrl: string, label = 'disabled-endpoint'): void {CODE
LOWserver/src/__tests__/services/catalog-sync.test.ts82function existingAsCatalogEmbeddings(): CatalogEmbedding[] {CODE
LOWserver/src/lib/custom-provider-cleanup.ts31export function deleteUnusedCustomEndpointKey(db: Db, keyId: number | null | undefined) {CODE
LOWserver/src/lib/anthropic-web-search.ts170export async function maybeServeAnthropicWebSearch(CODE
LOWserver/src/lib/provider-size-parser.ts65export function parseProviderReportedSize(platform: string, message: string | null | undefined): ProviderReportedSize | CODE
LOWserver/src/lib/fallback-loop.ts285export function msUntilNextPacificMidnight(now = Date.now()): number {CODE
LOWserver/src/lib/fallback-loop.ts385export function resetEmptyCompletionStreaks(): void {CODE
LOWserver/src/lib/fallback-loop.ts410function consumeSkipBenchExemption(route: RouteResult, err: any): boolean {CODE
LOWserver/src/lib/fallback-loop.ts789export function isFallbackDetailHeaderEnabled(): boolean {CODE
LOW⚡server/src/lib/guardrails.ts49export function getRequestMaxTokensBudget(): number {CODE
LOW⚡server/src/lib/guardrails.ts54export function getMaxConsecutiveUpstreamFails(): number {CODE
LOWserver/src/lib/provider-timeout.ts57export function streamStallTimeoutEnvName(platform: string): string {CODE
LOWserver/src/lib/crypto.ts178export function isEncryptionKeyInitialized(): boolean {CODE
LOWserver/src/lib/served-model.ts50export function resetServedModelObservations(): void {CODE
LOWserver/src/lib/error-redaction.ts18export function sanitizeProviderErrorMessage(message: unknown): string {CODE
LOWserver/src/lib/tool-validate.ts37export function isToolArgumentValidationEnabled(): boolean {CODE
LOWserver/src/lib/tool-validate.ts151export function invalidToolArgumentsError(displayName: string, reasons: string[]): Error {CODE
LOWserver/src/lib/url-guard.ts144export function isLoopbackOrPrivateHostname(hostname: string): boolean {CODE
LOWserver/src/lib/responses-web-search.ts161export async function maybeServeResponsesWebSearch(CODE
LOWserver/src/lib/config.ts30function parseRequestBodyLimitBytes(): number {CODE
LOWserver/src/lib/config.ts136function parseCspUpgradeInsecureRequests(): boolean | undefined {CODE
LOWserver/src/lib/sampling-params.ts433export function platformDropsResponseFormat(platform: string): boolean {CODE
LOWserver/src/lib/sampling-params.ts459export function supportedParametersForPlatforms(platforms: string[], caps: { tools?: boolean } = {}): string[] {CODE
LOWserver/src/lib/error-classify.ts362export function isDailyQuotaExhaustedError(err: any): boolean {CODE
LOWserver/src/lib/error-classify.ts389export function isModelScopedOverloadError(err: any): boolean {CODE
LOWserver/src/lib/error-classify.ts472export function isUpstreamClassificationOutput(text: unknown, platform?: string): boolean {CODE
LOWserver/src/lib/error-classify.ts481export function isProviderBadRequestError(err: any): boolean {CODE
LOWserver/src/lib/error-classify.ts645export function isModelAccessForbiddenError(err: any): boolean {CODE
LOWserver/src/lib/client-context.ts58export function setRequestRoutingStrategy(strategy: PresetStrategy | undefined): void {CODE
LOWserver/src/lib/ttfb-budget.ts51export function invalidateTtfbBudgetCache(): void {CODE
LOWserver/src/db/index.ts140function parseDirHardeningOverride(): boolean | undefined {CODE
LOWserver/src/db/index.ts187function restrictDbFilePermissions(resolvedPath: string): void {CODE
LOWserver/src/db/migrate/cli.ts104function updateDefaultMigrationRegistry(filename: string): void {CODE
LOWserver/src/db/migrate/runner.ts98function initializeMigrationTracking(db: Db): void {CODE
LOWserver/src/db/migrate/runner.ts173function runLatestDownMigrationSync(CODE
LOWserver/src/db/migrate/runner.ts213function getDefaultMigrationRecords(): MigrationRecord[] {CODE
LOWserver/src/db/migrate/runner.ts262function getMigrationFileExtension(options: MigrationRunnerOptions): '.ts' | '.js' {CODE
LOWserver/src/routes/anthropic.ts130export function effortFromAnthropicThinking(CODE
LOWserver/src/routes/mcp.ts262function loopbackChatCompletionsUrl(req: Request): string {CODE
LOWserver/src/routes/proxy.ts1336function completionPromptToMessages(prompt: string, suffix?: string): ChatMessage[] {CODE
LOWserver/src/routes/responses.ts318export function responsesInputHasFileIdImage(req: ResponsesRequest): boolean {CODE
LOWserver/src/routes/responses.ts336export function responsesInputRequestsComputerUse(req: ResponsesRequest): boolean {CODE
LOWserver/src/routes/responses.ts591function buildFusionResponseObject(id: string, result: FusionResult): Record<string, unknown> {CODE
LOWserver/src/routes/responses.ts653function enforceFusionResponseFormat(result: FusionResult, responseFormat: ResponseFormat | undefined): void {CODE
LOWserver/src/services/model-state.ts114export function refreshModelOverrideBaselines(db: Db, platform: string, modelId: string): void {CODE
LOWserver/src/services/model-state.ts199export function recordCatalogModelTombstone(CODE
LOWserver/src/services/model-state.ts232export function retireCatalogModelUpstream(CODE
LOWserver/src/services/model-state.ts252export function reinstateUpstreamRetiredCatalogModel(CODE
LOWserver/src/services/model-state.ts269export function clearCatalogModelTombstone(CODE
LOWserver/src/services/model-state.ts353export function modelsWithOverriddenField(CODE
LOWserver/src/services/model-state.ts399export function deleteTombstonedCatalogModels(db: Db): number {CODE
LOWserver/src/services/provider-quota.ts71export function getQuotaObservationContext(): QuotaObservationContext | undefined {CODE
79 more matches not shown…
Fake / Example Data68 hits · 70 pts
SeverityFileLineSnippetContext
LOWserver/src/__tests__/routes/auth-setup-code.test.ts38const CREDS = { email: 'admin@example.com', password: 'supersecret' };CODE
LOWserver/src/__tests__/routes/auth.test.ts60 const { status, body } = await call(app, 'POST', '/api/auth/setup', { email: 'admin@example.com', password: 'superseCODE
LOW⚡server/src/__tests__/routes/auth.test.ts73 const ok = await call(app, 'POST', '/api/auth/login', { email: 'admin@example.com', password: 'supersecret' });CODE
LOW⚡server/src/__tests__/routes/auth.test.ts77 const bad = await call(app, 'POST', '/api/auth/login', { email: 'admin@example.com', password: 'wrongpassword' });CODE
LOW⚡server/src/__tests__/routes/auth.test.ts84 expect(body).toMatchObject({ needsSetup: false, authenticated: true, email: 'admin@example.com' });CODE
LOW⚡server/src/__tests__/routes/auth.test.ts88 const login = await call(app, 'POST', '/api/auth/login', { email: 'admin@example.com', password: 'supersecret' });CODE
LOW…/src/__tests__/routes/custom-provider-multikey.test.ts330 await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'placeholder', apiKey: 'second-secret' });CODE
LOW…/src/__tests__/routes/custom-provider-multikey.test.ts333 expect((await del(app, `/api/models/custom/${chatModel('placeholder')!.id}`)).status).toBe(200);CODE
LOWclient/src/i18n/locales/tr.json1151 "placeholder": "Sayfaları, modelleri, eylemleri arayın…",CODE
LOWclient/src/i18n/locales/or.json1151 "placeholder": "ପୃଷ୍ଠା, ମଡେଲ୍, କ୍ରିୟାଗୁଡିକ ସନ୍ଧାନ କରନ୍ତୁ...",CODE
LOWclient/src/i18n/locales/hu.json1151 "placeholder": "Keresőoldalak, modellek, akciók...",CODE
LOWclient/src/i18n/locales/mr.json1151 "placeholder": "पृष्ठे, मॉडेल, क्रिया शोधा…",CODE
LOWclient/src/i18n/locales/lt.json1151 "placeholder": "Paieškos puslapiai, modeliai, veiksmai...",CODE
LOWclient/src/i18n/locales/bn.json1151 "placeholder": "অনুসন্ধান পৃষ্ঠা, মডেল, কর্ম…",CODE
LOWclient/src/i18n/locales/ha.json1151 "placeholder": "Bincika shafuka, samfura, ayyuka…",CODE
LOWclient/src/i18n/locales/ig.json1151 "placeholder": "Chọọ ibe, ụdị, omume…",CODE
LOWclient/src/i18n/locales/yo.json1151 "placeholder": "Ṣewadii awọn oju-iwe, awọn awoṣe, awọn iṣe…",CODE
LOWclient/src/i18n/locales/nl.json1151 "placeholder": "Zoek pagina's, modellen, acties...",CODE
LOWclient/src/i18n/locales/ms.json1151 "placeholder": "Halaman carian, model, tindakan...",CODE
LOWclient/src/i18n/locales/ja.json1151 "placeholder": "ページ、モデル、アクションを検索します...",CODE
LOWclient/src/i18n/locales/de.json1151 "placeholder": "Suchseiten, Modelle, Aktionen…",CODE
LOWclient/src/i18n/locales/ru.json1151 "placeholder": "Поиск по страницам, моделям, действиям…",CODE
LOWclient/src/i18n/locales/pl.json1151 "placeholder": "Przeszukaj strony, modele, działania…",CODE
LOWclient/src/i18n/locales/uk.json1151 "placeholder": "Пошук сторінок, моделей, дій…",CODE
LOWclient/src/i18n/locales/fi.json1151 "placeholder": "Hakusivuja, malleja, toimintoja...",CODE
LOWclient/src/i18n/locales/ta.json1151 "placeholder": "தேடல் பக்கங்கள், மாதிரிகள், செயல்கள்...",CODE
LOWclient/src/i18n/locales/ur.json1151 "placeholder": "تلاش کے صفحات، ماڈل، اعمال…",CODE
LOWclient/src/i18n/locales/zh-CN.json1151 "placeholder": "搜索页面、模型、操作…",CODE
LOWclient/src/i18n/locales/sk.json1151 "placeholder": "Vyhľadávajte stránky, modely, akcie...",CODE
LOWclient/src/i18n/locales/ml.json1151 "placeholder": "പേജുകൾ, മോഡലുകൾ, പ്രവർത്തനങ്ങൾ എന്നിവ തിരയുക...",CODE
LOWclient/src/i18n/locales/az.json1151 "placeholder": "Axtarış səhifələri, modellər, fəaliyyətlər...",CODE
LOWclient/src/i18n/locales/en.json1190 "placeholder": "Search pages, models, actions…",CODE
LOWclient/src/i18n/locales/ka.json1151 "placeholder": "მოძებნეთ გვერდები, მოდელები, მოქმედებები…",CODE
LOWclient/src/i18n/locales/pa.json1151 "placeholder": "ਖੋਜ ਪੰਨੇ, ਮਾਡਲ, ਕਾਰਵਾਈਆਂ…",CODE
LOWclient/src/i18n/locales/my.json1151 "placeholder": "စာမျက်နှာများ၊ မော်ဒယ်များ၊ လုပ်ဆောင်ချက်များကို ရှာဖွေပါ...",CODE
LOWclient/src/i18n/locales/pt-PT.json1151 "placeholder": "Páginas de pesquisa, modelos, ações...",CODE
LOWclient/src/i18n/locales/km.json1151 "placeholder": "ទំព័រស្វែងរក ម៉ូដែល សកម្មភាព...",CODE
LOWclient/src/i18n/locales/it.json1151 "placeholder": "Cerca pagine, modelli, azioni…",CODE
LOWclient/src/i18n/locales/sr.json1151 "placeholder": "Претражи странице, моделе, акције…",CODE
LOWclient/src/i18n/locales/hr.json1151 "placeholder": "Pretraži stranice, modele, akcije...",CODE
LOWclient/src/i18n/locales/tl.json1151 "placeholder": "Mga pahina ng paghahanap, mga modelo, mga aksyon...",CODE
LOWclient/src/i18n/locales/kn.json1151 "placeholder": "ಪುಟಗಳು, ಮಾದರಿಗಳು, ಕ್ರಿಯೆಗಳನ್ನು ಹುಡುಕಿ...",CODE
LOWclient/src/i18n/locales/ne.json1151 "placeholder": "पृष्ठ, नमूना, कार्य खोजी गर्नुहोस्...",CODE
LOWclient/src/i18n/locales/fr.json1151 "placeholder": "Rechercher des pages, modèles, actions…",CODE
LOWclient/src/i18n/locales/am.json1151 "placeholder": "የፍለጋ ገጾች፣ ሞዴሎች፣ ድርጊቶች...",CODE
LOWclient/src/i18n/locales/gu.json1151 "placeholder": "શોધ પૃષ્ઠો, મોડેલો, ક્રિયાઓ...",CODE
LOWclient/src/i18n/locales/el.json1151 "placeholder": "Αναζήτηση σελίδων, μοντέλων, ενεργειών...",CODE
LOWclient/src/i18n/locales/bg.json1151 "placeholder": "Страници за търсене, модели, действия...",CODE
LOWclient/src/i18n/locales/ro.json1151 "placeholder": "Pagini de căutare, modele, acțiuni...",CODE
LOWclient/src/i18n/locales/hi.json1151 "placeholder": "खोज पृष्ठ, मॉडल, क्रियाएँ...",CODE
LOWclient/src/i18n/locales/si.json1151 "placeholder": "පිටු, ආකෘති, ක්‍රියා සොයන්න...",CODE
LOWclient/src/i18n/locales/pt-BR.json1151 "placeholder": "Buscar páginas, modelos, ações…",CODE
LOWclient/src/i18n/locales/ko.json1151 "placeholder": "페이지, 모델, 작업 검색…",CODE
LOWclient/src/i18n/locales/he.json1151 "placeholder": "דפי חיפוש, דגמים, פעולות...",CODE
LOWclient/src/i18n/locales/zh-TW.json1151 "placeholder": "搜尋頁面、模型、操作...",CODE
LOWclient/src/i18n/locales/vi.json1151 "placeholder": "Tìm kiếm trang, mô hình, hành động…",CODE
LOWclient/src/i18n/locales/fa.json1151 "placeholder": "جستجوی صفحات، مدل‌ها، اقدامات…",CODE
LOWclient/src/i18n/locales/cs.json1151 "placeholder": "Hledejte stránky, modely, akce...",CODE
LOWclient/src/i18n/locales/te.json1151 "placeholder": "శోధన పేజీలు, నమూనాలు, చర్యలు...",CODE
LOWclient/src/i18n/locales/id.json1151 "placeholder": "Cari halaman, model, tindakan…",CODE
8 more matches not shown…
Modern AI Meta-Vocabulary14 hits · 41 pts
SeverityFileLineSnippetContext
MEDIUMserver/src/__tests__/lib/unified-max-tokens.test.ts9// way guardrails.test.ts drives its knobs.COMMENT
MEDIUMserver/src/__tests__/lib/guardrails.test.ts3// Unit tests for the request guardrails (ported from @coffcoe's fork): theCOMMENT
MEDIUMserver/src/__tests__/routes/custom-provider.test.ts466 // #470: custom models used to register with supports_tools = 0, so agenticCOMMENT
MEDIUMserver/src/__tests__/routes/custom-provider.test.ts466 // #470: custom models used to register with supports_tools = 0, so agenticCOMMENT
MEDIUMserver/src/__tests__/routes/proxy-auto-model.test.ts175 // #282: clients read a model's context window from /v1/models; advertise itCOMMENT
MEDIUMserver/src/__tests__/services/scoring.test.ts166 // The two guardrails agree wherever the remaining fraction agrees.COMMENT
MEDIUMserver/src/lib/guardrails.ts1// Request-level guardrails: two hard limits, both OFF by default so anCOMMENT
MEDIUMserver/src/db/model-pricing.ts59 // Groq (compound is an agentic pipeline — estimated at its underlyingCOMMENT
MEDIUMserver/src/routes/fallback.ts33// breakdown (reliability / speed / intelligence + guardrails).COMMENT
MEDIUMserver/src/routes/settings.ts328// Get the request guardrails (per-request token budget + failover circuitCOMMENT
MEDIUMserver/src/routes/settings.ts329// breaker). Both default to 0 = disabled; see lib/guardrails.ts.COMMENT
MEDIUMserver/src/routes/settings.ts455// Update the guardrails. Partial: send just the knob you want to change.COMMENT
MEDIUMserver/src/routes/responses.ts967 // Responses translation/guardrails so Codex and other Responses clients canCOMMENT
MEDIUMdocs/CHANGELOG.md10| `eab992f` | 2026-09-05 | docs: per-language layout `docs/{en,zh-cn}`, Chinese README, redirect stubs at the old paths CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHclient/src/pages/MediaDetailPage.tsx46 const key = keyData?.apiKey || 'YOUR_API_KEY'CODE
HIGHclient/src/pages/ModelDetailPage.tsx226 -H "Authorization: Bearer ${keyData?.apiKey || 'YOUR_API_KEY'}" \\CODE
HIGHclient/src/pages/EmbeddingDetailPage.tsx49 const key = keyData?.apiKey || 'YOUR_API_KEY'CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMserver/src/lib/error-classify.ts10 // This structured check is the robust primary signal; the message-substringCOMMENT
MEDIUMserver/src/services/fusion.ts111 // the whole request — a panel is robust to missing members by design.COMMENT
MEDIUM…src/components/keys/provider-checklist-signup.test.tsx65 // Wait (polling, so it is robust to how many microtask hops the queryCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWserver/src/providers/modelscope.ts102 // Step 1: pick a live model id for the auth probe. This call is NOT theCOMMENT
LOWserver/src/providers/modelscope.ts120 // Step 2: the actual auth check — a minimal 1-token completion.COMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWserver/src/providers/modelscope.ts102 // Step 1: pick a live model id for the auth probe. This call is NOT theCOMMENT
LOWserver/src/providers/modelscope.ts120 // Step 2: the actual auth check — a minimal 1-token completion.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMserver/src/__tests__/lib/structured-output.test.ts26 const r = enforceJsonContent('Sure! Here is the requested JSON: {"name":"Ada","tags":["a","b"]} Let me know if you nCODE