Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
This report summarizes scanner evidence for ollama/ollama, a Go project with 185,403 GitHub stars. SynthScan examined 446,102 lines of code across 1281 source files, recording 265 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 261 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 18 finding(s).
Which changes need focused human review? 265 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 265 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/cmd.go | 1781 | // beginning the download, for clients to | COMMENT |
| LOW | cmd/bench/bench.go | 121 | // problems cost 35-500 tokens each and word count predicts token count only | COMMENT |
| LOW | cmd/launch/muse.go | 21 | // | COMMENT |
| LOW | cmd/launch/deepseek_harness.go | 21 | deepSeekHarnessNpmPackage = "@deepseek-ai/dsh@latest" | COMMENT |
| LOW | cmd/launch/spinner.go | 21 | // Spinner is a handle on a running animated spinner. Stop halts the spinner | COMMENT |
| LOW | types/model/name.go | 101 | // ParseName parses and assembles a Name from a name string. The | COMMENT |
| LOW | types/model/name.go | 121 | // namespace: | COMMENT |
| LOW | llm/llama_server.go | 1 | // llama_server.go wraps the llama-server binary as a subprocess | COMMENT |
| LOW | discover/llama_server.go | 21 | ) | COMMENT |
| LOW | discover/runner.go | 81 | // are enumerated, but not actually supported. | COMMENT |
| LOW | app/cmd/app/app_darwin.m | 1 | #import "app_darwin.h" | COMMENT |
| LOW | app/cmd/app/app_darwin.m | 2041 | // Prompt the user for authorization and move to the system wide | COMMENT |
| LOW | app/types/not/found.go | 1 | //go:build windows || darwin | COMMENT |
| LOW | app/types/not/found.go | 21 | // | COMMENT |
| LOW | app/webview/webview.h | 41 | * | COMMENT |
| LOW | app/webview/webview.h | 61 | #endif | COMMENT |
| LOW | app/webview/webview.h | 81 | COMMENT | |
| LOW | app/webview/webview.h | 141 | COMMENT | |
| LOW | app/webview/webview.h | 401 | #elif defined(_WIN32) | COMMENT |
| LOW | app/webview/webview.h | 421 | #endif | COMMENT |
| LOW | app/webview/webview.h | 1141 | // | COMMENT |
| LOW | app/webview/webview.h | 1201 | COMMENT | |
| LOW | app/webview/webview.h | 1501 | COMMENT | |
| LOW | app/webview/webview.h | 1921 | // Stop the main run loop so that we can return | COMMENT |
| LOW | app/webview/webview.h | 2021 | // disable the feature by default (macOS 13.3 and later) and support | COMMENT |
| LOW | app/webview/webview.h | 2121 | // | COMMENT |
| LOW | app/webview/webview.h | 2581 | #define WEBVIEW_MSWEBVIEW2_EXPLICIT_LINK WEBVIEW_MSWEBVIEW2_BUILTIN_IMPL | COMMENT |
| LOW | app/webview/webview.go | 101 | // Window returns a native window handle pointer. When using GTK backend the | COMMENT |
| LOW | app/webview/webview.go | 121 | // Example: w.SetHtml(w, "<h1>Hello</h1>"); | COMMENT |
| LOW | app/dialog/dlgs.go | 1 | //go:build windows || darwin | COMMENT |
| LOW | app/dialog/cocoa/dlg.m | 1 | #import <Cocoa/Cocoa.h> | COMMENT |
| LOW | transfer/transfer.go | 1 | // Package transfer provides minimal, fast blob transfer for tensor-based models. | COMMENT |
| LOW | transfer/transfer.go | 41 | "github.com/ollama/ollama/manifest" | COMMENT |
| LOW | transfer/sparse_windows.go | 1 | //go:build windows | COMMENT |
| LOW | server/images.go | 1741 | // can be directed to push/pull from "127.0.0.1:1234". | COMMENT |
| LOW | scripts/create-dmg.sh | 561 | # Adding EULA resources | COMMENT |
| LOW | scripts/build_linux.sh | 1 | #!/bin/sh | COMMENT |
| LOW | scripts/build_darwin.sh | 1 | #!/bin/sh | COMMENT |
| LOW | .github/scripts/prepare_mlx_darwin.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 101 | // <|im_start|>assistant | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 121 | // name: "with tools and response", | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 141 | // {Role: "user", Content: "That sounds nice! What about San Francisco?"}, | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 161 | // }, | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 181 | // {"name": <function-name>, "arguments": <args-json-object>} | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 201 | // NOTE: solved with #12518: https://github.com/ollama/ollama/compare/main...drifkin/stable-tool-args | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 221 | // "a": 2, | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 241 | // }, | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 261 | // Properties: testPropsMap(map[string]api.ToolProperty{ | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 281 | // }, | COMMENT |
| LOW | model/renderers/qwen3vl_thinking_test.go | 301 | // <|im_start|>user | COMMENT |
| LOW | model/renderers/gemma4_reference_test.go | 1 | package renderers | COMMENT |
| LOW | model/renderers/glm47.go | 21 | // | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 121 | {Role: "user", Content: "Describe these images.", Images: []api.ImageData{api.ImageData("img1"), api.ImageData("img2 | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 141 | // Function: api.ToolCallFunction{ | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 161 | // Type: "object", | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 181 | // # Tools | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 201 | // <|im_start|>user | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 221 | // }, | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 241 | // }, | COMMENT |
| LOW | model/renderers/qwen3vl_nonthinking_test.go | 261 | // tools: []api.Tool{ | COMMENT |
| 158 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/ui/app/src/api.ts | 75 | export function getClaudeDesktopModelsSettings( | CODE |
| LOW | app/ui/app/src/api.ts | 86 | export function getCodexDesktopModelsSettings( | CODE |
| LOW | app/ui/app/src/api.ts | 243 | export async function getClaudeDesktopAvailableModels( | CODE |
| LOW | …/ui/app/src/components/ClaudeDesktopModelsSettings.tsx | 285 | >(function ClaudeDesktopModelsSettings( | CODE |
| LOW | app/ui/app/src/components/Settings.interaction.test.tsx | 28 | function MockClaudeDesktopSettings(_props, ref) { | CODE |
| LOW | app/ui/app/src/components/Onboarding.tsx | 54 | export function shouldShowClaudeConnectedIntro(status: ClaudeDesktopStatus) { | CODE |
| LOW | app/ui/app/src/components/Onboarding.tsx | 72 | function getClaudeConnectionSummary() { | CODE |
| LOW | app/ui/app/src/components/Message.tsx | 88 | function processBrowserToolContent(content: string): BrowserToolContent { | CODE |
| LOW | …p/ui/app/src/components/CodexDesktopModelsSettings.tsx | 315 | >(function CodexDesktopModelsSettings( | CODE |
| LOW | app/ui/app/src/lib/claudeDesktop.ts | 48 | export function isClaudeConnectionComplete( | CODE |
| LOW⚡ | app/ui/app/src/lib/claudeDesktop.ts | 62 | export function optimisticClaudeConnectionState( | CODE |
| LOW⚡ | app/ui/app/src/lib/claudeDesktop.ts | 69 | export function claudeDesktopRequestCountLabel(count: number): string { | CODE |
| LOW⚡ | app/ui/app/src/lib/claudeDesktop.ts | 73 | export function claudeDesktopRecoveryMessage( | CODE |
| LOW⚡ | app/ui/app/src/lib/claudeDesktop.ts | 80 | export function scheduleClaudeInstallTimeout(onTimeout: () => void) { | CODE |
| LOW | app/ui/app/src/lib/claudeDesktop.ts | 96 | export function claudeDesktopMaxModelsMessage(maxModels: number): string { | CODE |
| LOW | app/ui/app/src/lib/claudeDesktop.ts | 102 | export function claudeDesktopUsableSelection( | CODE |
| LOW | app/ui/app/src/lib/onboarding.ts | 26 | export function authenticationTimeoutAction( | CODE |
| LOW | app/ui/app/src/lib/claudeDesktopModelStatus.ts | 3 | export function claudeDesktopModelStatusLabel( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CMakeLists.txt | 41 | # The root CMake project is the orchestration entrypoint; backend-specific | COMMENT |
| MEDIUM | README.md | 273 | ### RAG & Knowledge Bases | COMMENT |
| MEDIUM | model/renderers/gemma4_reference_test.go | 1386 | // Thinking enabled with tool calls in same conversation (full agentic scenario) | COMMENT |
| MEDIUM | model/renderers/nemotron_cases_test.go | 6 | // not reach: tool-schema shapes, agentic tool loops, and content edge cases. | COMMENT |
| MEDIUM | model/renderers/nemotron_cases_test.go | 345 | // a full agentic loop: two rounds of call/response then an answer | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/create-dmg.sh | 5 | # Create a read-only disk image of the contents of a folder | COMMENT |
| MEDIUM | scripts/create-dmg.sh | 344 | # Create the image | COMMENT |
| MEDIUM | scripts/create-dmg.sh | 368 | # Create the DMG with the specified size or the hdiutil estimation | COMMENT |
| MEDIUM | scripts/build_darwin.sh | 221 | # Create a mock Squirrel.framework bundle | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | mlxrunner/sample/sample_test.go | 275 | // Step 1: logits favor token 1 (trimmed). If the trim were broken it | COMMENT |
| LOW⚡ | mlxrunner/sample/sample_test.go | 284 | // Step 2: logits favor token 2 (rotated out). If the ring wrap were | COMMENT |
| LOW⚡ | llama/compat/llama-ollama-compat.cpp | 2251 | // Step 2: SAM `s.position_embd` (no `.weight` suffix) — handle exactly, | COMMENT |
| LOW⚡ | llama/compat/llama-ollama-compat.cpp | 2255 | // Step 3: substring renames for CLIP, SAM block leaves, and projector. | COMMENT |
| LOW | llama/compat/llama-ollama-compat.cpp | 2234 | // Step 1: rename SAM prefix `s.` -> `v.sam.` only at the start of names | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | mlxrunner/sample/sample_test.go | 275 | // Step 1: logits favor token 1 (trimmed). If the trim were broken it | COMMENT |
| LOW⚡ | mlxrunner/sample/sample_test.go | 284 | // Step 2: logits favor token 2 (rotated out). If the ring wrap were | COMMENT |
| LOW⚡ | llama/compat/llama-ollama-compat.cpp | 2251 | // Step 2: SAM `s.position_embd` (no `.weight` suffix) — handle exactly, | COMMENT |
| LOW⚡ | llama/compat/llama-ollama-compat.cpp | 2255 | // Step 3: substring renames for CLIP, SAM block leaves, and projector. | COMMENT |
| LOW | llama/compat/llama-ollama-compat.cpp | 2234 | // Step 1: rename SAM prefix `s.` -> `v.sam.` only at the start of names | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | discover/runner.go | 186 | // Any Libraries that utilize numeric IDs need adjusting based on any possible filtering taking place | COMMENT |
| MEDIUM | app/ui/app/package-lock.json | 11576 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", | CODE |
| MEDIUM | thinking/template.go | 100 | // TODO(drifkin): to be more robust, check that it's in the action | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/create-dmg.sh | 599 | # Check if hdiutil supports internet-enable | COMMENT |
| LOW | scripts/install.sh | 135 | # Check if .tar.zst is available | COMMENT |
| LOW | scripts/build_docker.sh | 7 | # Set PUSH to a non-empty string to trigger push instead of load | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | integration/llm_image_test.go | 72 | System: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquet, justo in malesuada lobortis, odio ligul | CODE |
| LOW | integration/llm_image_test.go | 72 | System: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquet, justo in malesuada lobortis, odio ligul | CODE |
| LOW | model/parsers/olmo3_test.go | 390 | input: `send_email(to="user@example.com", subject="Hello", body="Test message")`, | CODE |
| LOW | model/parsers/olmo3_test.go | 396 | "to": "user@example.com", | CODE |