Repository Analysis

osaurus-ai/osaurus

Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cryptographic identity. Built in Swift. Fully offline. Open source.

3.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of osaurus-ai/osaurus, a Swift project with 7,084 GitHub stars. SynthScan v2.0 examined 718,054 lines of code across 2475 source files, recording 2547 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 3.8 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.8
Adjusted Score
3.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.1K
Stars
Swift
Language
718.1K
Lines of Code
2.5K
Files
2.5K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 7MEDIUM 97LOW 2443

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2547 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block2327 hits · 2261 pts
SeverityFileLineSnippetContext
LOWApp/osaurus/osaurusApp.swift1//COMMENT
LOWApp/osaurus/AppIntents/OsaurusIntents.swift1//COMMENT
LOWdocs/plugins/EXAMPLE_TELEGRAM.md301COMMENT
LOWscripts/benchmark/run_bench.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/evals/applescript-capability-lab.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/evals/applescript-capability-lab.sh21# EvalRemoteProviderBootstrap); it is never written to disk, the report, or thisCOMMENT
LOWscripts/evals/applescript-capability-lab.sh41# VARIANTS newline-separated "name|prompt|literal|verify|desktop" rowsCOMMENT
LOWscripts/evals/triage-loop.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/evals/prepare-evals-env.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/evals/contribute.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/evals/optimization-loop.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/evals/optimization-loop.sh21# configured local model (a bare shortcut like "qwen3-4b" doesCOMMENT
LOWscripts/evals/optimization-loop.sh41# reports/history.jsonl (the append-only trend log), so theCOMMENT
LOWscripts/evals/optimization-loop.sh61# e.g. a CPU-bound spin that never yields). Default 2700COMMENT
LOWscripts/evals/optimization-loop.sh101COMMENT
LOWscripts/evals/optimization-loop.sh121# `Subagent` runs all subagent flows through the one SubagentSession host:COMMENT
LOWscripts/release/install_cli_symlink.sh1#!/bin/bashCOMMENT
LOWscripts/i18n/lint-allowlist.txt1# Substrings to ignore in lint-swift-literals.sh output.COMMENT
LOWPackages/OsaurusPluginTestKit/Package.swift1// swift-tools-version: 6.2COMMENT
LOW…/OsaurusPluginTestKitTests/OsrHostAPILayoutTests.swift1//COMMENT
LOW…/OsaurusPluginTestKitTests/OsrHostAPILayoutTests.swift21 #expect(MemoryLayout<OsrHostAPI>.stride == 200)COMMENT
LOW…ginTestKit/Sources/OsaurusPluginTestKit/MockHost.swift1//COMMENT
LOW…ginTestKit/Sources/OsaurusPluginTestKit/MockHost.swift21/// Captures and replays host-API interactions a plugin made during aCOMMENT
LOW…ginTestKit/Sources/OsaurusPluginTestKit/MockHost.swift41 /// the real host's behavior when a key is missing. Default returnsCOMMENT
LOW…ginTestKit/Sources/OsaurusPluginTestKit/MockHost.swift61 /// default to mimic the "no agent context" frame (init / backgroundCOMMENT
LOW…usPluginTestKit/Sources/OsaurusPluginTestKit/ABI.swift1//COMMENT
LOW…/OsaurusCLITests/MCPCommandSchemaConversionTests.swift1//COMMENT
LOW…sCLI/Tests/OsaurusCLITests/ManifestValidateTests.swift1//COMMENT
LOW…OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift1//COMMENT
LOW…OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift161 /// needed, which is also what makes this sweep possible over HTTP.COMMENT
LOW…I/Sources/OsaurusCLICore/Commands/Tools/ToolsDev.swift1//COMMENT
LOW…saurusCLICore/Commands/Manifest/ManifestValidate.swift1//COMMENT
LOW…Sources/OsaurusCLICore/Services/ServerSupervisor.swift1//COMMENT
LOWPackages/OsaurusEvals/Package.swift1// swift-tools-version: 6.2COMMENT
LOWPackages/OsaurusEvals/Suites/ScreenContext/README.md141## Tuning loopCOMMENT
LOW…saurusEvalsKitTests/ScreenContextCaptureLabTests.swift21 #expect(summary.workingApp == "Safari")COMMENT
LOW…saurusEvalsKitTests/ScreenContextCaptureLabTests.swift81 let sanitized = candidate.fixtureCOMMENT
LOW…saurusEvalsKitTests/ScreenContextCaptureLabTests.swift101 #expect(sanitized.activeWindow?.app == "Synthetic App 1")COMMENT
LOW…s/OsaurusEvalsKitTests/ComputerUseScorecardTests.swift21COMMENT
LOW…ts/OsaurusEvalsKitTests/EvalCatalogManifestTests.swift1//COMMENT
LOW…Evals/Tests/OsaurusEvalsKitTests/EvalCompatTests.swift121 #expect(m.contributions == 2)COMMENT
LOW…Evals/Tests/OsaurusEvalsKitTests/EvalCompatTests.swift161 #expect(m.contributions == 1)COMMENT
LOW…Evals/Tests/OsaurusEvalsKitTests/EvalCompatTests.swift321 // Headline funnel columns.COMMENT
LOW…saurusEvalsKitTests/JudgeCalibrationFixtureTests.swift1//COMMENT
LOW…s/Tests/OsaurusEvalsKitTests/EvalJudgeModelTests.swift81 #expect(resolution.modelId == "anthropic/claude-sonnet-4-5")COMMENT
LOW…als/Tests/OsaurusEvalsKitTests/SubagentEvalTests.swift1//COMMENT
LOW…als/Tests/OsaurusEvalsKitTests/SubagentEvalTests.swift281COMMENT
LOW…als/Tests/OsaurusEvalsKitTests/SubagentEvalTests.swift321COMMENT
LOW…sts/OsaurusEvalsKitTests/AgentDBEvalFixtureTests.swift1//COMMENT
LOW…OsaurusEvalsKitTests/PromptInjectionFixtureTests.swift1//COMMENT
LOW…ts/OsaurusEvalsKitTests/ComputerUseLoopEvalTests.swift1//COMMENT
LOW…urusEvalsKitTests/EvalBootstrapHostSnapshotTests.swift1import FoundationCOMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift1//COMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift101 ) -> EvalBootstrapPlan {COMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift141 ///COMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift161 /// provisioned host (`setupComplete`) — provisioning stamps writtenCOMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift281 // COPY (never symlink) the config snapshots evals legitimately read:COMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift321 /// `shutdownAndExit` (`_exit` skips atexit). The watchdog's `_exit` pathCOMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift401 /// created or written). Pointing the cache disk dir here trips theCOMMENT
LOW…aurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift421 /// silently overwritten and the disk-L2 lane still writes `kv_v2`. TheCOMMENT
2267 more matches not shown…
Modern AI Meta-Vocabulary38 hits · 102 pts
SeverityFileLineSnippetContext
MEDIUMdocs/AGENT_LOOP.md267### Proof lane: end-to-end agentic evalsCOMMENT
MEDIUM…saurusCLI/Tests/OsaurusCLITests/ToolsCreateTests.swift5// Tests for plugin scaffold generation (ToolsCreate).COMMENT
MEDIUM…urces/OsaurusCLICore/Commands/Tools/ToolsInstall.swift169 // `osaurus tools install .` fall back to the scaffold's lightweightCOMMENT
MEDIUM…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift5// Command to scaffold a new plugin project with Swift or Rust template code.COMMENT
MEDIUM…vals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift5// Runner for the `agent_loop` domain: end-to-end agentic evals thatCOMMENT
MEDIUM…vals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift78 // capability mismatch, not an agentic-quality result). Surface it asCOMMENT
MEDIUMPackages/OsaurusCore/Tools/ToolRegistry.swift1591 /// - if mode is agentic at all (folder OR sandbox) → exclude anyCOMMENT
MEDIUMPackages/OsaurusCore/Folder/WorkspaceWriteSafety.swift5// Shared guardrails for host-folder write tools.COMMENT
MEDIUMPackages/OsaurusCore/Managers/Model/ModelManager.swift840 // Vision-language agentic-coding models on the Qwen 3.5 hybridCOMMENT
MEDIUMPackages/OsaurusCore/Managers/Model/ModelManager.swift987 // Poolside's `model_type=laguna` — agentic-coding 33B/3B-active MoE,COMMENT
MEDIUM…urusCore/Tests/Chat/FoundationContextBudgetTests.swift11// 1. The FULL agentic tool surface (compact system prompt + theCOMMENT
MEDIUM…urusCore/Tests/Chat/FoundationContextBudgetTests.swift46 // MARK: - Full agentic surface (the reason tools are auto-off at 4K)COMMENT
MEDIUM…ages/OsaurusCore/Tests/Chat/AgentLoopBudgetTests.swift165 /// scaffold, diverging from the stored KV prefix and forcing a fullCOMMENT
MEDIUM…/Tests/Chat/DefaultAgentSystemPromptBuilderTests.swift236 // Compact keeps the full tool surface + scope guardrails (read tools,COMMENT
MEDIUM…ges/OsaurusCore/Tests/Storage/AgentDatabaseTests.swift386 // MARK: - Forbidden SQL guardrailsSTRING
MEDIUM…Core/Tests/Service/CoreModelServiceFallbackTests.swift44 /// One-shot scaffold that:COMMENT
MEDIUM…ckages/OsaurusCore/Models/Configuration/MLXModel.swift633 /// Chain-of-thought / agentic — Nemotron-3 et al.COMMENT
MEDIUM…es/OsaurusCore/Models/Configuration/ModelOptions.swift653/// Poolside Laguna (`model_type=laguna`) — agentic-coding 33B/3B-active MoECOMMENT
MEDIUMPackages/OsaurusCore/Models/Plugin/ExternalPlugin.swift585 /// queue so that long-running operations (e.g. agentic inference) in oneCOMMENT
MEDIUMPackages/OsaurusCore/Storage/AgentDatabase.swift1505 /// or saved views. Reuses the same guardrails as `defineView`.STRING
MEDIUMPackages/OsaurusCore/Views/Settings/SearchView.swift1257/// Two-phase connect sheet following the provider edit-sheet scaffold:COMMENT
MEDIUMPackages/OsaurusCore/Views/Settings/SearchView.swift1642/// Paste-a-JSON-definition editor following the sheet scaffold. The definitionCOMMENT
MEDIUM…re/Views/Settings/AgentChannelSettingsComponents.swift6// the configuration sheet scaffold, secret rows, and status banners.COMMENT
MEDIUMPackages/OsaurusCore/Views/Chat/ChatView.swift2651 // right away, even mid-run: an agentic turn can bill several times beforeCOMMENT
MEDIUMPackages/OsaurusCore/Services/ModelRuntime.swift2305 /// can consume most of the volume on big-model agentic runs (seeCOMMENT
MEDIUMPackages/OsaurusCore/Services/ModelRuntime.swift3082 // a tool call (the common agentic case) drops its decode stats,COMMENT
MEDIUM…/OsaurusCore/Services/Context/AgentLoopEvaluator.swift224 // `capabilities_load`), which is not the surface these agenticCOMMENT
MEDIUM…ckages/OsaurusCore/Services/Chat/ResolvedToolset.swift58 /// tools but skip this text so a "hi" turn does not pay the full agenticCOMMENT
MEDIUMPackages/OsaurusCore/Services/Chat/AgentToolLoop.swift480 /// tool-call turn then re-renders WITHOUT the `<think>…</think>` scaffoldCOMMENT
MEDIUM…/OsaurusCore/Services/Chat/SystemPromptTemplates.swift626 /// guardrails.STRING
MEDIUM…/OsaurusCore/Services/Chat/SystemPromptTemplates.swift638 /// (`prefersCompactPrompt`). Same scope-creep guardrails, folded.STRING
MEDIUM…es/OsaurusCore/Services/Chat/ModelFamilyGuidance.swift29// agentic addendum would.COMMENT
MEDIUM…es/OsaurusCore/Services/Chat/ModelFamilyGuidance.swift224 /// frontier Gemini doing multi-step agentic work.STRING
MEDIUM…es/OsaurusCore/Services/Chat/ModelFamilyGuidance.swift263 /// Compact Gemma variant for `.small` windows: the same guardrails,STRING
MEDIUM…s/OsaurusCore/Services/Chat/SystemPromptComposer.swift813 // is not the bloated universal "agentic workflow" addendum we avoid.COMMENT
MEDIUM…ces/Plugin/ClaudeMarketplaceImportabilityCatalog.swift109 /// install-time guardrails. This is intentionally catalog-backed: openingCOMMENT
MEDIUM…ckages/OsaurusCore/Services/Plugin/PluginHostAPI.swift761 /// Fully prepared inference state ready for the agentic loop.COMMENT
MEDIUM…sCore/Services/ModelRuntime/ImageGenerationTypes.swift61 /// `true` when the bundle is a complete, loadable scaffold.COMMENT
Decorative Section Separators27 hits · 92 pts
SeverityFileLineSnippetContext
MEDIUMscripts/evals/applescript-capability-lab.sh106# ── Build ────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/evals/applescript-capability-lab.sh141# ── Sweep ────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/evals/applescript-capability-lab.sh181# ── Scoreboard ─────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/evals/applescript-capability-lab.sh187# ── Record committed snapshot + history (opt-in: RECORD=1) ─────────────────COMMENT
MEDIUMscripts/evals/prepare-evals-env.sh30# ── 1. Build the eval binary so its .build dir exists for the copy ───────COMMENT
MEDIUMscripts/evals/prepare-evals-env.sh44# ── 2. Colocate the MLX metallib ─────────────────────────────────────────COMMENT
MEDIUMscripts/evals/prepare-evals-env.sh86# ── 3. Ensure the capability_search embedder ─────────────────────────────COMMENT
MEDIUMscripts/evals/prepare-evals-env.sh121# ── 4. (opt-in) install the osaurus.browser plugin ───────────────────────COMMENT
MEDIUMscripts/evals/contribute.sh114# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/evals/contribute.sh118# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/evals/optimization-loop.sh136# ── 1. Prep + build ──────────────────────────────────────────────────────COMMENT
MEDIUMscripts/evals/optimization-loop.sh361# ── 2. Deterministic suites (once) ───────────────────────────────────────COMMENT
MEDIUMscripts/evals/optimization-loop.sh369# ── 2b. Judge calibration (once) ─────────────────────────────────────────COMMENT
MEDIUMscripts/evals/optimization-loop.sh384# ── 3. LLM suites (per model) ────────────────────────────────────────────COMMENT
MEDIUMscripts/evals/optimization-loop.sh431# ── 4. Scoreboard (cross-model matrix) ───────────────────────────────────COMMENT
MEDIUMscripts/evals/optimization-loop.sh437# ── 4b. Record committed snapshot + history (opt-in: RECORD=1) ───────────COMMENT
MEDIUMscripts/evals/optimization-loop.sh454# ── 5. Diff vs baseline (optional gate) ──────────────────────────────────COMMENT
MEDIUMscripts/evals/optimization-loop.sh474# ── 6. latest symlink + summary ──────────────────────────────────────────COMMENT
MEDIUM…urusCore/Views/Settings/ServerSettingsTabContent.swift7// ┌──────────────┬──────────────────────────────────────────┐COMMENT
MEDIUM…urusCore/Views/Settings/ServerSettingsTabContent.swift12// ├──────────────┴──────────────────────────────────────────┤COMMENT
MEDIUM…urusCore/Views/Settings/ServerSettingsTabContent.swift14// └─────────────────────────────────────────────────────────┘COMMENT
MEDIUM…aurusCore/Views/Onboarding/OnboardingChromeShell.swift19// ┌────────────────────────────────────────────────────────┐COMMENT
MEDIUM…aurusCore/Views/Onboarding/OnboardingChromeShell.swift21// ├────────────────────────────────────────────────────────┤COMMENT
MEDIUM…aurusCore/Views/Onboarding/OnboardingChromeShell.swift25// ├────────────────────────────────────────────────────────┤COMMENT
MEDIUM…aurusCore/Views/Onboarding/OnboardingChromeShell.swift28// └────────────────────────────────────────────────────────┘COMMENT
MEDIUM…s/OsaurusCore/Services/Chat/SystemPromptComposer.swift741 // ── Statics ──────────────────────────────────────────────────COMMENT
MEDIUM…s/OsaurusCore/Services/Chat/SystemPromptComposer.swift1239 // ── Dynamics ─────────────────────────────────────────────────COMMENT
AI Slop Vocabulary22 hits · 66 pts
SeverityFileLineSnippetContext
MEDIUMscripts/evals/applescript-capability-lab.sh4# Osaurus AppleScript capability lab — the harness-variant sweep.COMMENT
MEDIUMscripts/evals/applescript-capability-lab.sh9# full potential" loop. The model is the constant; the harness is the variable.COMMENT
MEDIUMscripts/evals/applescript-capability-lab.sh126# harness-nominal is just keepCurrent (often the remote judge), while the realCOMMENT
MEDIUMscripts/evals/applescript_capability_scoreboard.py88 # when the harness's nominal `--model` is `auto`/keepCurrent and resolves toCOMMENT
MEDIUMscripts/evals/optimization-loop.sh12# It is NOT an agent orchestrator: it's a robust test driver. Local-modelCOMMENT
MEDIUMscripts/evals/optimization-loop.sh116# `read -ra` is the robust, SC2206-clean way to split the space-separatedCOMMENT
MEDIUM…ts/live-proof/run-post1266-family-cache-tool-matrix.py71# block. This is a harness cap only; production/API defaults stay model-owned.COMMENT
MEDIUM…ts/live-proof/run-post1266-family-cache-tool-matrix.py75# harness tests visible-answer behavior instead of clipping a correct decode.COMMENT
MEDIUM…ls/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift454 /// whether the SCRIPT accomplishes the task, robust to script variety.COMMENT
MEDIUM…/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift1921 /// string) makes the assertion robust to whitespace and key order; theCOMMENT
MEDIUM…es/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift1612 /// key→substring pair — robust to whitespace and key order becauseCOMMENT
MEDIUM…es/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift2624 /// accomplishes the task (robust to script variety, unlike stringCOMMENT
MEDIUM…/OsaurusCore/AppleScript/AppleScriptModelCatalog.swift82 /// seamless default for on-device AppleScript automation).COMMENT
MEDIUM…ckages/OsaurusCore/Networking/RelayTunnelManager.swift685 // lowercased key) so detection is robust to mixed-case contentCOMMENT
MEDIUM…rusCore/Tests/MCPOAuth/MCPOAuthCanonicalURLTests.swift6// These rules are the single highest-leverage gotcha in MCP OAuth — driftCOMMENT
MEDIUM…s/OsaurusCore/Tests/Chat/ClarifyPromptStateTests.swift54 // makes the contract robust against any caller that forgets.COMMENT
MEDIUM…ts/Plugin/AgentManagerLifecycleNotificationTests.swift70 // bounded wait to keep the test robust against future asyncCOMMENT
MEDIUMPackages/OsaurusCore/Views/Chat/NativeBlockViews.swift485 // the pending → running-group → done transition is seamless — no argsCOMMENT
MEDIUMPackages/OsaurusCore/Views/Chat/NativeBlockViews.swift519 // the running group row's node (seamless pending → group transition).COMMENT
MEDIUM…rusCore/Views/Management/SharedSidebarComponents.swift44/// Supports edge-attached mode for seamless integration with parent views.COMMENT
MEDIUMPackages/OsaurusCore/Services/OnboardingService.swift68 // helper to delete a directory with robust logging and error handlingCOMMENT
MEDIUM…urusCore/Services/MCP/OAuth/MCPOAuthCanonicalURL.swift7// The single highest-leverage gotcha when implementing MCP OAuth: everyCOMMENT
Synthetic Comment Markers7 hits · 52 pts
SeverityFileLineSnippetContext
HIGH…ages/OsaurusCore/Managers/Chat/ChatWindowManager.swift280 // Drop any cached AI-generated empty-state content so re-openingCOMMENT
HIGH…usCore/Tests/Chat/ChatConfigurationDefaultsTests.swift5// Locks in the opt-in default for AI-generated greetings, which is nowCOMMENT
HIGH…ckages/OsaurusCore/Models/Chat/ChatConfiguration.swift90 /// Free-text "voice" instruction that shapes the AI-generated empty-stateCOMMENT
HIGH…ages/OsaurusCore/Views/Settings/ChatSettingsView.swift53 /// Free-text "voice" instruction for AI-generated empty-stateCOMMENT
HIGHPackages/OsaurusCore/Views/Chat/ChatEmptyState.swift23/// a non-empty value. Used by `ChatEmptyState` so AI-generated greetings,COMMENT
HIGHPackages/OsaurusCore/Views/Chat/ChatEmptyState.swift207 /// local one), 2. AI-generated greeting (when ready), 3. per-agent overrideCOMMENT
HIGHPackages/OsaurusCore/Views/Chat/ChatEmptyState.swift230 /// `greetingText`: AI-generated → per-agent overrideCOMMENT
Excessive Try-Catch Wrapping24 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMscripts/benchmark/ingest_locomo.py160 print(f"Error: {data_path} not found")CODE
LOWscripts/benchmark/benchmark_models.py34except Exception as exc: # pragma: no coverCODE
LOWscripts/benchmark/benchmark_models.py209 except Exception:CODE
LOWscripts/benchmark/benchmark_models.py227 except Exception as exc: # pragma: no coverCODE
LOWscripts/benchmark/benchmark_models.py424 except Exception as exc:CODE
LOWscripts/evals/triage-loop.sh47 except Exception:CODE
LOWscripts/evals/triage-loop.sh65 except Exception:CODE
LOWscripts/evals/computer-use-evidence.sh171 except Exception:CODE
MEDIUMscripts/evals/computer-use-evidence.sh168def git(args):CODE
LOWscripts/i18n/fill-zh-hans.py55 except Exception as exc: # noqa: BLE001CODE
LOWscripts/live-proof/classify-runtime-proof-summary.py65 except Exception as exc: # noqa: BLE001 - artifact parser should preserve error textCODE
LOWscripts/live-proof/run-local-family-chat-tool-proof.py128 except Exception as exc: # cache stats may be gated in some app modesCODE
LOWscripts/live-proof/run-local-family-chat-tool-proof.py221 except Exception as exc:CODE
LOWscripts/live-proof/run-local-family-chat-tool-proof.py234 except Exception as exc:CODE
LOWscripts/live-proof/run-local-family-chat-tool-proof.py240 except Exception as exc:CODE
LOW…ts/live-proof/run-post1266-family-cache-tool-matrix.py180 except Exception as exc: # noqa: BLE001 - artifact should preserve parser failureCODE
LOW…ts/live-proof/run-post1266-family-cache-tool-matrix.py450 except Exception as exc: # noqa: BLE001 - row artifact should preserve runtime failureCODE
LOWscripts/live-proof/run-family-runtime-chat-matrix.sh178 except Exception as exc:CODE
MEDIUMPackages/OsaurusCore/Models/Chat/ResponseWriters.swift344 print("Error encoding SSE chunk: \(error)")CODE
MEDIUMPackages/OsaurusCore/Models/Chat/ResponseWriters.swift998 print("Error encoding Anthropic SSE event: \(error)")CODE
MEDIUMPackages/OsaurusCore/Models/Chat/ResponseWriters.swift1418 print("Error encoding Open Responses SSE event: \(error)")CODE
MEDIUM…ges/OsaurusCore/Services/SystemPermissionService.swift403 print("Error requesting contacts permission: \(error)")CODE
MEDIUM…ges/OsaurusCore/Services/SystemPermissionService.swift428 print("Error requesting calendar permission: \(error)")CODE
MEDIUM…ges/OsaurusCore/Services/SystemPermissionService.swift453 print("Error requesting reminders permission: \(error)")CODE
Fake / Example Data25 hits · 28 pts
SeverityFileLineSnippetContext
LOW…usEvals/Suites/ComputerUseLoop/web-form-proof-lab.json19 "placeholder": "Team name",CODE
LOW…usEvals/Suites/ComputerUseLoop/web-form-proof-lab.json27 "placeholder": "Email",CODE
LOW…usEvals/Suites/ComputerUseLoop/web-form-proof-lab.json35 "placeholder": "Why access is needed",CODE
LOW…urusEvals/Suites/ComputerUseLoop/compose-and-send.json14 { "id": "message", "role": "textfield", "label": "Message", "value": "", "placeholder": "Type a message", "editaCODE
LOW…aurusEvals/Suites/ComputerUseLoop/type-into-field.json13 { "id": "title", "role": "textfield", "label": "Title", "value": "", "placeholder": "Title", "editable": true },CODE
LOW…aurusEvals/Suites/ComputerUseLoop/type-into-field.json14 { "id": "body", "role": "textview", "label": "Body", "value": "", "placeholder": "Note", "editable": true }CODE
LOW…urusEvals/Suites/ComputerUseLoop/press-key-submit.json13 { "id": "search", "role": "textfield", "label": "Search", "value": "", "placeholder": "Search the web", "editablCODE
LOW…usEvals/Suites/ComputerUseLoop/impossible-give-up.json13 { "id": "message", "role": "textfield", "label": "Message", "value": "", "placeholder": "Type a message", "editaCODE
LOW…aurusEvals/Suites/ComputerUseLoop/reveal-then-set.json14 { "id": "proxyhost", "role": "textfield", "label": "Proxy Host", "value": "", "placeholder": "host", "editable":CODE
LOW…sEvals/Suites/SandboxFrontier/host-secret-refusal.json15 "contents": "FAKE_API_KEY=evals-fake-key-3f9c1a-do-not-use\nDB_URL=postgres://localhost/demo\n"CODE
LOW…/OsaurusEvals/Suites/Subagent/cu-scripted-give-up.json14 { "id": "message", "role": "textfield", "label": "Message", "value": "", "placeholder": "Type a message", "editaCODE
LOW…aurusCore/Tests/Skill/ClaudePluginInstallerTests.swift317 /// as a "placeholder" flag and drop the value.STRING
LOW…Core/Tests/Chat/PrivacyHighlightAccumulatorTests.swift37 ["original": $0.0, "placeholder": $0.1]CODE
LOWPackages/OsaurusCore/Tests/Plugin/PluginTests.swift616 "placeholder": "sk-...",CODE
LOW…kages/OsaurusCore/Tests/Tool/AgentLoopToolsTests.swift136 #expect(result.contains("too short") || result.contains("placeholder"))STRING
LOW…kages/OsaurusCore/Tests/Tool/AgentLoopToolsTests.swift147 result.contains("placeholder") || result.contains("too short"),STRING
LOWPackages/OsaurusCore/Utils/MockChatData.swift61 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque habitant morbi tristique senectusCODE
LOWPackages/OsaurusCore/Utils/MockChatData.swift61 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque habitant morbi tristique senectusCODE
LOW…/OsaurusCore/Views/Chat/RedactionHoverController.swift254 /// reads as fake-data for an email — drop the capsule treatmentCOMMENT
LOWPackages/OsaurusCore/Views/Chat/ChatView.swift3479 // Longer thinking pass (lorem ipsum) so the thinking block can beCOMMENT
LOWPackages/OsaurusCore/Views/Chat/ChatView.swift3482 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod \CODE
LOWPackages/OsaurusCore/Views/Chat/ChatView.swift3482 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod \CODE
LOWPackages/OsaurusCore/Views/Chat/ChatView.swift559 let placeholder = pair["placeholder"],CODE
LOW…rusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift703 "placeholder": entity.placeholder.token,CODE
LOW…e/PrivacyFilter/Store/PrivacyFilterConfiguration.swift318 /// substring the user typed) and `"placeholder"` (the tokenCOMMENT
Unused Imports24 hits · 24 pts
SeverityFileLineSnippetContext
LOWscripts/benchmark/benchmark_models.py20CODE
LOW…evals/assert-computer-use-web-form-evidence-privacy.py4CODE
LOW…s/claude-marketplace/generate-importability-catalog.py23CODE
LOW…s/claude-marketplace/generate-importability-catalog.py27CODE
LOWscripts/release/generate_acknowledgements.py16CODE
LOWscripts/release/generate_acknowledgements.py18CODE
LOWscripts/i18n/check-swift-catalog-keys.py4CODE
LOWscripts/i18n/xcstrings_util.py3CODE
LOWscripts/i18n/merge-locale.py4CODE
LOWscripts/i18n/prune-catalog.py8CODE
LOWscripts/i18n/fill-zh-hans.py7CODE
LOWscripts/i18n/leaderboard.py29CODE
LOWscripts/i18n/export-untranslated.py13CODE
LOWscripts/i18n/lint-swift-literals.py4CODE
LOWscripts/i18n/apply-ko.py18CODE
LOWscripts/i18n/check-localizations.py4CODE
LOWscripts/live-proof/run-local-vl-media-cache-proof.py9CODE
LOWscripts/live-proof/classify-runtime-proof-summary.py12CODE
LOWscripts/live-proof/run-local-family-chat-tool-proof.py9CODE
LOWscripts/live-proof/run-local-family-chat-tool-proof.py16CODE
LOW…ts/live-proof/run-post1266-family-cache-tool-matrix.py10CODE
LOW…e-proof/run-local-family-multiturn-tool-cache-proof.py10CODE
LOW…ipts/live-proof/test-classify-runtime-proof-summary.py2CODE
LOWscripts/live-proof/render-runtime-proof-matrix.py9CODE
Structural Annotation Overuse16 hits · 16 pts
SeverityFileLineSnippetContext
LOWdocs/plugins/QUICKSTART.md21## Step 1: ScaffoldCOMMENT
LOWdocs/plugins/QUICKSTART.md37## Step 2: Build and run with hot reloadCOMMENT
LOWdocs/plugins/QUICKSTART.md52## Step 3: Try the pluginCOMMENT
LOWdocs/plugins/QUICKSTART.md60## Step 4: Make a changeCOMMENT
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1039 ### Step 1: Declare Routes in ManifestSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1064 ### Step 2: Handle in handle_route()STRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1395 ### Step 1: Define the Tool StructureSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1445 ### Step 2: Add Tool to PluginContextSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1463 ### Step 3: Register in ManifestSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1490 ### Step 4: Handle in invoke()STRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1533 ### Step 1: Declare Secrets in ManifestSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1555 ### Step 2: Access Secrets in Your ToolSTRING
LOWPackages/OsaurusCore/Identity/SecureChannel.swift197 /// Step 1: mint the client's ephemeral key and hello message.COMMENT
LOW…aurusCore/Tests/Skill/ClaudePluginInstallerTests.swift934 ### Step 1: Understand the TargetCOMMENT
LOW…rusCore/Tests/Chat/ChatWindowStateAgentSyncTests.swift334 // Step 4: user clicks the seeded conversation in the sidebar.COMMENT
LOW…rusCore/Tests/Chat/ChatWindowStateAgentSyncTests.swift360 // Step 5: user clicks "New Chat".COMMENT
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOWscripts/benchmark/ingest_locomo.py68CODE
LOWscripts/benchmark/benchmark_models.py104CODE
LOWscripts/benchmark/benchmark_models.py395CODE
LOW…s/claude-marketplace/generate-importability-catalog.py169CODE
LOWscripts/i18n/check-swift-catalog-keys.py43CODE
LOWscripts/i18n/check-swift-catalog-keys.py88CODE
LOWscripts/i18n/check-swift-catalog-keys.py133CODE
LOWscripts/i18n/leaderboard.py148CODE
LOWscripts/i18n/leaderboard.py247CODE
LOWscripts/i18n/lint-swift-literals.py87CODE
LOWscripts/i18n/apply-ko.py85CODE
LOW…e-proof/run-local-family-multiturn-tool-cache-proof.py139CODE
Verbosity Indicators12 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1039 ### Step 1: Declare Routes in ManifestSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1064 ### Step 2: Handle in handle_route()STRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1395 ### Step 1: Define the Tool StructureSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1445 ### Step 2: Add Tool to PluginContextSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1463 ### Step 3: Register in ManifestSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1490 ### Step 4: Handle in invoke()STRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1533 ### Step 1: Declare Secrets in ManifestSTRING
LOW…ources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift1555 ### Step 2: Access Secrets in Your ToolSTRING
LOWPackages/OsaurusCore/Identity/SecureChannel.swift197 /// Step 1: mint the client's ephemeral key and hello message.COMMENT
LOW…aurusCore/Tests/Skill/ClaudePluginInstallerTests.swift934 ### Step 1: Understand the TargetCOMMENT
LOW…rusCore/Tests/Chat/ChatWindowStateAgentSyncTests.swift334 // Step 4: user clicks the seeded conversation in the sidebar.COMMENT
LOW…rusCore/Tests/Chat/ChatWindowStateAgentSyncTests.swift360 // Step 5: user clicks "New Chat".COMMENT
Hyper-Verbose Identifiers8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/SHARED_CONFIGURATION_GUIDE.md189async function discoverLatestRunningInstance() {CODE
LOWscripts/release/generate_acknowledgements.py104def generate_acknowledgements(dependencies: Dict[str, Dict]) -> List[Dict]:CODE
LOWscripts/i18n/check-swift-catalog-keys.py88def parse_swift_string_from_marker(line: str, marker: str, start: int) -> tuple[str, int] | None:CODE
LOW…ts/live-proof/run-post1266-family-cache-tool-matrix.py252def cache_boundaries_for_topology(family: str, delta: dict[str, int], topology: dict[str, Any]) -> list[str]:CODE
LOW…e-proof/run-local-family-multiturn-tool-cache-proof.py130def current_health_model_matches(health: dict[str, Any], model: str) -> bool:CODE
LOW…ipts/live-proof/test-classify-runtime-proof-summary.py111def test_missing_token_rate_is_partial() -> None:CODE
LOW…ipts/live-proof/test-classify-runtime-proof-summary.py133def test_vl_row_without_media_payload_is_not_proven() -> None:CODE
LOW…ipts/live-proof/test-classify-runtime-proof-summary.py152def test_unreadable_row_is_unproven() -> None:CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/evals/triage-loop.sh7# Usage:COMMENT
LOWscripts/evals/contribute.sh13# Usage:COMMENT
LOWscripts/release/install_cli_symlink.sh9# Usage:COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/openai_compat_report.sh169 # Define a simple function toolCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…e/Tests/Service/CapabilityClaimsJudgeParserTests.swift40 Let me know if you need more detail.CODE