AI Slop Code RIsk Monitor

tobi/qmd

mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local

8.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for tobi/qmd, a TypeScript project with 30,316 GitHub stars. SynthScan examined 72,397 lines of code across 204 source files, recording 374 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 8.3 (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.

8.3
Adjusted Signal
8.3
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
30.3K
Stars
TypeScript
Language
72.4K
Lines of Code
204
Files
374
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 14.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.9/100 · LOW

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

Agent Over-Engineering Ratio 24.6/100 · LOW

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

PR Review Velocity Impact 38.7/100 · MEDIUM

Which changes need focused human review? 374 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 1HIGH 8MEDIUM 143LOW 222

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 374 distinct pattern matches across 17 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 Separators57 hits · 186 pts
SeverityFileLineSnippetContext
MEDIUM⚡example-index.yml12# ─── Global context ──────────────────────────────────────────────────────────COMMENT
MEDIUM⚡example-index.yml17# ─── Terminal hyperlinks (optional) ──────────────────────────────────────────COMMENT
MEDIUM⚡example-index.yml22# ─── Model overrides (optional) ──────────────────────────────────────────────COMMENT
MEDIUM⚡example-index.yml31# ─── Collections ─────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡example-index.yml34 # ── Basic: just a path and a pattern ───────────────────────────────────────COMMENT
MEDIUM⚡example-index.yml41 # ── Hierarchical context: path-prefix → description ────────────────────────COMMENT
MEDIUMexample-index.yml52 # ── Auto-update: run a command before re-indexing ──────────────────────────COMMENT
MEDIUMexample-index.yml63 # ── Ignore patterns: exclude files from indexing ───────────────────────────COMMENT
MEDIUMexample-index.yml79 # ── Exclude from default searches ──────────────────────────────────────────COMMENT
MEDIUMexample-index.yml89 # ── Everything together ────────────────────────────────────────────────────COMMENT
MEDIUMfinetune/eval_retrieval.py37# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py39# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py75# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py77# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py154# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py156# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py255# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py257# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py328# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py330# =============================================================================COMMENT
MEDIUMfinetune/reward.py25# =============================================================================COMMENT
MEDIUMfinetune/reward.py27# =============================================================================COMMENT
MEDIUMfinetune/reward.py86# =============================================================================COMMENT
MEDIUMfinetune/reward.py88# =============================================================================COMMENT
MEDIUMfinetune/reward.py136# =============================================================================COMMENT
MEDIUMfinetune/reward.py138# =============================================================================COMMENT
MEDIUMfinetune/reward.py263# =============================================================================COMMENT
MEDIUMfinetune/reward.py265# =============================================================================COMMENT
MEDIUM⚡finetune/reward.py644# =============================================================================COMMENT
MEDIUM⚡finetune/reward.py646# =============================================================================COMMENT
MEDIUMfinetune/reward.py662# =============================================================================COMMENT
MEDIUMfinetune/reward.py664# =============================================================================COMMENT
MEDIUMfinetune/dataset/schema.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py78# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py80# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡finetune/dataset/schema.py138# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡finetune/dataset/schema.py140# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/jobs/eval_common.py15# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval_common.py17# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval_common.py242# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval_common.py244# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py81# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py83# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py308# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py310# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py362# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py364# =============================================================================COMMENT
MEDIUMsrc/index.ts309 // ── Search ──────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts323 // ── Document Retrieval ──────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts334 // ── Collection Management ───────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts367 // ── Context Management ──────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts384 // ── Indexing ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts404 // ── Index Health ────────────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts412 // ── Lifecycle ───────────────────────────────────────────────────────COMMENT
Dead Code77 hits · 92 pts
SeverityFileLineSnippetContext
MEDIUMfinetune/train.py422CODE
MEDIUMfinetune/train.py423CODE
MEDIUMfinetune/train.py424CODE
MEDIUMfinetune/train.py425CODE
MEDIUMfinetune/train.py426CODE
MEDIUMfinetune/train.py427CODE
MEDIUMfinetune/train.py428CODE
MEDIUMfinetune/train.py430CODE
MEDIUMfinetune/train.py431CODE
MEDIUMfinetune/train.py434CODE
MEDIUMfinetune/train.py435CODE
MEDIUMfinetune/train.py437CODE
MEDIUMfinetune/train.py440CODE
MEDIUMfinetune/train.py442CODE
MEDIUMfinetune/train.py448CODE
MEDIUMfinetune/train.py449CODE
MEDIUMfinetune/train.py457CODE
MEDIUMfinetune/train.py458CODE
MEDIUMfinetune/train.py463CODE
MEDIUMfinetune/train.py464CODE
MEDIUMfinetune/train.py473CODE
MEDIUMfinetune/train.py474CODE
MEDIUMfinetune/train.py475CODE
MEDIUMfinetune/train.py476CODE
MEDIUMfinetune/train.py480CODE
MEDIUMfinetune/train.py481CODE
MEDIUMfinetune/train.py483CODE
MEDIUMfinetune/train.py491CODE
MEDIUMfinetune/train.py492CODE
MEDIUMfinetune/train.py493CODE
MEDIUMfinetune/train.py494CODE
MEDIUMfinetune/train.py497CODE
MEDIUMfinetune/train.py498CODE
MEDIUMfinetune/train.py499CODE
MEDIUMfinetune/train.py500CODE
MEDIUMfinetune/train.py511CODE
MEDIUMfinetune/train.py512CODE
MEDIUMfinetune/train.py517CODE
MEDIUMfinetune/train.py518CODE
MEDIUMfinetune/train.py523CODE
MEDIUMfinetune/train.py527CODE
MEDIUMfinetune/train.py528CODE
MEDIUMfinetune/train.py529CODE
MEDIUMfinetune/train.py532CODE
MEDIUMfinetune/train.py542CODE
MEDIUMfinetune/train.py543CODE
MEDIUMfinetune/train.py546CODE
MEDIUMfinetune/train.py547CODE
MEDIUMfinetune/train.py548CODE
MEDIUMfinetune/train.py550CODE
MEDIUMfinetune/train.py552CODE
MEDIUMfinetune/train.py553CODE
MEDIUMfinetune/train.py554CODE
MEDIUMfinetune/train.py557CODE
MEDIUMfinetune/train.py558CODE
MEDIUMfinetune/train.py559CODE
MEDIUMfinetune/train.py560CODE
MEDIUMfinetune/train.py561CODE
MEDIUMfinetune/train.py566CODE
MEDIUMfinetune/train.py567CODE
17 more matches not shown…
Hyper-Verbose Identifiers85 hits · 74 pts
SeverityFileLineSnippetContext
LOWtools/oxlint/anti-slop/shared/reflect-method.ts24export function isGlobalReflectMethodCall(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts142function isEffectivelyEmptyTypeLiteral(type: ESTree.TSTypeLiteral): boolean {CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts146function isEffectivelyEmptyInterface(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts158function resolvedSubstitutionArgument(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts307export function classifyUnsafeDictionaryValue(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts467export function isPopulatedObjectExpression(expression: ESTree.Expression): boolean {CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts480export function isKnownEvidenceExpression(expression: ESTree.Expression): boolean {CODE
LOW…ols/oxlint/anti-slop/shared/lexical-type-parameters.ts14function collectInferTypeParameterNames(CODE
LOW…ols/oxlint/anti-slop/shared/lexical-type-parameters.ts35export function lexicalTypeParameterNames(CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts18function unwrapExpressionParentheses(expression: ESTree.Expression): ESTree.Expression {CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts143function isDefinitelyNarrowerRecordType(type: ESTree.TSType): boolean {CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts171function resolvedVariableForIdentifier(CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts6function isTypeAssertionExpression(node: ESTree.Node): node is TypeAssertionExpression {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts10function unwrapParenthesizedExpression(expression: ESTree.Expression): ESTree.Expression {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts27function isOutermostAssertionInChain(node: TypeAssertionExpression): boolean {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts39function isForbiddenAssertionChain(node: TypeAssertionExpression): boolean {CODE
LOWtools/oxlint/anti-slop/rules/no-known-value-widening.ts125function isDictionaryAccumulatorTarget(destination: WideningTarget): boolean {CODE
LOW…/anti-slop/rules/no-conditional-empty-object-spread.ts16function isConditionalEmptyObjectSpread(node: ESTree.Expression): boolean {CODE
LOW…ls/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts60function isInsideTypeAliasDeclaration(node: ESTree.Node): boolean {CODE
LOW…ols/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts6function containsForbiddenSymbolName(name: string): boolean {CODE
LOWtest/metadata-search.test.ts291 async function insertLongDocumentWithExcludedCopy(vectors: number[][]): Promise<void> {CODE
LOWtest/store-cjk-fts.test.ts165 const startIdx = storeSrc.indexOf("function rebuildFTSForCjkNormalization(");CODE
LOWfinetune/convert_onnx.py294def write_transformers_js_config(onnx_dir: str, quantize_type: str = "q4"):CODE
LOW⚡finetune/reward.py634def extract_query_from_prompt(prompt: str) -> str:CODE
LOWfinetune/jobs/eval_common.py218def extract_query_from_prompt(prompt):CODE
LOWsrc/vec-layout.ts102export function createVectorMetadataTables(db: Database): void {CODE
LOWsrc/vec-layout.ts121export function createPartitionedVecTable(db: Database, dimensions: number): void {CODE
LOWsrc/vec-layout.ts190export function deletePartitionRowsOfHash(db: Database, hash: string): void {CODE
LOWsrc/metadata-format.ts56export function formatMetadataKeySummaries(result: ListMetadataResult, options: FormatMetadataOptions): string {CODE
LOWsrc/trust.ts106export function resolveConfigCollectionPath(rawPath: string, configPath: string): string {CODE
LOWsrc/trust.ts126export function isCollectionPathInsideProject(configPath: string, rawPath: string): boolean {CODE
LOWsrc/trust.ts272export function isLocalConfigTrustOptedIn(env: NodeJS.ProcessEnv = process.env): boolean {CODE
LOWsrc/metadata-store.ts165function isDocumentMetadataCurrent(db: Database, documentId: number): boolean {CODE
LOWsrc/metadata-store.ts180export function countDocumentsPendingMetadata(db: Database, collectionNames?: string[]): number {CODE
LOWsrc/metadata-store.ts515export function listMetadataCollectionSummaries(db: Database, keyLimit: number = DEFAULT_METADATA_KEY_LIMIT): Map<stringCODE
LOWsrc/metadata-store.ts580export function countDocumentsWithMetadata(db: Database, collectionNames?: string[]): number {CODE
LOWsrc/collections.ts276export function getDefaultCollectionNames(): string[] {CODE
LOWsrc/store-migrations.ts173export function deleteVectorlessContentVectors(db: Database): number {CODE
LOWsrc/store-migrations.ts200function partitionedTableDimensions(db: Database): number | null | undefined {CODE
LOWsrc/llm.ts38export function setNodeLlamaCppModuleForTest(module: NodeLlamaCppModule | null): void {CODE
LOWsrc/llm.ts130export function setLlamaDirWritableForTest(writable: boolean | undefined): void {CODE
LOWsrc/llm.ts671export function resolveParallelismOverride(envValue = process.env.QMD_EMBED_PARALLELISM): number | undefined {CODE
LOWsrc/llm.ts714export function computeGpuContextPoolSize(options: {CODE
LOWsrc/llm.ts777async function disposeSequenceThenContext(CODE
LOWsrc/llm.ts2202export function isDarwinMetalMitigationActive(): boolean {CODE
LOWsrc/llm.ts2221export function isDarwinExitGuardInstalled(): boolean {CODE
LOWsrc/metadata.ts139function hasFrontmatterFileExtension(path: string): boolean {CODE
LOWsrc/store.ts418export function chunkDocumentWithBreakPoints(CODE
LOWsrc/store.ts564export function getRelativePathFromPrefix(path: string, prefix: string): string | null {CODE
LOWsrc/store.ts893function createSqliteVecUnavailableError(reason: string): Error {CODE
LOWsrc/store.ts1048function documentsFtsSchemaIsCurrent(db: Database): boolean {CODE
LOWsrc/store.ts1141function rebuildFTSForCjkNormalization(db: Database): void {CODE
LOWsrc/store.ts1758function deleteFileSyncStateForCollection(db: Database, collectionName: string, relPath: string): void {CODE
LOWsrc/store.ts2155function validatePositiveIntegerOption(name: string, value: number | undefined, fallback: number): number {CODE
LOWsrc/store.ts2179function isContentVectorColumnError(error: unknown): boolean {CODE
LOWsrc/store.ts2198function ensureContentVectorsStatusIndex(db: Database): void {CODE
LOWsrc/store.ts2211function runContentVectorColumnRepairs(db: Database): void {CODE
LOWsrc/store.ts2933export function getEmbeddingVectorSamples(db: Database, model: string, fingerprint: string, sampleSize: number = 3): EmbCODE
LOWsrc/store.ts2956export function getHashesNeedingEmbedding(db: Database, collection?: string, model: string = DEFAULT_EMBED_MODEL): numbeCODE
LOWsrc/store.ts2990export async function maybeAdoptLegacyEmbeddingFingerprint(store: Store, model: string = DEFAULT_EMBED_MODEL): Promise<LCODE
25 more matches not shown…
Verbosity Indicators29 hits · 50 pts
SeverityFileLineSnippetContext
LOW⚡migrate-schema.ts31 // Step 1: Add collection column to documentsCOMMENT
LOW⚡migrate-schema.ts36 // Step 2: Populate collection names from collections tableCOMMENT
LOW⚡migrate-schema.ts47 // Step 3: Verify no NULL valuesCOMMENT
LOW⚡migrate-schema.ts57 // Step 4: Create new documents table without collection_idCOMMENT
LOWmigrate-schema.ts76 // Step 5: Copy dataCOMMENT
LOW⚡migrate-schema.ts88 // Step 6: Drop old table and rename new oneCOMMENT
LOW⚡migrate-schema.ts94 // Step 7: Recreate indicesCOMMENT
LOW⚡migrate-schema.ts100 // Step 8: Update FTS trigger to use collection nameCOMMENT
LOWfinetune/convert_gguf.py117 # Step 1: Load and mergeCOMMENT
LOW⚡finetune/convert_gguf.py133 # Step 2: Save merged modelCOMMENT
LOW⚡finetune/convert_gguf.py139 # Step 3: Setup llama.cppCOMMENT
LOW⚡finetune/convert_gguf.py147 # Step 4: Convert to FP16 GGUFCOMMENT
LOWfinetune/convert_gguf.py161 # Step 5: QuantizeCOMMENT
LOWfinetune/convert_gguf.py180 # Step 6: UploadCOMMENT
LOW⚡src/store.ts6397 // Step 4: RRF fusion — original-query FTS and vector lists get 2x weight;COMMENT
LOW⚡src/store.ts6406 // Step 5: Chunk documents, pick best chunk per doc for reranking.COMMENT
LOW⚡src/store.ts6788 // Step 3: RRF fusion — first list gets 2x weight (assume caller ordered by importance)COMMENT
LOW⚡src/store.ts6798 // Step 4: Chunk documents, pick best chunk per doc for rerankingCOMMENT
LOWsrc/store.ts6284 // Step 1: BM25 probe — strong signal skips expensive LLM expansionCOMMENT
LOWsrc/store.ts6300 // Step 2: Expand query (or skip if strong signal)COMMENT
LOWsrc/store.ts6319 // Step 3: Route searches by query typeCOMMENT
LOWsrc/store.ts6484 // Step 6: Rerank chunks (NOT full bodies)COMMENT
LOWsrc/store.ts6498 // Step 7: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts6550 // Step 8: Dedup by file (safety net — prevents duplicate output)COMMENT
LOWsrc/store.ts6728 // Step 1: Run FTS for all lex searches (sync, instant)COMMENT
LOWsrc/store.ts6747 // Step 2: Batch embed and run vector searches for vec/hydeCOMMENT
LOWsrc/store.ts6879 // Step 5: Rerank chunksCOMMENT
LOWsrc/store.ts6893 // Step 6: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts6944 // Step 7: Dedup by fileCOMMENT
Structural Annotation Overuse29 hits · 50 pts
SeverityFileLineSnippetContext
LOW⚡migrate-schema.ts31 // Step 1: Add collection column to documentsCOMMENT
LOW⚡migrate-schema.ts36 // Step 2: Populate collection names from collections tableCOMMENT
LOW⚡migrate-schema.ts47 // Step 3: Verify no NULL valuesCOMMENT
LOW⚡migrate-schema.ts57 // Step 4: Create new documents table without collection_idCOMMENT
LOWmigrate-schema.ts76 // Step 5: Copy dataCOMMENT
LOW⚡migrate-schema.ts88 // Step 6: Drop old table and rename new oneCOMMENT
LOW⚡migrate-schema.ts94 // Step 7: Recreate indicesCOMMENT
LOW⚡migrate-schema.ts100 // Step 8: Update FTS trigger to use collection nameCOMMENT
LOWfinetune/convert_gguf.py117 # Step 1: Load and mergeCOMMENT
LOW⚡finetune/convert_gguf.py133 # Step 2: Save merged modelCOMMENT
LOW⚡finetune/convert_gguf.py139 # Step 3: Setup llama.cppCOMMENT
LOW⚡finetune/convert_gguf.py147 # Step 4: Convert to FP16 GGUFCOMMENT
LOWfinetune/convert_gguf.py161 # Step 5: QuantizeCOMMENT
LOWfinetune/convert_gguf.py180 # Step 6: UploadCOMMENT
LOW⚡src/store.ts6397 // Step 4: RRF fusion — original-query FTS and vector lists get 2x weight;COMMENT
LOW⚡src/store.ts6406 // Step 5: Chunk documents, pick best chunk per doc for reranking.COMMENT
LOW⚡src/store.ts6788 // Step 3: RRF fusion — first list gets 2x weight (assume caller ordered by importance)COMMENT
LOW⚡src/store.ts6798 // Step 4: Chunk documents, pick best chunk per doc for rerankingCOMMENT
LOWsrc/store.ts6284 // Step 1: BM25 probe — strong signal skips expensive LLM expansionCOMMENT
LOWsrc/store.ts6300 // Step 2: Expand query (or skip if strong signal)COMMENT
LOWsrc/store.ts6319 // Step 3: Route searches by query typeCOMMENT
LOWsrc/store.ts6484 // Step 6: Rerank chunks (NOT full bodies)COMMENT
LOWsrc/store.ts6498 // Step 7: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts6550 // Step 8: Dedup by file (safety net — prevents duplicate output)COMMENT
LOWsrc/store.ts6728 // Step 1: Run FTS for all lex searches (sync, instant)COMMENT
LOWsrc/store.ts6747 // Step 2: Batch embed and run vector searches for vec/hydeCOMMENT
LOWsrc/store.ts6879 // Step 5: Rerank chunksCOMMENT
LOWsrc/store.ts6893 // Step 6: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts6944 // Step 7: Dedup by fileCOMMENT
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHfinetune/train_unsloth.py114except ImportError:CODE
HIGHfinetune/train.py409except Exception:CODE
HIGHfinetune/train.py628except Exception:CODE
HIGHfinetune/train.py644except Exception:CODE
HIGHfinetune/train.py202except ValueError:CODE
HIGHfinetune/experiments/gepa/generate.py47except json.JSONDecodeError:CODE
HIGHfinetune/experiments/gepa/dspy_gepa.py100except Exception:CODE
Excessive Try-Catch Wrapping19 hits · 22 pts
SeverityFileLineSnippetContext
LOWfinetune/train_unsloth.py169 except Exception as e:CODE
LOWfinetune/train_unsloth.py180 except Exception as e:CODE
MEDIUMfinetune/eval_retrieval.py368 print(f"Error: Golden data file not found: {args.golden}", file=sys.stderr)CODE
LOWfinetune/train.py279 except Exception:CODE
LOWfinetune/train.py409 except Exception:CODE
LOWfinetune/train.py454 except Exception:CODE
LOWfinetune/train.py628 except Exception:CODE
LOWfinetune/train.py644 except Exception:CODE
LOWfinetune/dataset/validate_schema.py38 except Exception as e:CODE
MEDIUMfinetune/dataset/prepare_data.py111 print(f"Error: No files found matching: {args.input}")CODE
MEDIUMfinetune/dataset/prepare_data.py117 print(f"Error: Input file not found: {input_path}")CODE
MEDIUMfinetune/dataset/analyze_data.py218 print(f"Error: Could not find dataset at {input_path}")CODE
LOW⚡finetune/dataset/schema.py133 except Exception as e:CODE
LOWfinetune/dataset/schema.py186 except Exception:CODE
LOWfinetune/dataset/schema.py220 except Exception:CODE
LOWfinetune/experiments/gepa/dspy_gepa.py100 except Exception:CODE
MEDIUMfinetune/experiments/gepa/dspy_gepa.py140 print("Error: DSPy expects provider/model format for LM strings (e.g., xai/grok-4-1-fast-reasoning).")CODE
LOWfinetune/experiments/gepa/example.py114 except Exception as exc:CODE
LOWfinetune/experiments/gepa/score.py32 except Exception:CODE
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippetContext
LOWfinetune/train_unsloth.py26CODE
LOWfinetune/benchmark.py62CODE
LOWfinetune/eval_retrieval.py79CODE
LOWfinetune/eval_retrieval.py115CODE
LOWfinetune/eval_retrieval.py332CODE
LOWfinetune/reward.py90CODE
LOWfinetune/reward.py140CODE
LOWfinetune/reward.py267CODE
LOWfinetune/reward.py408CODE
LOWfinetune/dataset/analyze_data.py84CODE
LOWfinetune/dataset/analyze_data.py196CODE
LOWfinetune/dataset/schema.py142CODE
LOWfinetune/experiments/gepa/generate.py32CODE
LOWfinetune/jobs/eval_common.py42CODE
LOWfinetune/jobs/eval_common.py67CODE
LOWfinetune/jobs/eval.py108CODE
LOWfinetune/jobs/eval.py133CODE
LOWfinetune/jobs/eval.py204CODE
Unused Imports17 hits · 16 pts
SeverityFileLineSnippetContext
LOWfinetune/train_unsloth.py14CODE
LOWfinetune/train_unsloth.py67CODE
LOWfinetune/train_unsloth.py111CODE
LOWfinetune/train.py44CODE
LOWfinetune/convert_onnx.py44CODE
LOWfinetune/convert_onnx.py45CODE
LOWfinetune/dataset/validate_schema.py8CODE
LOWfinetune/dataset/score_data.py8CODE
LOWfinetune/dataset/prepare_data_lfm2.py14CODE
LOWfinetune/dataset/schema.py16CODE
LOWfinetune/experiments/gepa/generate.py4CODE
LOWfinetune/experiments/gepa/dspy_gepa.py4CODE
LOWfinetune/experiments/gepa/example.py4CODE
LOWfinetune/experiments/gepa/optimizer.py4CODE
LOWfinetune/experiments/lfm2/sft_lfm2.py38CODE
LOWfinetune/jobs/eval.py23CODE
LOWfinetune/jobs/eval.py26CODE
Over-Commented Block17 hits · 15 pts
SeverityFileLineSnippetContext
LOWexample-index.yml1# QMD Collections ConfigurationCOMMENT
LOWtest/smoke-install.sh1#!/usr/bin/env bashCOMMENT
LOWtest/store-cjk-fts.test.ts181 // API. Any .all() used for the source-body scan must be paired with aCOMMENT
LOWfinetune/convert_gguf.py1#!/usr/bin/env python3COMMENT
LOWfinetune/train.py1# /// scriptCOMMENT
LOWfinetune/convert_onnx.py1#!/usr/bin/env python3COMMENT
LOWfinetune/experiments/lfm2/sft_lfm2.yaml1# SFT Training Config for QMD Query Expansion with LiquidAI LFM2COMMENT
LOWfinetune/experiments/lfm2/sft_lfm2.py1# /// scriptCOMMENT
LOWfinetune/experiments/grpo/grpo.py1# /// scriptCOMMENT
LOWfinetune/jobs/sft.py1# /// scriptCOMMENT
LOWscripts/extract-changelog.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/release.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/llm.ts2161 if (!defaultSessionManager) return true;COMMENT
LOWsrc/llm.ts2181// node/src/api/environment.cc).COMMENT
LOWsrc/store.ts941 // produced, and that tokenizer splits document text on every separator.COMMENT
LOWsrc/store.ts1141function rebuildFTSForCjkNormalization(db: Database): void {COMMENT
LOWsrc/store.ts3621): { id: number; hash: string; title: string } | null {COMMENT
Fake / Example Data11 hits · 11 pts
SeverityFileLineSnippetContext
LOWtest/store.test.ts2869 const padLine = "Lorem ipsum dolor sit amet\n";CODE
LOWtest/store.test.ts2869 const padLine = "Lorem ipsum dolor sit amet\n";CODE
LOWtest/store.test.ts2883 const padding = "Lorem ipsum dolor sit amet\n".repeat(200);CODE
LOWtest/store.test.ts2883 const padding = "Lorem ipsum dolor sit amet\n".repeat(200);CODE
LOWtest/mcp.test.ts173 body: "# Large Document\n\n" + "Lorem ipsum ".repeat(2000), // ~24KBCODE
LOWtest/structured-search.test.ts360 const filler = "lorem ipsum dolor sit amet consectetur adipiscing elit ".repeat(40);CODE
LOWtest/structured-search.test.ts360 const filler = "lorem ipsum dolor sit amet consectetur adipiscing elit ".repeat(40);CODE
LOWtest/ast-chunking.test.ts116 sections.push(`# Section ${i}\n\n${"Lorem ipsum dolor sit amet. ".repeat(40)}\n`);CODE
LOWtest/ast-chunking.test.ts116 sections.push(`# Section ${i}\n\n${"Lorem ipsum dolor sit amet. ".repeat(40)}\n`);CODE
LOWtest/store-cjk-fts.test.ts229 const bigBody = "lorem ipsum dolor sit amet ".repeat(450); // ~12 KBCODE
LOWtest/store-cjk-fts.test.ts229 const bigBody = "lorem ipsum dolor sit amet ".repeat(450); // ~12 KBCODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtest/metadata-surfaces.test.ts446 expect(secondPage.json.result.structuredContent.keys.map((summary: { key: string }) => summary.key)).toEqual(["topicCODE
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtest/store-fts-separator-queries.test.ts63 "gateway #1: feat: flash-and-forget gateway scaffold, compose stack + cloud-init provisioning (PIO-1384)";CODE
MEDIUMfinetune/experiments/lfm2/sft_lfm2.yaml5# Recommended for: agentic tasks, data extraction, RAG, creative writing.COMMENT
MEDIUMfinetune/experiments/lfm2/sft_lfm2.yaml5# Recommended for: agentic tasks, data extraction, RAG, creative writing.COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHfinetune/train.py419 print(" cd finetune && uv run python experiments/grpo/grpo.py")CODE
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUM⚡example-index.yml4# This file is the single source of truth for your collections. EveryCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/smoke-install.sh6# Usage:COMMENT
Redundant / Tautological Comments1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfinetune/train.py266 # Check if output looks like a HF Hub path (contains /)COMMENT