Repository Analysis

AlexsJones/llmfit

Hundreds of models & providers. One command to find what runs on your hardware.

8.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of AlexsJones/llmfit, a Rust project with 34,442 GitHub stars. SynthScan v2.0 examined 80,794 lines of code across 216 source files, recording 308 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 8.0 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).

8.0
Adjusted Score
8.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
34.4K
Stars
Rust
Language
80.8K
Lines of Code
216
Files
308
Pattern Hits
2026-08-29
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 1MEDIUM 193LOW 114

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 308 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.

Decorative Section Separators190 hits · 534 pts
SeverityFileLineSnippetContext
MEDIUMllmfit-tui/src/tui_ui.rs5026// ── Live inference-bench view ─────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/display.rs487// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/display.rs489// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/display.rs922// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/display.rs924// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/main.rs1796 // ── --status ──────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/main.rs1830 // ── --clear ───────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/main.rs1840 // ── fetch ─────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/main.rs2057// ── bench helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/main.rs2769// ── main ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs1374 // ── Restore persisted filters ────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs2456 // ── Benchmarks view ──────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3341 // ── Visual mode ──────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3410 // ── Select mode ─────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3476 // ── Quant popup ─────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3510 // ── RunMode popup ───────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3545 // ── Params bucket popup ─────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3580 // ── License popup ───────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3665 // ── Hardware simulation ──────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3819 // ── Advanced Config Popup ──────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs3850 // ── Filter Popup ─────────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs4821 // ── Live inference-bench view ─────────────────────────────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs5278 // ── matched GGUF source attribution (issue #569) ─────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs5278 // ── matched GGUF source attribution (issue #569) ─────────────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs5365 // ── available_download_providers MLX gating (issue #294) ─────────COMMENT
MEDIUMllmfit-tui/src/tui_app.rs5365 // ── available_download_providers MLX gating (issue #294) ─────────COMMENT
MEDIUMscripts/scrape_hf_models.py1367# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/scrape_hf_models.py1369# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/scrape_hf_models.py1129# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/scrape_hf_models.py1131# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_models.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_models.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_models.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_models.py71# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_models.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/verify_models.py118# ---------------------------------------------------------------------------COMMENT
MEDIUMllmfit-core/src/fit.rs1108// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1110// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1204 // ── Bandwidth-based estimation (preferred) ─────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1421 // ── Fallback: fixed-constant approach ──────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1499// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1501// ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1770 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1772 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1837 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1839 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1910 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs1912 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2169 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2171 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2227 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2229 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2556 // ── Estimate calibration against measured community benchmarks ──────COMMENT
MEDIUMllmfit-core/src/fit.rs2752 // ── Usable context (issue #621) ─────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2752 // ── Usable context (issue #621) ─────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2941 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2943 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2996 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs2998 // ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMllmfit-core/src/fit.rs3257 // ────────────────────────────────────────────────────────────────────COMMENT
130 more matches not shown…
Over-Commented Block61 hits · 42 pts
SeverityFileLineSnippetContext
LOWllmfit-tui/src/main.rs41#[derive(clap::ValueEnum, Clone, Copy, Debug)]COMMENT
LOWllmfit-tui/src/main.rs141 #[arg(long)]COMMENT
LOWllmfit-tui/src/main.rs161COMMENT
LOWllmfit-tui/src/main.rs261 Claim {COMMENT
LOWllmfit-tui/src/main.rs661 /// Fetch the latest LLM models from HuggingFace and update the local cache.COMMENT
LOWllmfit-tui/src/main.rs761 host: String,COMMENT
LOWllmfit-tui/src/main.rs821 /// Only test specific roles (comma-separated)COMMENT
LOWllmfit-tui/src/tui_app.rs361 /// Failed — error message is displayed.COMMENT
LOWllmfit-core/src/analysis.rs201COMMENT
LOWllmfit-core/src/fit.rs1use crate::hardware::{GpuBackend, SystemSpecs};COMMENT
LOWllmfit-core/src/fit.rs21 /// Accounts for kernel launch overhead, KV-cache reads, memory controller inefficiency.COMMENT
LOWllmfit-core/src/fit.rs201 /// Speed: estimated tokens/sec normalized to 0-100.COMMENT
LOWllmfit-core/src/fit.rs1101 }COMMENT
LOWllmfit-core/src/fit.rs1121/// In practice, real throughput is ~50–70% of this ceiling due to kernelCOMMENT
LOWllmfit-core/src/fit.rs1201 .unwrap_or_else(|| model.params_b())COMMENT
LOWllmfit-core/src/fit.rs1241 // 1. MoeOffload mode: inactive experts in RAM, CPU reads active expertsCOMMENT
LOWllmfit-core/src/fit.rs1281 let mode_factor = config.run_mode_factors.for_run_mode(run_mode);COMMENT
LOWllmfit-core/src/fit.rs1301 //COMMENT
LOWllmfit-core/src/fit.rs1321 // - OLMoE-1B-7B Q4_K_M (25% util, 8/64): penalty=1.0 → est 200, meas 258 (0.77x)COMMENT
LOWllmfit-core/src/fit.rs3621 //COMMENT
LOWllmfit-core/src/fit.rs3801COMMENT
LOWllmfit-core/src/fit.rs3881 active_experts: u32,COMMENT
LOWllmfit-core/src/models.rs501 pub context_length: u32,COMMENT
LOWllmfit-core/src/models.rs521 pub languages: Vec<String>,COMMENT
LOWllmfit-core/src/models.rs541 /// attention. Only full attention layers have a context-scaled KV cache;COMMENT
LOWllmfit-core/src/models.rs561 /// Model architecture string from HuggingFace config (e.g. "qwen2", "llama4",COMMENT
LOWllmfit-core/src/models.rs621 }COMMENT
LOWllmfit-core/src/models.rs841COMMENT
LOWllmfit-core/src/models.rs921 /// KV cache size in GB at the given context length and KV quant.COMMENT
LOWllmfit-core/src/models.rs1181}COMMENT
LOWllmfit-core/src/update.rs1//! Online model database updates via the HuggingFace Hub API.COMMENT
LOWllmfit-core/src/update.rs401 head_dim: Option<u32>,COMMENT
LOWllmfit-core/src/plan.rs221 let params = modelCOMMENT
LOWllmfit-core/src/benchmarks.rs121 #[serde(default)]COMMENT
LOWllmfit-core/src/benchmarks.rs301 paramsCOMMENT
LOWllmfit-core/src/benchmarks.rs401/// all of which outrank the formula estimate.COMMENT
LOWllmfit-core/src/share.rs1//! Contribute benchmark results back to the project as a GitHub pull request.COMMENT
LOWllmfit-core/src/share.rs41/// requires no client secret, so shipping it in the binary is by design.COMMENT
LOWllmfit-core/src/share.rs321 return Some(PathBuf::from(dir));COMMENT
LOWllmfit-core/src/share.rs561 /// already been submitted upstream and there was nothing to open a PR for.COMMENT
LOWllmfit-core/src/hardware.rs601COMMENT
LOWllmfit-core/src/hardware.rs1101COMMENT
LOWllmfit-core/src/hardware.rs1161 }COMMENT
LOWllmfit-core/src/hardware.rs1321 discreteCOMMENT
LOWllmfit-core/src/hardware.rs2541/// `HardwareInformation.MemorySize`, which may be a REG_BINARY blob or aCOMMENT
LOWllmfit-core/src/hardware.rs2681/// NVIDIA suffixes these adapters with "Laptop GPU"; earlier generations useCOMMENT
LOWllmfit-core/src/hardware.rs2701/// - Google, "Efficiently Scaling Transformer Inference" (arXiv:2211.05102)COMMENT
LOWllmfit-core/src/hardware.rs3121/// <https://docs.vllm.ai/en/latest/features/quantization/#supported-hardware>COMMENT
LOWllmfit-core/src/providers.rs321/// count of locally-installed models. Cloud-hosted models are skipped entirely:COMMENT
LOWllmfit-core/src/providers.rs861// llama.cpp provider (direct GGUF download from HuggingFace)COMMENT
LOWllmfit-core/src/providers.rs2601 Some(lmstudio_gguf_resolve_url(repo_id, &filename))COMMENT
LOWllmfit-core/src/providers.rs2641 match url.split_once("/resolve/") {COMMENT
LOWllmfit-core/src/providers.rs2841/// vLLM accepts HF model names directly.COMMENT
LOWllmfit-core/src/providers.rs3001struct RamaLamaModel {COMMENT
LOWllmfit-core/src/providers.rs3261pub fn strip_gguf_quant_suffix(stem: &str) -> Option<String> {COMMENT
LOWllmfit-core/src/providers.rs3281 let base = base.strip_suffix("-ud").unwrap_or(base);COMMENT
LOWllmfit-core/src/providers.rs3781COMMENT
LOWllmfit-core/src/providers.rs4141 return installed_name.starts_with(&format!("{candidate}-"));COMMENT
LOWllmfit-core/src/bench.rs1//! LLM inference benchmarking against Ollama, vLLM, and MLX endpoints.COMMENT
LOWllmfit-core/src/claim.rs1//! Kubernetes DRA claim generation.COMMENT
1 more matches not shown…
Hyper-Verbose Identifiers13 hits · 14 pts
SeverityFileLineSnippetContext
LOWllmfit-python/tests/test_llmfit.py15def test_find_llmfit_bin_raises_when_missing(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWscripts/validate_generation_scoring.py15def qwen_minor_generation_from_name(name_lower: str) -> float | None:CODE
LOWscripts/test_preserve_catalog_metadata.py14def test_preserves_architecture_when_config_fetch_misses():CODE
LOWscripts/test_preserve_catalog_metadata.py40def test_does_not_invent_heads_the_catalog_never_had():CODE
LOWscripts/scrape_docker_models.py194def ollama_tag_to_docker_repo(ollama_tag: str) -> str:CODE
LOWscripts/scrape_hf_models.py494def preserve_existing_metadata(old_model: dict, fresh_model: dict) -> list[str]:CODE
LOWscripts/scrape_hf_models.py650def estimate_params_from_arch(config: dict | None) -> int | None:CODE
LOWscripts/scrape_hf_models.py1173def _model_gguf_repo_candidates(repo_id: str) -> list[tuple[str, str]]:CODE
LOWscripts/scrape_hf_models.py1444def _estimate_params_from_config(config: dict) -> int | None:CODE
LOWscripts/scrape_hf_models.py1805def drop_secret_bearing_models(models: list[dict]) -> tuple[list[dict], list[str]]:CODE
LOWscripts/test_api.py74def test_models_envelope_and_limit(base_url: str) -> None:CODE
LOWscripts/test_api.py83def test_top_endpoint_excludes_too_tight(base_url: str) -> None:CODE
LOWscripts/test_api.py91def test_filters_runtime_and_use_case(base_url: str) -> None:CODE
Excessive Try-Catch Wrapping11 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMscripts/scrape_docker_models.py168 print(f"Error fetching {url}: {e}", file=sys.stderr)CODE
LOWscripts/scrape_hf_models.py395 except Exception as e:CODE
LOWscripts/scrape_hf_models.py783 except Exception:CODE
LOWscripts/scrape_hf_models.py1219 except Exception:CODE
LOWscripts/scrape_hf_models.py1266 except Exception:CODE
LOWscripts/scrape_hf_models.py1628 except Exception as e:CODE
LOWscripts/test_api.py183 except Exception:CODE
LOWscripts/test_api.py263 except Exception as exc:CODE
LOWscripts/test_api.py271 except Exception:CODE
LOWscripts/verify_models.py38 except Exception:CODE
LOWscripts/scrape_benchmarks.py103 except Exception as e:CODE
Deep Nesting12 hits · 10 pts
SeverityFileLineSnippetContext
LOWscripts/validate_generation_scoring.py32CODE
LOWscripts/validate_generation_scoring.py188CODE
LOWscripts/validate_generation_scoring.py223CODE
LOWscripts/validate_generation_scoring.py260CODE
LOWscripts/scrape_hf_models.py888CODE
LOWscripts/scrape_hf_models.py918CODE
LOWscripts/scrape_hf_models.py1225CODE
LOWscripts/scrape_hf_models.py1290CODE
LOWscripts/scrape_hf_models.py1555CODE
LOWscripts/scrape_hf_models.py1710CODE
LOWscripts/scrape_hf_models.py1823CODE
LOWscripts/test_api.py235CODE
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWllmfit-python/hatch_build.py27CODE
LOWllmfit-python/tests/test_llmfit.py3CODE
LOWllmfit-python/src/llmfit/__init__.py1CODE
LOWllmfit-python/src/llmfit/__main__.py1CODE
LOWscripts/validate_generation_scoring.py11CODE
LOWscripts/test_api.py13CODE
LOWscripts/validate_community_benchmarks.py25CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWinstall.sh171 # Check if install dir is in PATHCOMMENT
LOWscripts/update_models.sh27# Check if Python 3 is availableCOMMENT
LOWscripts/update_models.sh75# Check if cargo is availableCOMMENT
LOWscripts/scrape_hf_models.py615 # Check if architecture is in known MoE configsCOMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/scrape_hf_models.py245 # Embeddings (useful for RAG sizing)COMMENT
MEDIUMscripts/scrape_hf_models.py1376 "feature-extraction", # Embedding models (useful for RAG sizing)CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/providers.md134export LMSTUDIO_API_KEY="your-api-key-here"CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWllmfit-desktop/ui/i18n.js252 node.setAttribute('placeholder', t(node.getAttribute('data-i18n-placeholder')));CODE
LOWllmfit-core/data/benchmarks.yaml974 - { pattern: '"company"\\s*:\\s*"Acme Corp"', weight: 1, case_insensitive: true }CODE
LOWllmfit-core/data/benchmarks.yaml976 - { pattern: '"phone"\\s*:\\s*"555-0123"', weight: 1 }CODE
Verbosity Indicators2 hits · 2 pts
SeverityFileLineSnippetContext
LOWllmfit-core/src/fit.rs397 // Step 1: pick the best available execution pathCOMMENT
LOWllmfit-core/src/fit.rs398 // Step 2: score memory fit purely on headroom in that path's memory poolCOMMENT
Structural Annotation Overuse2 hits · 2 pts
SeverityFileLineSnippetContext
LOWllmfit-core/src/fit.rs397 // Step 1: pick the best available execution pathCOMMENT
LOWllmfit-core/src/fit.rs398 // Step 2: score memory fit purely on headroom in that path's memory poolCOMMENT