AI Slop Code Risk Monitor

ggml-org/llama.cpp

SlopCodeMonitor badge for ggml-org/llama.cpp Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

LLM inference in C/C++

3.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ggml-org/llama.cpp, a C++ project with 132,913 GitHub stars. SynthScan examined 1,005,790 lines of code across 2812 source files, recording 2687 pattern matches distributed across 26 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-31
Last Push
132.9K
Stars
C++
Language
1.0M
Lines of Code
2.8K
Files
2.7K
Pattern Hits
2026-10-31
Scan Date
0.03
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 11.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.1/100 · LOW

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

Agent Over-Engineering Ratio 6.1/100 · LOW

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

PR Review Velocity Impact 16.4/100 · LOW

Which changes need focused human review? 2687 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 16HIGH 67MEDIUM 222LOW 2382

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 2687 distinct pattern matches across 26 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.

Over-Commented Block1091 hits · 1070 pts
SeverityFileLineSnippetContext
LOWtools/quantize/quantize.cpp1#include "llama.h"COMMENT
LOWtools/ui/eslint.config.js201 // Blank line around if blocks (if/else and else if stay one statement).COMMENT
LOW…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts1// Tier 1 perf harness for the agentic thread.COMMENT
LOWtools/ui/scripts/dev.sh1#!/bin/bashCOMMENT
LOWtools/ui/src/lib/vendors/decimal.js/decimal.js41 // The maximum number of significant digits of the result of a calculation or base conversion.COMMENT
LOWtools/ui/src/lib/vendors/decimal.js/decimal.js61COMMENT
LOWtools/ui/src/lib/vendors/decimal.js/decimal.js1181 // If the result is known to have an infinite decimal expansion, repeat this until it is clearCOMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js1/*COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js4061 }COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js5561 // if (a.isSQRT()) {COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js1/*COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js201// CoreDeps - Centralized Dependency Registry ==================================COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js9141 // Whether to wrap numbers in bracketsCOMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js11461}COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js11741 // a = _.parse(bigDec.exp(bigDec(i).toPower(2).neg().dividedBy(bigDec(n).pow(2).plus(bigDec(COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js13721 const ret = _.callfunction(fnName, fnArgs);COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js13741 // else if(getter instanceof Slice) {COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js16461 return symB.clone();COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Calculus.js1/*COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Extra.js1/*COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js481 /** @type {NerdamerSymbolType} */ (_.parse(es[1]))COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js1061 // _.parse(delta0);COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js1441 // Nothing we can doCOMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js1641 *COMMENT
LOWtools/ui/src/lib/constants/auto-scroll.constants.ts1// Rows at the end of the list that mount eagerly, so the first paintedCOMMENT
LOWtools/ui/src/lib/utils/search-results.ts21const SEPARATOR_LINE_RE = /^\s*---\s*$/;COMMENT
LOWtools/cvector-generator/pca.hpp1#include "common.h"COMMENT
LOWtools/cvector-generator/cvector-generator.cpp1#include "ggml.h"COMMENT
LOWtools/cvector-generator/cvector-generator.cpp21#include <algorithm>COMMENT
LOWtools/mtmd/mtmd.h1#ifndef MTMD_HCOMMENT
LOWtools/mtmd/mtmd.h181MTMD_API const char * mtmd_get_marker(const mtmd_context * ctx);COMMENT
LOWtools/mtmd/mtmd.h221// - does not hold the actual dataCOMMENT
LOWtools/mtmd/mtmd.h301COMMENT
LOWtools/mtmd/mtmd.h321// 1. "here is an image: <start_of_image>"COMMENT
LOWtools/mtmd/mtmd.h421MTMD_API void mtmd_audio_stream_free(mtmd_audio_stream * stream);COMMENT
LOWtools/mtmd/mtmd-helper.cpp1// fix problem with std::min and std::maxCOMMENT
LOWtools/mtmd/mtmd-helper.cpp21#include <vector>COMMENT
LOWtools/mtmd/mtmd-helper.cpp41#error "mtmd-helper is a public library outside of mtmd. it must not include internal headers"COMMENT
LOWtools/mtmd/clip-graph.h1#pragma onceCOMMENT
LOWtools/mtmd/tests.sh141# to test the huge models, run: ./tests.sh hugeCOMMENT
LOWtools/mtmd/mtmd.cpp1#include "clip.h"COMMENT
LOWtools/mtmd/mtmd.cpp21#include <algorithm>COMMENT
LOWtools/mtmd/mtmd-helper-common.h1#pragma onceCOMMENT
LOWtools/mtmd/clip.cpp1#include "clip.h"COMMENT
LOWtools/mtmd/mtmd-image.cpp201 // Pillow-compatible separable resampling (Bilinear, Bicubic and Lanczos)COMMENT
LOWtools/mtmd/mtmd-image.cpp281 // Parameters:COMMENT
LOWtools/mtmd/mtmd-helper.h1#ifndef MTMD_HELPER_HCOMMENT
LOWtools/mtmd/mtmd-helper.h61 bool placeholder,COMMENT
LOWtools/mtmd/mtmd-helper.h81// helper to count the total number of tokens from a list of chunks, useful to keep track of KV cacheCOMMENT
LOWtools/mtmd/clip-impl.h1#pragma onceCOMMENT
LOWtools/mtmd/clip-impl.h21#ifdef _WIN32COMMENT
LOWtools/mtmd/clip-impl.h41COMMENT
LOWtools/mtmd/clip-impl.h61#define KEY_PREPROC_MAX_PIXELS_TOLERANCE "clip.vision.preproc_max_pixels_tolerance"COMMENT
LOWtools/mtmd/clip-impl.h81#define KEY_MINICPMV_QUERY_NUM "clip.minicpmv_query_num"COMMENT
LOWtools/mtmd/clip-impl.h101#define KEY_A_WA_PATTERN_MODE "clip.audio.wa_pattern_mode" // mimo-audio-tokenizer, per-layer -1 (full) / 0 (wCOMMENT
LOWtools/mtmd/clip-impl.h121#define TN_CLASS_EMBD "v.class_embd"COMMENT
LOWtools/mtmd/clip-impl.h141#define TN_FFN_DOWN_EXPS "%s.blk.%d.ffn_down_exps.%s"COMMENT
LOWtools/mtmd/clip-impl.h161#define TN_IMAGE_SEPERATOR "v.view_seperator"COMMENT
LOWtools/mtmd/clip-impl.h181// lfm3vlCOMMENT
LOWtools/mtmd/clip-impl.h201#define TN_VIT_MERGER_ATTN_O "v.vit_merger.attn_out.%s"COMMENT
1031 more matches not shown…
Hyper-Verbose Identifiers519 hits · 478 pts
SeverityFileLineSnippetContext
LOWtools/ui/tests/unit/agentic-strip.test.ts11function stripLegacyContextMarkers(content: string): string {CODE
LOWtools/ui/scripts/vite-plugin-splash-screen.ts22export function generateSplashScreenLinks(outDir: string): string[] {CODE
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js353 (function extendSimplifyForEquations() {CODE
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js355 _.functions.simplify[0] = function simplifyWithEquationSupport(symbol) {CODE
LOWtools/ui/src/lib/contexts/chat-form-actions.context.ts10export function setChatFormActionsContext(ctx: ChatFormActionsContext): ChatFormActionsContext {CODE
LOWtools/ui/src/lib/contexts/chat-form-actions.context.ts17export function getChatFormActionsContext(): ChatFormActionsContext {CODE
LOW…ls/ui/src/lib/contexts/chat-message-actions.context.ts10export function setChatMessageActionsContext(CODE
LOW…ls/ui/src/lib/contexts/chat-message-actions.context.ts19export function getChatMessageActionsContext(): ChatMessageActionsContext {CODE
LOWtools/ui/src/lib/contexts/chat-message-edit.context.ts10export function setChatMessageEditContext(ctx: ChatMessageEditContext): ChatMessageEditContext {CODE
LOWtools/ui/src/lib/contexts/chat-message-edit.context.ts17export function getChatMessageEditContext(): ChatMessageEditContext {CODE
LOWtools/ui/src/lib/constants/browser-info.ts24export function buildBrowserInfoToolDefinition(): OpenAIToolDefinition {CODE
LOWtools/ui/src/lib/constants/read-media.ts39export function buildReadMediaToolDefinition(CODE
LOWtools/ui/src/lib/constants/get-datetime.ts6export function buildGetDatetimeToolDefinition(): OpenAIToolDefinition {CODE
LOWtools/ui/src/lib/stores/chat/context-stats.svelte.ts46function summarizeAssistantTimings(messages: DatabaseMessage[]): AssistantTimingsSummary {CODE
LOW…/ui/src/lib/stores/conversations/preferences.svelte.ts23function loadReasoningEffortDefault(): ReasoningEffort {CODE
LOW…/ui/src/lib/stores/conversations/preferences.svelte.ts36function saveReasoningEffortDefault(effort: ReasoningEffort): void {CODE
LOW…/ui/src/lib/stores/conversations/preferences.svelte.ts67function buildDisabledToolCategories(conv: DatabaseConversation | null): Set<ToolSource> {CODE
LOWtools/ui/src/lib/utils/parse-exec-shell-error.ts1export function parseExecShellCommandError(CODE
LOWtools/ui/src/lib/utils/sandbox-tool.ts25export function buildSandboxToolDefinition(includeSymbolicMath: boolean): OpenAIToolDefinition {CODE
LOWtools/ui/src/lib/utils/audio-recording.ts255export function isAudioRecordingSupported(): boolean {CODE
LOWtools/ui/src/lib/utils/jpeg-orientation.ts12export function getJpegOrientationFromDataURL(base64UrlJpeg: string): number {CODE
LOWtools/ui/src/lib/utils/sanitize.ts21export function sanitizeKeyValuePairValue(raw: string): string {CODE
LOWtools/ui/src/lib/utils/mention-token.ts72export function takeMentionDismissSnapshot(CODE
LOWtools/ui/src/lib/utils/modality-file-validation.ts17export function isFileTypeSupportedByModel(CODE
LOWtools/ui/src/lib/utils/modality-file-validation.ts137export function generateModalityErrorMessage(CODE
LOWtools/ui/src/lib/utils/clipboard.ts108export function formatMessageForClipboard(CODE
LOWtools/ui/src/lib/utils/clipboard.ts265function isValidMcpPromptAttachment(obj: unknown): obj is {CODE
LOWtools/ui/src/lib/utils/glob-search.ts74export async function runGlobSearchWithChildren(CODE
LOWtools/ui/src/lib/utils/parse-exec-shell-status.ts24export function parseExecShellCommandExitStatus(CODE
LOWtools/ui/src/lib/utils/compaction.ts132export function lastContextBearingMessage(CODE
LOWtools/ui/src/lib/utils/text.ts15export function generateConversationTitle(content: string, useFirstLine: boolean = false): string {CODE
LOWtools/ui/src/lib/utils/mcp.ts53export function detectMcpTransportFromUrl(url: string): MCPTransportType {CODE
LOWtools/ui/src/lib/utils/mcp.ts402export function getMcpServerFaviconFallback(serverUrl: string): string | null {CODE
LOW…ls/ui/src/lib/utils/chat-template-thinking-detector.ts67export function detectThinkingSupportWithReason(t: string): { supported: boolean; reason: string } {CODE
LOWtools/ui/src/lib/utils/code.ts30export function splitGluedClosingCodeFences(markdown: string): string {CODE
LOWtools/ui/src/lib/utils/code.ts147export function detectIncompleteCodeBlock(markdown: string): IncompleteCodeBlock | null {CODE
LOWtools/ui/src/lib/utils/image-error-fallback.ts5export function getImageErrorFallbackHtml(src: string): string {CODE
LOWtools/ui/src/lib/utils/command-token.ts27export function takeCommandDismissSnapshot(value: string): CommandDismissSnapshot | null {CODE
LOWtools/ui/src/lib/utils/agentic.ts551export function isSectionExpandedByDefault(CODE
LOWtools/ui/src/lib/utils/convert-files-to-extra.ts31export async function parseFilesToMessageExtras(CODE
LOW…ols/ui/src/lib/utils/chat-form-input-rich-tokenizer.ts705export function stripBlockBoundaryLineBreaks(root: HTMLElement): boolean {CODE
LOWtools/ui/src/lib/utils/file-type.ts114export function getFileTypeCategoryByExtension(filename: string): FileTypeCategory | null {CODE
LOWtools/ui/src/lib/utils/process-uploaded-files.ts56export async function processFilesToChatUploaded(CODE
LOWtools/ui/src/lib/utils/request-helpers.ts87export function formatDiagnosticErrorMessage(error: unknown): string {CODE
LOWtools/ui/src/lib/utils/attachment-display.ts49export function getAttachmentDisplayItems(CODE
LOW…ttings/SettingsChat/SettingsChatImportExportTab.svelte44 function handleSettingsExportConfirm() {CODE
LOW…ttings/SettingsChat/SettingsChatImportExportTab.svelte69 function handleSettingsExportCancel() {CODE
LOW…s/app/chat/ChatMessages/ChatMessage/ChatMessage.svelte318 function handleRegenerateCompaction() {CODE
LOW…s/app/chat/ChatMessages/ChatMessage/ChatMessage.svelte408 function handleShowDeleteDialogChange(show: boolean) {CODE
LOW…sage/ChatMessageToolCall/parsers/exec-shell-command.ts18export function parseExecShellCommandMeta(section: AgenticSection): ExecShellCommandMeta | null {CODE
LOW…i/src/lib/components/app/chat/ChatForm/ChatForm.svelte176 async function handleWorkingDirectoryChange(newDir: string | null) {CODE
LOW…p/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte97 function highlightCodeBlockElement(el: HTMLElement): boolean {CODE
LOW…p/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte142 function rehighlightCaretCodeBlock() {CODE
LOW…p/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte467 function moveCaretBeforeLeadingCodeBlock(key: string, extend: boolean): boolean {CODE
LOW…c/lib/components/app/chat/ChatScreen/ChatScreen.svelte205 function handleErrorDialogOpenChange(open: boolean) {CODE
LOW…nts/app/content/MarkdownContent/MarkdownContent.svelte252 function handlePreviewDialogOpenChange(open: boolean) {CODE
LOW…nts/app/content/MarkdownContent/MarkdownContent.svelte625 function handleMermaidPreviewOpenChange(open: boolean) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts72export function createHandlePreviewDialogOpenChange(previewState: PreviewState) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts73 return function handlePreviewDialogOpenChange(open: boolean) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts182export function createHandleMermaidPreviewOpenChange(mermaidState: MermaidPreviewState) {CODE
459 more matches not shown…
Decorative Section Separators87 hits · 279 pts
SeverityFileLineSnippetContext
MEDIUM⚡tools/mtmd/clip.cpp5376 // ├─────┤ │COMMENT
MEDIUM⚡tools/mtmd/clip.cpp5378 // ├─────┤ │COMMENT
MEDIUM⚡tools/mtmd/clip.cpp5380 // └─────┘ │COMMENT
MEDIUM⚡tools/mtmd/clip.cpp5381 // ──────┘ x BCOMMENT
MEDIUMdocs/backend/OPENVINO.md242# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md244# ============================================COMMENT
MEDIUM⚡docs/backend/OPENVINO.md273# ============================================COMMENT
MEDIUM⚡docs/backend/OPENVINO.md275# ============================================COMMENT
MEDIUM⚡docs/backend/OPENVINO.md281# ============================================COMMENT
MEDIUM⚡docs/backend/OPENVINO.md284# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md311# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md313# ============================================COMMENT
MEDIUM…com/arm/aichat/internal/gguf/GgufMetadataReaderImpl.kt120 // ── 1. header ──────────────────────────────────────────────────────────COMMENT
MEDIUM…com/arm/aichat/internal/gguf/GgufMetadataReaderImpl.kt129 // ── 3. build structured object ────────────────────────────────────────COMMENT
MEDIUMexamples/llama.android/lib/src/main/cpp/CMakeLists.txt14# --------------------------------------------------------------------------COMMENT
MEDIUMexamples/llama.android/lib/src/main/cpp/CMakeLists.txt16# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py77# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py79# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py242# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py244# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py273# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py275# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1076# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1078# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1089# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1091# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py99# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py254# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py256# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py337# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py339# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py372# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py374# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py913# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py915# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py927# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py929# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py102# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py258# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py260# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py355# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py357# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py970# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py972# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py984# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py986# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py156# ------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py158# ------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py286# ------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py288# ------------------------COMMENT
MEDIUMscripts/snapdragon/qdc/run_qdc_jobs.py113# =============================================================================COMMENT
MEDIUMscripts/snapdragon/qdc/run_qdc_jobs.py115# =============================================================================COMMENT
27 more matches not shown…
Deep Nesting234 hits · 218 pts
SeverityFileLineSnippetContext
LOWconvert_lora_to_gguf.py58CODE
LOWconvert_lora_to_gguf.py225CODE
LOWconvert_hf_to_gguf.py30CODE
LOWconvert_hf_to_gguf.py179CODE
LOWconvert_llama_ggml_to_gguf.py204CODE
LOWconvert_llama_ggml_to_gguf.py287CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py202CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py312CODE
LOWtools/server/bench/bench.py24CODE
LOWtools/server/tests/utils.py390CODE
LOWtools/server/tests/utils.py451CODE
LOWtools/server/tests/unit/test_mcp_servers.py621CODE
LOWtools/server/tests/unit/test_router.py34CODE
LOWtools/server/tests/unit/test_router.py581CODE
LOWtools/server/tests/unit/test_vision_api.py8CODE
LOWtools/server/tests/unit/test_chat_completion.py402CODE
LOWtools/server/tests/unit/test_slot_save.py702CODE
LOWtools/server/tests/unit/test_completion.py493CODE
LOWgguf-py/gguf/gguf_writer.py114CODE
LOWgguf-py/gguf/gguf_writer.py335CODE
LOWgguf-py/gguf/gguf_writer.py443CODE
LOWgguf-py/gguf/gguf_writer.py1378CODE
LOWgguf-py/gguf/gguf_writer.py1818CODE
LOWgguf-py/gguf/vocab.py179CODE
LOWgguf-py/gguf/vocab.py213CODE
LOWgguf-py/gguf/metadata.py240CODE
LOWgguf-py/gguf/metadata.py365CODE
LOWgguf-py/gguf/gguf_reader.py62CODE
LOWgguf-py/gguf/gguf_reader.py335CODE
LOWgguf-py/gguf/constants.py6612CODE
LOWgguf-py/gguf/scripts/gguf_new_metadata.py103CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py448CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py495CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py643CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py784CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py938CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1062CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1131CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1476CODE
LOWgguf-py/gguf/scripts/gguf_dump.py32CODE
LOWgguf-py/gguf/scripts/gguf_dump.py153CODE
LOWgguf-py/gguf/scripts/gguf_dump.py228CODE
LOWgguf-py/gguf/scripts/gguf_dump.py444CODE
LOWgguf-py/tests/test_quants.py147CODE
LOWgguf-py/tests/test_quants.py90CODE
LOWtests/test_conversion_fp8.py104CODE
LOWtests/test_conversion_fp8.py182CODE
LOWtests/test_conversion_fp8.py204CODE
LOWtests/test_conversion_fp8.py231CODE
LOWtests/test_conversion_fp8.py266CODE
LOWtests/test_conversion_fp8.py285CODE
LOWtests/test_conversion_fp8.py313CODE
LOWtests/test-tokenizer-random.py255CODE
LOWtests/test-tokenizer-random.py267CODE
LOWexamples/pydantic_models_to_grammar_examples.py89CODE
LOWexamples/convert_legacy_llama.py699CODE
LOWexamples/convert_legacy_llama.py1100CODE
LOWexamples/convert_legacy_llama.py773CODE
LOWexamples/pydantic_models_to_grammar.py55CODE
LOWexamples/pydantic_models_to_grammar.py280CODE
174 more matches not shown…
Excessive Try-Catch Wrapping142 hits · 211 pts
SeverityFileLineSnippetContext
LOWconvert_hf_to_gguf_update.py289 except Exception as e:STRING
LOWconvert_hf_to_gguf_update.py324 except Exception as e:STRING
LOWtools/server/bench/bench.py59 except Exception:CODE
LOWtools/server/bench/bench.py85 except Exception:CODE
LOWtools/server/bench/speed-bench/speed_bench.py252 except Exception as exc:CODE
LOWtools/server/bench/speed-bench/speed_bench.py389 except Exception as exc:CODE
LOWtools/server/bench/speed-bench/speed_bench_compare.py73 except Exception as exc:CODE
LOWtools/server/tests/utils.py352 except Exception as e:CODE
LOWtools/server/tests/utils.py379 except Exception as e:CODE
MEDIUMtools/server/tests/utils.py380 print(f"Error waiting for server: {e}")CODE
LOWtools/server/tests/utils.py730 except Exception as e:CODE
MEDIUMtools/server/tests/utils.py726def worker(index, func, args):CODE
LOWtools/server/tests/unit/test_tools_builtin.py163 except Exception as e:CODE
LOWtools/server/tests/unit/test_mcp_servers.py669 except Exception:STRING
MEDIUMtools/server/tests/unit/test_router.py173def _run(self, fn):CODE
LOWtools/server/tests/unit/test_router.py176 except Exception as e:CODE
LOWtools/server/tests/unit/test_router.py603 except Exception:CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py923 except Exception as e:CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1588 except Exception as e:CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py66 print(f"Error: unknown tool {json_data['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py142 print(f"Error: unknown tool {json_data['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py285 print(f"Error: unknown tool {call['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar.py1001 print(f"An error occurred while saving the grammar file: {e}")CODE
MEDIUMexamples/pydantic_models_to_grammar.py1008 print(f"An error occurred while saving the documentation file: {e}")CODE
MEDIUM⚡examples/llama-eval/llama-eval.py2607 print(f"Error: --grader-type exec is only meaningful for code suites "STRING
MEDIUM⚡examples/llama-eval/llama-eval.py2616 print(f"Error: --server ({len(server_urls)} URLs) and --threads ({len(thread_counts)} values) must have the sameSTRING
MEDIUM⚡examples/llama-eval/llama-eval.py2623 print(f"Error: --server-name ({len(server_names)} names) and --server ({len(server_urls)} URLs) must have thSTRING
MEDIUMexamples/llama-eval/llama-eval.py1949 print(f"Error: Cannot reach server {server_config.name} ({server_config.url}): {e}", file=sys.stderr)STRING
MEDIUMexamples/llama-eval/llama-eval.py2634 print(f"Error: --api-key ({len(api_keys)} keys) must be a single key or "STRING
MEDIUMexamples/llama-eval/llama-eval.py2653 print("Error: GPQA dataset requires --grader-type llm")STRING
MEDIUMexamples/llama-eval/llama-eval.py2663 print(f"Error: Model mismatch. State has '{eval_state.model_name}', but --model is '{args.model}'")STRING
MEDIUMexamples/llama-eval/llama-eval.py2689 print("Error: --grader-type llm requires --grader-model or --model")STRING
MEDIUMexamples/llama-eval/llama-eval.py2702 print("Error: No existing eval state found to resume")STRING
MEDIUMexamples/llama-eval/llama-eval.py2708 print("Error: --grader-type llm requires --grader-model or --model")STRING
LOWexamples/llama-eval/llama-eval.py1495 except Exception:STRING
LOWexamples/llama-eval/llama-eval.py1836 except Exception as e:STRING
LOWexamples/llama-eval/llama-eval.py1878 except Exception as e:STRING
LOWexamples/llama-eval/llama-eval.py1948 except Exception as e:STRING
LOWexamples/llama-eval/llama-eval.py2067 except Exception as e:STRING
LOWexamples/llama-eval/llama-eval.py2106 except Exception as e:STRING
LOWexamples/llama-eval/agentic_eval.py236 except Exception as e:CODE
LOWexamples/llama-eval/agentic_eval.py393 except Exception:CODE
LOWexamples/llama-eval/agentic_eval.py397except Exception as e:CODE
LOWexamples/llama-eval/agentic_eval.py496 except Exception as e:STRING
LOWexamples/llama-eval/agentic_eval.py662 except Exception as e:STRING
MEDIUMexamples/llama-eval/agentic_eval.py270def _t_search(self, a):CODE
LOWexamples/llama-eval/eval_sandbox.py86 except Exception:CODE
LOWexamples/llama-eval/eval_sandbox.py115 except Exception:CODE
LOWexamples/llama-eval/eval_sandbox.py130 except Exception:CODE
LOWexamples/llama-eval/eval_sandbox.py260 except Exception:CODE
LOWexamples/llama-eval/eval_sandbox.py387 except Exception:CODE
LOWexamples/llama-eval/eval_sandbox.py448 except Exception as e:CODE
LOWexamples/llama-eval/eval_sandbox.py473 except Exception as e:CODE
MEDIUMexamples/llama-eval/eval_sandbox.py257def _stamp_matches(self) -> bool:CODE
LOWexamples/llama-eval/llama-server-simulator.py364 except Exception as e:CODE
MEDIUMexamples/llama-eval/llama-server-simulator.py365 print(f"Error processing request: {e}")CODE
LOW…ples/model-conversion/scripts/causal/compare-logits.py18 except Exception as e:CODE
MEDIUM…ples/model-conversion/scripts/causal/compare-logits.py52 print(f"Error: PyTorch logits file not found: {pytorch_file}")CODE
MEDIUM…ples/model-conversion/scripts/causal/compare-logits.py57 print(f"Error: llama.cpp logits file not found: {llamacpp_file}")CODE
MEDIUM…mples/model-conversion/scripts/causal/run-org-model.py118 print("Error: Model path must be specified either via --model-path argument or MODEL_PATH environment variable")CODE
82 more matches not shown…
Unused Imports200 hits · 196 pts
SeverityFileLineSnippetContext
LOWconvert_lora_to_gguf.py4CODE
LOWconvert_hf_to_gguf.py4CODE
LOWconvert_llama_ggml_to_gguf.py2CODE
LOW…legacy-models/glmedge-convert-image-encoder-to-gguf.py8CODE
LOW…ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py8CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py414CODE
LOWtools/server/bench/bench.py1CODE
LOWtools/server/bench/speed-bench/speed_bench.py2CODE
LOWtools/server/bench/speed-bench/speed_bench_compare.py2CODE
LOWtools/server/bench/speed-bench/speed_bench_compare.py9CODE
LOWtools/server/tests/conftest.py4CODE
LOWtools/server/tests/utils.py17CODE
LOWtools/server/tests/utils.py17CODE
LOWtools/server/tests/unit/test_infill.py2CODE
LOWtools/server/tests/unit/test_basic.py4CODE
LOWtools/server/tests/unit/test_security.py3CODE
LOWtools/server/tests/unit/test_tools_builtin.py6CODE
LOWtools/server/tests/unit/test_sleep.py3CODE
LOWtools/server/tests/unit/test_metrics.py2CODE
LOWtools/server/tests/unit/test_mcp_servers.py19CODE
LOWtools/server/tests/unit/test_mcp_servers.py21CODE
LOWtools/server/tests/unit/test_router.py4CODE
LOWtools/server/tests/unit/test_ctx_shift.py2CODE
LOWtools/server/tests/unit/test_systemone.py2CODE
LOWtools/server/tests/unit/test_speculative.py2CODE
LOWtools/server/tests/unit/test_compat_oai_responses.py3CODE
LOWtools/server/tests/unit/test_tool_call.py10CODE
LOWtools/server/tests/unit/test_vision_api.py2CODE
LOWtools/server/tests/unit/test_rerank.py2CODE
LOWtools/server/tests/unit/test_embedding.py5CODE
LOWtools/server/tests/unit/test_ignore_eos.py2CODE
LOWtools/server/tests/unit/test_chat_completion.py3CODE
LOWtools/server/tests/unit/test_tokenize.py2CODE
LOWtools/server/tests/unit/test_kv_keep_only_active.py4CODE
LOWtools/server/tests/unit/test_compat_gcp.py2CODE
LOWtools/server/tests/unit/test_proxy.py2CODE
LOWtools/server/tests/unit/test_slot_save.py2CODE
LOWtools/server/tests/unit/test_completion.py7CODE
LOWtools/server/tests/unit/test_compat_anthropic.py6CODE
LOWtools/server/tests/unit/test_template.py13CODE
LOWtools/server/tests/unit/test_stream.py7CODE
LOWtools/server/tests/unit/test_lora.py2CODE
LOWgguf-py/gguf/gguf_writer.py1CODE
LOWgguf-py/gguf/vocab.py1CODE
LOWgguf-py/gguf/metadata.py1CODE
LOWgguf-py/gguf/gguf_reader.py5CODE
LOWgguf-py/gguf/tensor_mapping.py1CODE
LOWgguf-py/gguf/utility.py1CODE
LOWgguf-py/gguf/constants.py1CODE
LOWgguf-py/gguf/__init__.py1CODE
LOWgguf-py/gguf/__init__.py2CODE
LOWgguf-py/gguf/__init__.py3CODE
LOWgguf-py/gguf/__init__.py4CODE
LOWgguf-py/gguf/__init__.py5CODE
LOWgguf-py/gguf/__init__.py6CODE
LOWgguf-py/gguf/__init__.py7CODE
LOWgguf-py/gguf/__init__.py8CODE
LOWgguf-py/gguf/__init__.py9CODE
LOWgguf-py/gguf/lazy.py1CODE
LOWgguf-py/gguf/quants.py1CODE
140 more matches not shown…
Hallucination Indicators16 hits · 180 pts
SeverityFileLineSnippetContext
CRITICALtools/imatrix/imatrix.cpp1836 const bool use_draft = !params.speculative.draft.mparams.path.empty();CODE
CRITICALtools/imatrix/imatrix.cpp1988 model_draft.reset(llama_model_load_from_file(params.speculative.draft.mparams.path.c_str(), mparams_sidecar));CODE
CRITICALtools/imatrix/imatrix.cpp1990 LOG_ERR("%s: failed to load the draft model '%s'\n", __func__, params.speculative.draft.mparams.path.c_str()CODE
CRITICALapp/download.cpp66 if (!params.speculative.draft.mparams.path.empty()) {CODE
CRITICALapp/download.cpp67 printf("%s\n", params.speculative.draft.mparams.path.c_str());CODE
CRITICALtests/test-model-resolution.cpp2751 REQUIRE(params.speculative.draft.mparams.path.empty());CODE
CRITICALtests/test-model-resolution.cpp2759 REQUIRE(params.speculative.draft.mparams.path.empty());CODE
CRITICALcommon/arg.cpp383 if (!params.speculative.draft.mparams.hf_repo.empty()) {CODE
CRITICALcommon/arg.cpp495 if (!params.speculative.draft.mparams.url.empty()) {CODE
CRITICALcommon/arg.cpp523 if (!params.speculative.draft.mparams.hf_file.empty()) {CODE
CRITICALcommon/arg.cpp552 if (spec_types_is_default(params) && !params.speculative.draft.mparams.path.empty()) {CODE
CRITICAL⚡common/arg.cpp567 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICAL⚡common/arg.cpp577 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICAL⚡common/arg.cpp587 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICAL⚡common/arg.cpp597 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICALexamples/speculative/speculative.cpp58 if (params.speculative.draft.mparams.path.empty()) {CODE
Empty Error Handlers29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtools/server/tests/utils.py352except Exception as e:CODE
HIGHtools/server/tests/unit/test_mcp_servers.py472except RuntimeError:CODE
HIGHtools/server/tests/unit/test_mcp_servers.py483except RuntimeError:CODE
HIGHtools/server/tests/unit/test_mcp_servers.py669except Exception:CODE
HIGHtools/server/tests/unit/test_router.py603except Exception:CODE
HIGHtools/server/tests/unit/test_completion.py647except requests.exceptions.ReadTimeout:CODE
HIGHgguf-py/gguf/vocab.py457except FileNotFoundError:CODE
HIGHgguf-py/gguf/vocab.py530except FileNotFoundError:CODE
HIGHgguf-py/gguf/metadata.py310except ValueError:CODE
HIGHgguf-py/gguf/scripts/gguf_editor_gui.py242except (ValueError, KeyError):CODE
HIGHgguf-py/gguf/scripts/gguf_editor_gui.py724except (ValueError, KeyError):CODE
HIGHgguf-py/gguf/scripts/gguf_editor_gui.py1058except (ValueError, KeyError):CODE
HIGHgguf-py/gguf/scripts/gguf_editor_gui.py1285except (ValueError, KeyError):CODE
HIGHexamples/convert_legacy_llama.py1252except FileNotFoundError:CODE
HIGHexamples/llama-eval/llama-eval.py2354except ValueError:CODE
HIGHexamples/llama-eval/agentic_eval.py128except (UnicodeDecodeError, OSError):CODE
HIGHexamples/llama-eval/eval_sandbox.py86except Exception:CODE
HIGHexamples/llama-eval/eval_sandbox.py115except Exception:CODE
HIGHexamples/llama-eval/eval_sandbox.py387except Exception:CODE
HIGHexamples/llama-eval/eval_sandbox.py204except (ValueError, OSError):CODE
HIGHexamples/llama-eval/eval_sandbox.py487except ProcessLookupError:CODE
HIGHscripts/compare-llama-bench.py808except ValueError:CODE
HIGHscripts/snapdragon/ggml-hexagon-inspect.py246except Exception:CODE
HIGHscripts/snapdragon/sdk.py52except RuntimeError:CODE
HIGHscripts/snapdragon/qdc/tests/utils.py88except ValueError:CODE
HIGHconversion/rwkv.py67except KeyError:CODE
HIGHconversion/kimi_linear.py27except Exception:CODE
HIGHconversion/qwen3tts.py104except FileNotFoundError:CODE
HIGHconversion/deepseek.py275except Exception:CODE
Structural Annotation Overuse71 hits · 130 pts
SeverityFileLineSnippetContext
LOWtools/ui/scripts/make-icons-circular.js89 // Step 1: Scale source relative to circle diameter (not full icon), composite centered onto white canvas of full sizeCOMMENT
LOWtools/ui/scripts/make-icons-circular.js101 // Step 2: Composite scaled image onto white background, then apply circular maskCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts206 // Step 0: Temporarily remove blockquote markers (>) to process LaTeX correctlyCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts224 // Step 1: Protect code blocksCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts233 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts272 // Step 3: Escape standalone $ before digits (currency like $5 → \$5)COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts276 // Step 4: Restore protected LaTeX expressions (they are valid)COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts295 // Step 5: Apply additional escaping functions (brackets and mhchem)COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts303 // Step 6: Convert remaining \(...\) → $...$, \[...\] → $$...$$COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts321 // Step 7: Restore code blocksCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts327 // Step 8: Restore blockquote markersCOMMENT
LOWtools/mtmd/models/mobilenetv5.cpp217 // Step 1: Compute Q @ K.TCOMMENT
LOWinclude/llama.h1322 /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. See more: httpsCOMMENT
LOW⚡tests/test-backend-ops.cpp2071 // Step 1: create input tensors that don't depend on any other tensors:COMMENT
LOW⚡tests/test-backend-ops.cpp2078 // Step 2: use the op that you want to test in the GGML compute graph.COMMENT
LOW⚡tests/test-backend-ops.cpp2082 // Step 3: return the output tensor.COMMENT
LOW⚡docs/development/debugging-tests.md41#### Step 1: Reset and Setup folder contextCOMMENT
LOW⚡docs/development/debugging-tests.md49#### Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOW⚡docs/development/debugging-tests.md58#### Step 3: Find all tests available that matches REGEXCOMMENT
LOWdocs/development/debugging-tests.md86#### Step 4: Identify Test Command for DebuggingCOMMENT
LOWdocs/development/debugging-tests.md92#### Step 5: Run GDB on test commandCOMMENT
LOWscripts/check-requirements.sh8# WARNING: This is quite IO intensive, because a fresh venv is set up for everyCOMMENT
LOWscripts/debug-test.sh62# Step 0: Check the argsCOMMENT
LOWscripts/debug-test.sh95# Step 1: Reset and Setup folder contextCOMMENT
LOW⚡scripts/debug-test.sh109# Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOW⚡scripts/debug-test.sh118# Step 3: Find all tests available that matches REGEXCOMMENT
LOWscripts/debug-test.sh134# Step 4: Identify Test Command for DebuggingCOMMENT
LOWscripts/debug-test.sh171# Step 5: Execute or GDB DebugCOMMENT
LOWskills/code-review/SKILL.md17## Step 0 - Scope the diff and pick the checklistsCOMMENT
LOWskills/add-new-model/SKILL.md21## Step 0 - Scope and dedup checkCOMMENT
LOW⚡skills/add-new-model/SKILL.md33## Step 1 - Convert the model to GGUFCOMMENT
LOW⚡skills/add-new-model/SKILL.md39## Step 2 - Define the architecture in llama.cppCOMMENT
LOW⚡skills/add-new-model/SKILL.md45## Step 3 - Build the GGML graphCOMMENT
LOW⚡skills/add-new-model/SKILL.md51## Step 4 - Optional: multimodal encoderCOMMENT
LOW⚡skills/add-new-model/SKILL.md57## Step 5 - Optional: chat template / parsing supportCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c84 // Step 1: sum for meanCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c110 // Step 2: compute (x - mean) → dst, accumulate varianceCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c143 // Step 3: apply scale to centered values in dstCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c100 // Step 1: Compute sum of squares using 8-wide vectorsCOMMENT
LOW⚡ggml/src/ggml-et/et-kernels/src/rms_norm_f32.c124 // Step 2: scale = rsqrt(mean + eps)COMMENT
LOW⚡ggml/src/ggml-et/et-kernels/src/rms_norm_f32.c132 // Step 3: Apply scaling: broadcast scale once, reuse across loopCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c177 // Step 1: sa = dot(a, state_prev[i])COMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c196 // Step 2: state update + result accumulationCOMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp318 // Step 1: Apply decay gate to stateCOMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp323 // Step 2: delta = (v - S @ k) * betaCOMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp330 // Step 3: state += outer(delta, k)COMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp336 // Step 4: attn_out = S @ q * scaleCOMMENT
LOW⚡ggml/src/ggml-metal/CMakeLists.txt118 # Step 1: concatenate shared headers + this kernel sourceCOMMENT
LOW⚡ggml/src/ggml-metal/CMakeLists.txt120 # Step 2: remove internal #include and #pragma onceCOMMENT
LOW⚡ggml/src/ggml-metal/CMakeLists.txt122 # Step 3: inline ggml-common.h (replacing __embed_ggml-common.h__ sentinel)COMMENT
LOW⚡ggml/src/ggml-metal/CMakeLists.txt124 # Step 4: inline ggml-metal-impl.hCOMMENT
LOW⚡ggml/src/ggml-metal/CMakeLists.txt126 # Step 5: emit an asm chunk with kind-specific start/end symbolsCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp2853 // Step 5: multiply by attn_factorCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp2870 // Step 6: repeatCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3134 // Step 1: Prepare trans tensors for F16 type conversion to F32 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3159 // Step 2: Prepare head tensors for tail splitting if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3188 // Step 3: Execute RotaryPositionEmbeddingCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3235 // Step 4: Copy unrotated tail portion from source to destinationCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3264 // Step 5: Cast back to F16 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3950 // Step 1: cast the src0 (Query) to fp16 if neededCOMMENT
11 more matches not shown…
Cross-File Repetition25 hits · 125 pts
SeverityFileLineSnippetContext
HIGH…legacy-models/glmedge-convert-image-encoder-to-gguf.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGH…ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGH…egacy-models/minicpmv-convert-image-encoder-to-gguf.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGHgguf-py/gguf/vocab.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-grammar-integration.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-grammar-integration.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-grammar-integration.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
HIGHtests/test-grammar-integration.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
Redundant / Tautological Comments69 hits · 121 pts
SeverityFileLineSnippetContext
LOWtools/mtmd/tests.sh18# Check if the first argument is "big", then run test with big modelsCOMMENT
LOWtools/mtmd/tests.sh42# Check if the second argument is "flash", then enable flash attentionCOMMENT
LOWtools/server/tests/utils.py354 # Check if process diedCOMMENT
LOWtools/server/tests/utils.py743 # Check if there were any exceptionsCOMMENT
LOWtools/server/tests/unit/test_compat_anthropic.py293 # Check if model used the tool (it might not always, depending on the model)COMMENT
LOWgguf-py/gguf/metadata.py261 # Check if we erroneously matched against './' or '../' etc...COMMENT
LOWgguf-py/gguf/metadata.py457 # Check if Hugging Face ID is present in URLCOMMENT
LOWgguf-py/gguf/metadata.py515 # Check if Hugging Face ID is present in URLCOMMENT
LOWgguf-py/gguf/gguf_reader.py80 # Check if it's unsafe to perform slice optimization on dataCOMMENT
LOWgguf-py/gguf/gguf_reader.py246 # Check if it's a simple scalar type.COMMENT
LOWgguf-py/gguf/utility.py207 # Check if we have enough data to read the metadataCOMMENT
LOW⚡gguf-py/gguf/scripts/gguf_editor_gui.py1150 # Check if this is an enum fieldCOMMENT
LOW⚡gguf-py/gguf/scripts/gguf_editor_gui.py1155 # Check if it's a nameCOMMENT
LOW⚡gguf-py/gguf/scripts/gguf_editor_gui.py1160 # Check if it's a number or "NAME (value)" formatCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py965 # Check if this is an enum arrayCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py972 # Check if this is an enum fieldCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1072 # Check if this field has an enum typeCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1317 # Check if this is one of the linked tokenizer keysCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1431 # Check if key already existsCOMMENT
LOWgguf-py/gguf/scripts/gguf_dump.py336 # Check if new Tensor GroupCOMMENT
LOWtests/test-lora-conversion-inference.sh139# Print resultsCOMMENT
LOWexamples/convert_legacy_llama.py1200 # Check if it's a set of safetensors files firstCOMMENT
LOWexamples/pydantic_models_to_grammar.py490 # Check if the field is optional (not required)COMMENT
LOWexamples/pydantic_models_to_grammar.py96 if not parts: # Check if the list is emptyCODE
LOWexamples/llama-eval/llama-server-simulator.py127 # Check if question text is contained in the cleaned requestCOMMENT
LOW…mples/model-conversion/scripts/utils/perplexity-gen.sh16# Check if data/wikitext-2-raw directory existsCOMMENT
LOW…odel-conversion/scripts/utils/perplexity-run-simple.sh15# Check if data/wikitext-2-raw directory existsCOMMENT
LOWexamples/model-conversion/scripts/utils/common.py65 # Check if there's an overlap between first and last indices or if we're at the edge case of s = 2 * max_seqCOMMENT
LOW…model-conversion/scripts/utils/hf-create-collection.py23 # Check if HF_TOKEN is availableCOMMENT
LOW⚡…mples/model-conversion/scripts/utils/semantic_check.py40 # Check if this is pooled (single embedding) or per-token embeddingsCOMMENT
LOW…mples/model-conversion/scripts/utils/semantic_check.py85 # Check if the distance of each token embedding from the origin and compareCOMMENT
LOWscripts/release.sh77 # Check if we have the latest from master (skip in dry-run)COMMENT
LOWscripts/compare-llama-bench.py187 # Check if all required Python libraries are installed. Would have failed earlier if not.STRING
LOW⚡scripts/verify-checksum-models.py31# Check if the hash list file existsCOMMENT
LOWscripts/verify-checksum-models.py54 # Check if the file existsCOMMENT
LOWscripts/verify-checksum-models.py70 # Add the results to the arrayCOMMENT
LOWscripts/verify-checksum-models.py82# Output the results as a tableCOMMENT
LOWscripts/apple/validate-macos.sh688# Check if authentication credentials are providedCOMMENT
LOW⚡scripts/apple/validate-macos.sh707# Check if app was created successfullyCOMMENT
LOW⚡scripts/apple/validate-macos.sh715# Check if app binary exists and is executableCOMMENT
LOW⚡scripts/apple/validate-macos.sh723# Check if framework was properly embeddedCOMMENT
LOW⚡scripts/apple/validate-macos.sh731# Check if framework binary existsCOMMENT
LOWscripts/apple/validate-visionos.sh682# Check if authentication credentials are providedCOMMENT
LOW⚡scripts/apple/validate-visionos.sh707# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOW⚡scripts/apple/validate-visionos.sh716 # Check if IPA was created successfullyCOMMENT
LOW⚡scripts/apple/validate-visionos.sh724 # Check if app binary exists and is executableCOMMENT
LOW⚡scripts/apple/validate-visionos.sh732 # Check if framework was properly embeddedCOMMENT
LOW⚡scripts/apple/validate-visionos.sh740 # Check if framework binary existsCOMMENT
LOWscripts/apple/validate-ios.sh691# Check if authentication credentials are providedCOMMENT
LOW⚡scripts/apple/validate-ios.sh716# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOW⚡scripts/apple/validate-ios.sh725 # Check if IPA was created successfullyCOMMENT
LOW⚡scripts/apple/validate-ios.sh733 # Check if app binary exists and is executableCOMMENT
LOW⚡scripts/apple/validate-ios.sh741 # Check if framework was properly embeddedCOMMENT
LOW⚡scripts/apple/validate-ios.sh749 # Check if framework binary existsCOMMENT
LOWscripts/apple/validate-tvos.sh684# Check if authentication credentials are providedCOMMENT
LOW⚡scripts/apple/validate-tvos.sh709# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOW⚡scripts/apple/validate-tvos.sh718 # Check if IPA was created successfullyCOMMENT
LOW⚡scripts/apple/validate-tvos.sh726 # Check if app binary exists and is executableCOMMENT
LOW⚡scripts/apple/validate-tvos.sh734 # Check if framework was properly embeddedCOMMENT
LOW⚡scripts/apple/validate-tvos.sh742 # Check if framework binary existsCOMMENT
9 more matches not shown…
Verbosity Indicators53 hits · 94 pts
SeverityFileLineSnippetContext
LOWtools/ui/scripts/make-icons-circular.js89 // Step 1: Scale source relative to circle diameter (not full icon), composite centered onto white canvas of full sizeCOMMENT
LOWtools/ui/scripts/make-icons-circular.js101 // Step 2: Composite scaled image onto white background, then apply circular maskCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts206 // Step 0: Temporarily remove blockquote markers (>) to process LaTeX correctlyCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts224 // Step 1: Protect code blocksCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts233 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts272 // Step 3: Escape standalone $ before digits (currency like $5 → \$5)COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts276 // Step 4: Restore protected LaTeX expressions (they are valid)COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts295 // Step 5: Apply additional escaping functions (brackets and mhchem)COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts303 // Step 6: Convert remaining \(...\) → $...$, \[...\] → $$...$$COMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts321 // Step 7: Restore code blocksCOMMENT
LOW⚡tools/ui/src/lib/utils/latex-protection.ts327 // Step 8: Restore blockquote markersCOMMENT
LOWtools/mtmd/models/mobilenetv5.cpp217 // Step 1: Compute Q @ K.TCOMMENT
LOW⚡tests/test-backend-ops.cpp2071 // Step 1: create input tensors that don't depend on any other tensors:COMMENT
LOW⚡tests/test-backend-ops.cpp2078 // Step 2: use the op that you want to test in the GGML compute graph.COMMENT
LOW⚡tests/test-backend-ops.cpp2082 // Step 3: return the output tensor.COMMENT
LOWscripts/debug-test.sh62# Step 0: Check the argsCOMMENT
LOWscripts/debug-test.sh95# Step 1: Reset and Setup folder contextCOMMENT
LOW⚡scripts/debug-test.sh109# Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOW⚡scripts/debug-test.sh118# Step 3: Find all tests available that matches REGEXCOMMENT
LOWscripts/debug-test.sh134# Step 4: Identify Test Command for DebuggingCOMMENT
LOWscripts/debug-test.sh171# Step 5: Execute or GDB DebugCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c84 // Step 1: sum for meanCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c110 // Step 2: compute (x - mean) → dst, accumulate varianceCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c143 // Step 3: apply scale to centered values in dstCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c100 // Step 1: Compute sum of squares using 8-wide vectorsCOMMENT
LOW⚡ggml/src/ggml-et/et-kernels/src/rms_norm_f32.c124 // Step 2: scale = rsqrt(mean + eps)COMMENT
LOW⚡ggml/src/ggml-et/et-kernels/src/rms_norm_f32.c132 // Step 3: Apply scaling: broadcast scale once, reuse across loopCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c177 // Step 1: sa = dot(a, state_prev[i])COMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c196 // Step 2: state update + result accumulationCOMMENT
LOWggml/src/ggml-webgpu/ggml-webgpu.cpp1454 // For set rows specifically, we need to check if src and idx are emptyCOMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp318 // Step 1: Apply decay gate to stateCOMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp323 // Step 2: delta = (v - S @ k) * betaCOMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp330 // Step 3: state += outer(delta, k)COMMENT
LOW⚡ggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp336 // Step 4: attn_out = S @ q * scaleCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp2853 // Step 5: multiply by attn_factorCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp2870 // Step 6: repeatCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3134 // Step 1: Prepare trans tensors for F16 type conversion to F32 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3159 // Step 2: Prepare head tensors for tail splitting if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3188 // Step 3: Execute RotaryPositionEmbeddingCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3235 // Step 4: Copy unrotated tail portion from source to destinationCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3264 // Step 5: Cast back to F16 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3950 // Step 1: cast the src0 (Query) to fp16 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3973 // Step 2: create the acl tensors for src1 (Key), src2 (Value),COMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp4017 // Step 3: create the PSEShift tensor if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp4086 // Step 4: set the inputs for FusedInferAttention.COMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp4147 // Step 6: post-processing — slice padded output and/or cast to f32COMMENT
LOWsrc/llama-sampler.cpp3417 // Step 1: Look for restart sequences to limit the maximum repetition length.COMMENT
LOWsrc/llama-sampler.cpp3478 // Step 2: Iterate in reverse over the last N tokens of the context, using the "Z-algorithm" (inCOMMENT
LOWsrc/llama-sampler.cpp3542 // Step 3: Iterate over dry_repeat_count and last_tokens, examining the maximum repeat lengthCOMMENT
LOWsrc/llama-sampler.cpp3569 // Step 4: Apply logit penalties based on the maximum repeat length for relevant tokens.COMMENT
LOWsrc/models/kimi-linear.cpp197 // Step 1: Q, K, V projections -> [d_inner, n_tokens]COMMENT
LOW⚡src/models/kimi-linear.cpp389 // Step 1: Q projection and reshapeCOMMENT
LOW⚡src/models/kimi-linear.cpp394 // Step 2: KV compressionCOMMENT
Modern AI Meta-Vocabulary31 hits · 91 pts
SeverityFileLineSnippetContext
MEDIUMtools/ui/tests/unit/partial-tool-call-cleanup.test.ts23// on Stop/Send immediately, mirroring what the agentic flow already does inCOMMENT
MEDIUMtools/ui/tests/unit/partial-tool-call-cleanup.test.ts67 // After Stop, savePartialResponseIfNeeded clears toolCalls and the agenticCOMMENT
MEDIUMtools/ui/tests/unit/agentic-hotpath.bench.ts1// Microbenchmarks for the functions on the agentic-thread streaming hot path.COMMENT
MEDIUMtools/ui/tests/unit/agentic-hotpath.bench.ts7// Run: npx vitest bench --project=unit tests/unit/agentic-hotpath.bench.tsCOMMENT
MEDIUMtools/ui/tests/unit/agentic-section-expansion.test.ts1// Truth table for the default expansion of agentic sections - what a tool callCOMMENT
MEDIUMtools/ui/tests/unit/agentic-section-expansion.test.ts4// The interesting row is a call the agentic loop reports as running while itsCOMMENT
MEDIUMtools/ui/tests/client/README-perf.md5## Tier 1 - `agentic-stream.perf.svelte.test.ts` (project: `client`, real Chromium)COMMENT
MEDIUMtools/ui/tests/client/README-perf.md52## Tier 2 - `../unit/agentic-hotpath.bench.ts` (project: `unit`, node)COMMENT
MEDIUM…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts1// Tier 1 perf harness for the agentic thread.COMMENT
MEDIUM…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts11// Run: npx vitest --project=client --run tests/client/agentic-stream.perf.svelte.test.tsCOMMENT
MEDIUM…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts380 // Baseline: plain text streaming, nothing agentic.COMMENT
MEDIUMtools/ui/src/lib/constants/agentic.constants.ts26// Separator between the assistant text sections of a grouped agenticCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts728 // If agentic loop is running, inject as a steering message instead of starting a new flowCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts735 // If non-agentic streaming is active, queue as a pending message to send after completionCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts946 // applied once covers the plain send, the agentic flow, and theCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts1212 // Update the first assistant message with cumulative agentic timingsCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts1262 // Generate LLM based title for new conversations after agentic flow completesCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/context-stats.svelte.ts110 // A running agentic flow stamps llm totals on messages only when itCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/context-stats.svelte.ts129 // Agentic sessions stamp the same agentic.llm totals onto everyCOMMENT
MEDIUMtools/ui/src/lib/utils/agentic.ts604 // Walk consecutive trailing tool results. The agentic loop only emits toolCOMMENT
MEDIUMtools/ui/src/lib/utils/index.ts390// Audio format helper (used by agentic store and chat service)COMMENT
MEDIUM…b/components/app/chat/ChatMessages/ChatMessages.svelte144 // Build display entries, grouping agentic sessions into single entries.COMMENT
MEDIUM…b/components/app/chat/ChatMessages/ChatMessages.svelte145 // An agentic session = assistant(with tool_calls) → tool → assistant → tool → ... → assistant(final)COMMENT
MEDIUM…app/chat/ChatMessages/ChatMessageAgenticContent.svelte99 // Cwd the agentic loop passes to tool calls in this conversation; the execCOMMENT
MEDIUM…/ChatMessages/ChatMessage/ChatMessageCompaction.svelte75 // A toggle by hand outranks the in-progress expansion, the way the agenticCOMMENT
MEDIUM…olCall/ChatMessageToolCallBlockExecShellCommand.svelte103 // value - it is what the agentic loop passes when executing the call.COMMENT
MEDIUM…ges/ChatMessage/ChatMessageUser/ChatMessageUser.svelte38 // For agentic turns, prefer the cumulative agentic.llm totals over per-call timings.COMMENT
MEDIUM…MessageAssistant/ChatMessageAssistantStatistics.svelte16 // A running agentic flow stamps per-turn timings on its root message at eachCOMMENT
MEDIUM…MessageAssistant/ChatMessageAssistantStatistics.svelte17 // turn boundary and the cumulative agentic totals only on exit; while it runs,COMMENT
MEDIUM…i/src/lib/components/app/chat/ChatForm/ChatForm.svelte156 // policy-aware, same rule as the agentic flow: MCP category on and atCOMMENT
MEDIUMexamples/llama-eval/llama-eval.py247# Extra construction options for the agentic suite, set from the CLI.STRING
Self-Referential Comments27 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUMbuild-xcframework.sh414 # Create a separate directory for dSYMs for all platformsCOMMENT
MEDIUMbuild-xcframework.sh422 # Create a copy of the binary that will be strippedCOMMENT
MEDIUMtools/server/tests/unit/test_mcp_servers.py490 # Create a minimal server that returns empty tools listCOMMENT
MEDIUMci/run.sh686 # Create a fresh python3 venv and enter itCOMMENT
MEDIUMgguf-py/gguf/metadata.py66 # Create a new Metadata instanceCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py42# Define the tokenizer keys that should be edited togetherCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py228 # Create a dialog with enum optionsCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py539 # Create a widget to hold the buttonCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py579 # Create a dialog with enum optionsCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py705 # Create a dialog with enum optionsCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py1271 # Create a dialog with enum optionsCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py186 # Define the rule identifier based on max_digit and min_digitCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py241 # Define the integer part ruleCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py248 # Define the fractional part rule based on precision constraintsCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py264 # Define the float ruleCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py370 # Defining the union grammar rule separatelyCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py1179 # Creating the dynamic modelCOMMENT
MEDIUM…model-conversion/scripts/utils/hf-create-collection.py39 # Create the collectionCOMMENT
MEDIUM⚡scripts/verify-checksum-models.py25# Define the path to the llama directory (parent folder of script directory)COMMENT
MEDIUM⚡scripts/verify-checksum-models.py28# Define the file with the list of hashes and filenamesCOMMENT
MEDIUM⚡scripts/verify-checksum-models.py40# Create an array to store the resultsCOMMENT
MEDIUMscripts/apple/validate-macos.sh574# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-macos.sh670# Create a zip file for potential distributionCOMMENT
MEDIUMscripts/apple/validate-visionos.sh568# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-ios.sh577# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-tvos.sh570# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUM.github/actions/windows-setup-rocm/action.yml17 # Create the venv directly at the cache location to avoid relocation issuesCOMMENT
AI Slop Vocabulary18 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMtools/ui/package-lock.json14864 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js3243 return symbol; // Absolutely nothing to doCODE
MEDIUMtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js3754 // this will also need utilize big number at some pointCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/streams.svelte.ts343 // the lookup by message id is robust to reordering of activeMessages, two parallel attachesCOMMENT
MEDIUMgguf-py/gguf/metadata.py394 # (Definitely not part of hugging face formal/informal standard)COMMENT
MEDIUMgguf-py/gguf/metadata.py410 # (Definitely not part of hugging face formal/informal standard... but with model_ appended to match their sCOMMENT
MEDIUMgguf-py/gguf/lazy.py49 # TODO: make this even more comprehensiveCOMMENT
LOWexamples/model-conversion/scripts/utils/common.py70 # If there's overlap, just use the combined unique indicesCOMMENT
MEDIUMexamples/embedding/embedding.cpp122 // utilize the full contextCOMMENT
LOWscripts/jinja/jinja-tester.py115 # Malformed template, just add the tokenCOMMENT
LOWscripts/jinja/jinja-tester.py134 # Malformed template, just add the tokenCOMMENT
MEDIUM.github/workflows/release.yml1149 # TODO: these jobs need to use llvm toolchain in order to utilize the ccacheCOMMENT
LOWconversion/deepseek.py47 # @bluebread: there's no window_size in config but just add it here anywayCOMMENT
LOWconversion/granite.py809 # If not layer id, just use the projector indexCOMMENT
MEDIUMggml/src/ggml-cpu/amx/mmq.cpp603 // pack again with 128 to fully utilize vector lengthCOMMENT
MEDIUMggml/src/ggml-cpu/amx/mmq.cpp645 // pack again with 128 to fully utilize vector lengthCOMMENT
MEDIUMggml/src/ggml-cpu/amx/mmq.cpp743 // pack again with 128 to fully utilize vector lengthCOMMENT
MEDIUMsrc/llama-context.cpp833 // need to implement a more robust mechanism that tries a few different inputs and analyzes the resultsCOMMENT
Cross-Language Confusion6 hits · 28 pts
SeverityFileLineSnippetContext
HIGHtests/test-tokenizer-random.py346 if unicodedata.category(chr(cpt)) in ("Cn", "Cs", "Co"): # undefined, surrogates, privateCODE
HIGHscripts/tool_bench.py10 cmake -B build && cmake --build build --config Release -j -t llama-serverSTRING
HIGHscripts/snapdragon/build.py350 chmod_cmd = adb_cmd + ["shell", f"chmod -R 755 {shlex.quote(target_dir)}/bin 2>/dev/null || true"]CODE
HIGHscripts/snapdragon/build.py372 chmod_cmd = adb_cmd + ["shell", f"chmod -R 755 {target_dir}/bin 2>/dev/null || true"]CODE
HIGHscripts/snapdragon/build.py409 chmod_cmd = ["ssh", ssh_host, f"chmod -R 755 {target_dir}/bin 2>/dev/null || true"]CODE
HIGHconversion/beam.py26 raise ValueError("Beam: expected NoPE full-attention layers (rope_parameters.full_attention = null)")CODE
Synthetic Comment Markers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtools/completion/README.md90<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually -->CODE
HIGHtools/server/README.md28<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually -->CODE
HIGHtools/cli/README.md7<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually -->CODE
HIGHexamples/gen-docs/gen-docs.cpp14#define NOTE_MESSAGE "<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manuallyCOMMENT
HIGHggml/src/ggml-virtgpu/regenerate_remoting.py3# Generated by Claude AISTRING
TODO Padding13 hits · 19 pts
SeverityFileLineSnippetContext
LOWtools/server/server-schema.cpp73 // TODO: implement t_max_prompt_msCOMMENT
LOWtools/server/server-task.h92 int64_t t_max_prompt_ms = -1; // TODO: implementCODE
LOWinclude/llama.h1090 // TODO: implement get_embeddings() and get_logits() for llama_batch_extCOMMENT
LOWcommon/speculative.cpp1957 // TODO: implementCOMMENT
LOWcommon/speculative.cpp2005 // TODO: implementCOMMENT
LOWcommon/speculative.cpp2163 // TODO: implementCOMMENT
LOWcommon/speculative.cpp2334 // TODO: implementCOMMENT
LOWconversion/gemma.py569 # TODO: implement self.prediction_coefs.weight.clamp_(...)COMMENT
LOWggml/src/ggml.c4024 // TODO: implement non F32 returnCOMMENT
LOWggml/src/ggml.c4048 // TODO: implement non F32 returnCOMMENT
LOWggml/src/ggml.c5227 // TODO: implement antialias for modes other than bilinearCOMMENT
LOWsrc/llama-model-saver.cpp404 // TODO: implement split file supportCOMMENT
LOWsrc/llama-model-saver.cpp455 // TODO: implement LoRA supportCOMMENT
Modern Structural Boilerplate18 hits · 19 pts
SeverityFileLineSnippetContext
LOWgguf-py/gguf/gguf_writer.py36logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/vocab.py47logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/vocab.py167 def _set_special_token(self, typ: str, tid: Any) -> None:CODE
LOWgguf-py/gguf/gguf_reader.py39logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/lazy.py11logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/scripts/gguf_set_metadata.py44def set_metadata(reader: GGUFReader, args: argparse.Namespace) -> None:CODE
LOWscripts/tool_bench.py75logger = logging.getLogger(__name__)CODE
LOWscripts/snapdragon/ggml-hexagon-inspect.py159def update_sp_regs(insn: str, sp_regs: Set[str]) -> None:CODE
LOWconversion/minimax.py48 def set_vocab(self) -> None:CODE
LOWconversion/command_r.py81 def _set_vocab_gpt2(self) -> None:CODE
LOWconversion/__init__.py11__all__ = [CODE
LOWconversion/laguna.py24 def set_vocab(self) -> None:CODE
LOWconversion/laguna.py64 def set_gguf_parameters(self) -> None:CODE
LOWconversion/spark2_5.py17 def set_gguf_parameters(self) -> None:CODE
LOWconversion/bert.py360 def set_vocab(self) -> None:CODE
LOW⚡conversion/base.py2385 def _set_vocab_none(self) -> None:CODE
LOW⚡conversion/base.py2388 def _set_vocab_gpt2(self) -> None:CODE
LOW⚡conversion/base.py2398 def _set_vocab_whitespace(self) -> None:CODE
Example Usage Blocks10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtools/ui/scripts/dev.sh8# Usage:COMMENT
LOWgguf-py/examples/writer.py13# Example usage:COMMENT
LOWtests/test-tokenizer-0.sh3# Usage:COMMENT
LOWtests/test-tokenizer-random.py4# Sample usage:COMMENT
LOWexamples/json_schema_pydantic_example.py1# Usage:COMMENT
LOWscripts/sync-ggml-am.sh5# Usage:COMMENT
LOWscripts/hf.sh5# Usage:COMMENT
LOWscripts/build-profile.sh4# Usage:COMMENT
LOWscripts/release.sh11# Usage:COMMENT
LOWggml/src/ggml-sycl/dpct/helper.hpp3020 /// Example usage:COMMENT
Fake / Example Data7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/mtmd/mtmd-helper.h31 // TODO @ngxson : allow "placeholder" bitmap output for counting tokensCOMMENT
LOW⚡tools/server/tests/unit/test_ctx_shift.py8Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡tools/server/tests/unit/test_ctx_shift.py8Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡tools/server/tests/unit/test_ctx_shift.py14Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡tools/server/tests/unit/test_ctx_shift.py14Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWtests/test-chat.cpp4953 .expect_tool_calls({ { "set_nullable_str", R"({"name": "123 Main St"})", "" } })CODE
LOWsrc/llama-graph.cpp1433 LLAMA_LOG_DEBUG("%s: can_reuse = %d\n", "placeholder", cur);CODE
AI Structural Patterns9 hits · 8 pts
SeverityFileLineSnippetContext
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py82CODE
LOWgguf-py/gguf/utility.py90CODE
LOWgguf-py/gguf/utility.py185CODE
LOWexamples/pydantic_models_to_grammar_examples.py308CODE
LOWexamples/pydantic_models_to_grammar.py1027CODE
LOWexamples/llama-eval/llama-eval.py1744CODE
LOWscripts/tool_bench.py204CODE
LOWconversion/gpt_oss.py47CODE
LOWconversion/base.py126CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtools/server/README.md1824 -H "x-api-key: your-api-key" \CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHexamples/pydantic_models_to_grammar.py532 Generate GBNF Grammar from Pydantic Models. This method takes a list of Pydantic models and uses them to generSTRING
Slop Phrases4 hits · 5 pts
SeverityFileLineSnippetContext
LOW.github/ISSUE_TEMPLATE/030-research.yml9 Don't forget to check for any [duplicate research issue tickets](https://github.com/ggml-org/llama.cpp/issues?q=CODE
LOW.github/ISSUE_TEMPLATE/040-refactor.yml9 Don't forget to [check for existing refactor issue tickets](https://github.com/ggml-org/llama.cpp/issues?q=is%3ACODE
LOWconversion/base.py2008 # To avoid unexpected issues - we make sure to normalize non-normalized tokensCOMMENT
LOWconversion/base.py2853 # To avoid unexpected issues - we make sure to normalize non-normalized tokensCOMMENT
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWexamples/llama-eval/agentic_eval.py790def run_task(task: AgenticTask, chat, sandbox, workroot: Optional[Path] = None,STRING