Hundreds of models & providers. One command to find what runs on your hardware.
This report presents the forensic synthetic code analysis of AlexsJones/llmfit, a Rust project with 29,410 GitHub stars. SynthScan v2.0 examined 67,966 lines of code across 134 source files, recording 271 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 8.7 places this repository in the Low AI signal 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).
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.
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.
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.
The scanner identified 271 distinct pattern matches across 12 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | llmfit-tui/src/tui_ui.rs | 4885 | // ── Live inference-bench view ───────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/display.rs | 488 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/display.rs | 490 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/display.rs | 990 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/display.rs | 992 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/main.rs | 1754 | // ── --status ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/main.rs | 1788 | // ── --clear ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/main.rs | 1798 | // ── fetch ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/main.rs | 2015 | // ── bench helpers ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/main.rs | 2727 | // ── main ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 1334 | // ── Restore persisted filters ──────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 2394 | // ── Benchmarks view ────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3183 | // ── Visual mode ────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3252 | // ── Select mode ───────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3318 | // ── Quant popup ───────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3352 | // ── RunMode popup ─────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3387 | // ── Params bucket popup ───────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3422 | // ── License popup ─────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3507 | // ── Hardware simulation ────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3661 | // ── Advanced Config Popup ────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 3692 | // ── Filter Popup ───────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-tui/src/tui_app.rs | 4650 | // ── Live inference-bench view ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scripts/scrape_hf_models.py | 1301 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/scrape_hf_models.py | 1303 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/scrape_hf_models.py | 1067 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/scrape_hf_models.py | 1069 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/verify_models.py | 42 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/verify_models.py | 44 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/verify_models.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/verify_models.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/verify_models.py | 116 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/verify_models.py | 118 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1097 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1099 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1187 | // ── Bandwidth-based estimation (preferred) ───────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1404 | // ── Fallback: fixed-constant approach ────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1482 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1484 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1753 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1755 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1819 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1821 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1892 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 1894 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2089 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2091 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2147 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2149 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2476 | // ── Estimate calibration against measured community benchmarks ────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2671 | // ── Usable context (issue #621) ───────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2671 | // ── Usable context (issue #621) ───────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2835 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2837 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2890 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 2892 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 3150 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 3152 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 3425 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 3433 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | llmfit-core/src/fit.rs | 3694 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| 112 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | llmfit-tui/src/main.rs | 41 | #[derive(clap::ValueEnum, Clone, Copy, Debug)] | COMMENT |
| LOW | llmfit-tui/src/main.rs | 141 | #[arg(long)] | COMMENT |
| LOW | llmfit-tui/src/main.rs | 161 | COMMENT | |
| LOW | llmfit-tui/src/main.rs | 261 | Claim { | COMMENT |
| LOW | llmfit-tui/src/main.rs | 541 | COMMENT | |
| LOW | llmfit-tui/src/main.rs | 601 | Download { | COMMENT |
| LOW | llmfit-tui/src/main.rs | 661 | /// Number of trending models to fetch | COMMENT |
| LOW | llmfit-tui/src/main.rs | 761 | COMMENT | |
| LOW | llmfit-tui/src/main.rs | 821 | #[arg(long)] | COMMENT |
| LOW | llmfit-tui/src/tui_app.rs | 361 | /// Failed — error message is displayed. | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1 | use crate::hardware::{GpuBackend, SystemSpecs}; | COMMENT |
| LOW | llmfit-core/src/fit.rs | 21 | /// Accounts for kernel launch overhead, KV-cache reads, memory controller inefficiency. | COMMENT |
| LOW | llmfit-core/src/fit.rs | 201 | /// Speed: estimated tokens/sec normalized to 0-100. | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1101 | /// Estimate tokens per second for a model on given hardware. | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1121 | /// - Google, "Efficiently Scaling Transformer Inference" (arXiv:2211.05102) | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1181 | .active_parameters | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1221 | // | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1261 | gpu_compute_time, | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1281 | // | COMMENT |
| LOW | llmfit-core/src/fit.rs | 1301 | // - Expert density ratio (more inactive experts → more pressure) | COMMENT |
| LOW | llmfit-core/src/fit.rs | 3501 | total_params_b: f64, | COMMENT |
| LOW | llmfit-core/src/fit.rs | 3781 | // | COMMENT |
| LOW | llmfit-core/src/models.rs | 501 | #[serde(default, skip_serializing_if = "Vec::is_empty")] | COMMENT |
| LOW | llmfit-core/src/models.rs | 521 | /// Mamba style layers). When None, all layers are assumed to be full | COMMENT |
| LOW | llmfit-core/src/models.rs | 541 | pub shared_expert_intermediate_size: Option<u32>, | COMMENT |
| LOW | llmfit-core/src/models.rs | 581 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Default)] | COMMENT |
| LOW | llmfit-core/src/models.rs | 761 | /// This is just the model weights: params_b * bytes_per_param. | COMMENT |
| LOW | llmfit-core/src/models.rs | 841 | model_mem + kv_cache + overhead | COMMENT |
| LOW | llmfit-core/src/models.rs | 1101 | /// Deduplicate a list of [`HfModelEntry`] records by canonical name slug, merging duplicates. | COMMENT |
| LOW | llmfit-core/src/models.rs | 1541 | COMMENT | |
| LOW | llmfit-core/src/update.rs | 1 | //! Online model database updates via the HuggingFace Hub API. | COMMENT |
| LOW | llmfit-core/src/update.rs | 401 | head_dim: Option<u32>, | COMMENT |
| LOW | llmfit-core/src/benchmarks.rs | 121 | #[serde(default)] | COMMENT |
| LOW | llmfit-core/src/benchmarks.rs | 381 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Default)] | COMMENT |
| LOW | llmfit-core/src/share.rs | 1 | //! Contribute benchmark results back to the project as a GitHub pull request. | COMMENT |
| LOW | llmfit-core/src/share.rs | 41 | /// requires no client secret, so shipping it in the binary is by design. | COMMENT |
| LOW | llmfit-core/src/share.rs | 501 | /// already been submitted upstream and there was nothing to open a PR for. | COMMENT |
| LOW | llmfit-core/src/hardware.rs | 2221 | // and should NOT be treated as unified-memory systems. | COMMENT |
| LOW | llmfit-core/src/hardware.rs | 2341 | COMMENT | |
| LOW | llmfit-core/src/hardware.rs | 2761 | /// <https://docs.vllm.ai/en/latest/features/quantization/#supported-hardware> | COMMENT |
| LOW | llmfit-core/src/providers.rs | 1021 | /// Download a GGUF file from a HuggingFace repository. | COMMENT |
| LOW | llmfit-core/src/providers.rs | 1841 | // --------------------------------------------------------------------------- | COMMENT |
| LOW | llmfit-core/src/providers.rs | 2401 | None | COMMENT |
| LOW | llmfit-core/src/providers.rs | 2601 | return None; | COMMENT |
| LOW | llmfit-core/src/bench.rs | 1 | //! LLM inference benchmarking against Ollama, vLLM, and MLX endpoints. | COMMENT |
| LOW | llmfit-core/src/claim.rs | 1 | //! Kubernetes DRA claim generation. | COMMENT |
| LOW | llmfit-core/src/claim.rs | 141 | serde_json::to_string_pretty(&out).map_err(|e| format!("JSON serialization failed: {e}")) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/scrape_docker_models.py | 168 | print(f"Error fetching {url}: {e}", file=sys.stderr) | CODE |
| LOW | scripts/scrape_hf_models.py | 388 | except Exception as e: | CODE |
| LOW | scripts/scrape_hf_models.py | 721 | except Exception: | CODE |
| LOW | scripts/scrape_hf_models.py | 1153 | except Exception: | CODE |
| LOW | scripts/scrape_hf_models.py | 1200 | except Exception: | CODE |
| LOW | scripts/scrape_hf_models.py | 1562 | except Exception as e: | CODE |
| LOW | scripts/test_api.py | 183 | except Exception: | CODE |
| LOW | scripts/test_api.py | 263 | except Exception as exc: | CODE |
| LOW | scripts/test_api.py | 271 | except Exception: | CODE |
| LOW⚡ | scripts/verify_models.py | 38 | except Exception: | CODE |
| LOW | scripts/scrape_benchmarks.py | 103 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/validate_generation_scoring.py | 15 | CODE | |
| LOW | scripts/validate_generation_scoring.py | 169 | CODE | |
| LOW | scripts/validate_generation_scoring.py | 204 | CODE | |
| LOW | scripts/validate_generation_scoring.py | 241 | CODE | |
| LOW | scripts/scrape_hf_models.py | 826 | CODE | |
| LOW | scripts/scrape_hf_models.py | 856 | CODE | |
| LOW | scripts/scrape_hf_models.py | 1159 | CODE | |
| LOW | scripts/scrape_hf_models.py | 1224 | CODE | |
| LOW | scripts/scrape_hf_models.py | 1489 | CODE | |
| LOW | scripts/scrape_hf_models.py | 1644 | CODE | |
| LOW | scripts/scrape_hf_models.py | 1727 | CODE | |
| LOW | scripts/test_api.py | 235 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | llmfit-python/tests/test_llmfit.py | 15 | def test_find_llmfit_bin_raises_when_missing(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | scripts/scrape_docker_models.py | 194 | def ollama_tag_to_docker_repo(ollama_tag: str) -> str: | CODE |
| LOW | scripts/scrape_hf_models.py | 588 | def estimate_params_from_arch(config: dict | None) -> int | None: | CODE |
| LOW | scripts/scrape_hf_models.py | 1107 | def _model_gguf_repo_candidates(repo_id: str) -> list[tuple[str, str]]: | CODE |
| LOW | scripts/scrape_hf_models.py | 1378 | def _estimate_params_from_config(config: dict) -> int | None: | CODE |
| LOW⚡ | scripts/test_api.py | 74 | def test_models_envelope_and_limit(base_url: str) -> None: | CODE |
| LOW⚡ | scripts/test_api.py | 83 | def test_top_endpoint_excludes_too_tight(base_url: str) -> None: | CODE |
| LOW⚡ | scripts/test_api.py | 91 | def test_filters_runtime_and_use_case(base_url: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | llmfit-python/hatch_build.py | 27 | CODE | |
| LOW | llmfit-python/tests/test_llmfit.py | 3 | CODE | |
| LOW | llmfit-python/src/llmfit/__init__.py | 1 | CODE | |
| LOW | llmfit-python/src/llmfit/__main__.py | 1 | CODE | |
| LOW | scripts/validate_generation_scoring.py | 11 | CODE | |
| LOW | scripts/test_api.py | 13 | CODE | |
| LOW | scripts/validate_community_benchmarks.py | 25 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 171 | # Check if install dir is in PATH | COMMENT |
| LOW | scripts/update_models.sh | 27 | # Check if Python 3 is available | COMMENT |
| LOW | scripts/update_models.sh | 75 | # Check if cargo is available | COMMENT |
| LOW | scripts/scrape_hf_models.py | 553 | # Check if architecture is in known MoE configs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/scrape_hf_models.py | 240 | # Embeddings (useful for RAG sizing) | COMMENT |
| MEDIUM⚡ | scripts/scrape_hf_models.py | 1310 | "feature-extraction", # Embedding models (useful for RAG sizing) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/providers.md | 134 | export LMSTUDIO_API_KEY="your-api-key-here" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | llmfit-desktop/ui/i18n.js | 252 | node.setAttribute('placeholder', t(node.getAttribute('data-i18n-placeholder'))); | CODE |
| LOW | llmfit-core/data/benchmarks.yaml | 974 | - { pattern: '"company"\\s*:\\s*"Acme Corp"', weight: 1, case_insensitive: true } | CODE |
| LOW | llmfit-core/data/benchmarks.yaml | 976 | - { pattern: '"phone"\\s*:\\s*"555-0123"', weight: 1 } | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | llmfit-core/src/fit.rs | 397 | // Step 1: pick the best available execution path | COMMENT |
| LOW⚡ | llmfit-core/src/fit.rs | 398 | // Step 2: score memory fit purely on headroom in that path's memory pool | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | llmfit-core/src/fit.rs | 397 | // Step 1: pick the best available execution path | COMMENT |
| LOW⚡ | llmfit-core/src/fit.rs | 398 | // Step 2: score memory fit purely on headroom in that path's memory pool | COMMENT |