git-plexityv0.1.4-beta
About & Methodology

We score ambition, not tidiness.

git-plexity is an architectural complexity search & telemetry engine for GitHub repositories. It answers a different question than any linter: how hard was this system to architect correctly?

Why architectural difficulty matters

Linters & static analyzers

Tools like ESLint, coverage reporters, or SonarQube-style analyzers reward simple, clean CRUD apps and quietly penalize the hard parts: a novel lock-free allocator in 40 lines looks “risky”, while a 4,000-line boilerplate wrapper looks “clean”. They measure hygiene — not engineering difficulty.

git-plexity

git-plexity measures engineering ambition: system boundaries, concurrency models, state and data lifecycle, scale, hard domain constraints, and abstractions that are actually earned. A CRUD app scores low by design — and a frontier system scores high.

How the pipeline works

step 1

Smart Tree Pruning & Heuristic Ranking

We pull the full recursive git tree from the GitHub API, then filter out lockfiles, images, minified assets, build output, tests, docs, and vendored code. The remaining files are ranked by a heuristic — priority directories (src/, core/, kernel/…), entry points, and log-scaled file size — to surface the top 12 architectural candidates.

step 2

Context Compression

The selected files are fetched raw and compressed into the model's context window: each file is capped at 12,000 characters and the combined payload at ~85,000 chars, with explicit truncation flags so the evaluator always knows what was cut.

step 3

Rubric-Calibrated LLM Evaluation

mistral-large-latest (JSON mode) scores the repo against the 100-point rubric, anchored to the five calibration tiers. The server never trusts the model's arithmetic: every dimension is clamped to its max and the total score is recomputed deterministically.

Inside the Evaluation Engine

mistral-large-latest · JSON mode · temperature 0.2

A transparency report: exactly what is sent to the backbone LLM, what the system prompt tells it to judge, and which parts of the final score are computed deterministically by the server rather than by the model.

1 · What is sent to the LLM — the 4-part context payload

block 01

Repository Metadata

owner/repo, description, primary language, star count, default branch and is_fork — a few lines of front-matter so the model can calibrate against forks and thin wrappers.

Repository: vitejs/vite
Language: TypeScript · Stars: 71,204
Is fork: no · Default branch: main

block 02

Dependency Manifest

Root manifests — package.json, Cargo.toml, pyproject.toml, go.mod — are ranked as high-signal files, so their contents land in the prompt. This is how the engine distinguishes a custom engine from a thin SDK wrapper.

package.json / Cargo.toml
pyproject.toml / go.mod

block 03

Pruned Directory Tree

Paths and byte sizes only (capped at 500 entries after filtering out lockfiles, images, build output and vendored code) — the macro architectural shape of the repo without the bulk.

- src/core/dev-server.ts (18.2 kB)
- src/node/cli.ts (9.7 kB)
- src/node/optimizer/… (…)

block 04

Selected Source Files

The 12 files you selected (auto-ranked top 12 by default), each truncated cleanly at 12,000 chars and wrapped in <file path="…" chars="…"> blocks with explicit truncation flags.

<file path="src/node/server.ts" chars="12000" (truncated)>
…source…
</file>

2 · How the prompt evaluates difficulty, not style

The system prompt hard-codes these rules — the model is explicitly forbidden from rewarding hygiene and required to justify every score with file-level evidence:

  • Score ONLY architectural difficulty — never code style, formatting, linting, comments, docs, or test coverage.
  • Penalize accidental complexity (spaghetti, god objects, copy-paste) under Abstraction & Extensibility.
  • Every claim must cite an exact file path that was actually sent in the context payload.
  • Anchor the total impression to the five calibration tiers, from CRUD glue (0–25) to frontier systems (91–100).

system prompt — excerpt

You are git-plexity, a principal systems architect.
You evaluate the ARCHITECTURAL DIFFICULTY … of a GitHub
repository. You must judge ONLY architectural difficulty:
algorithms, concurrency, state management, decoupling, scale,
constraints, and abstractions. NEVER score code style,
formatting, linting, comments, documentation quality, or test
coverage.

… PENALIZE accidental complexity (spaghetti, god objects,
copy-paste) under Abstraction & Extensibility …

Rules: every score must be within its max; cite only files
actually provided; keep reasons specific and technical.

3 · Reason-before-score & deterministic guardrails

JSON mode forces a strict schema in which every rubric dimension carries a written reason and a separate evidence[] list — so the model must produce technical, file-cited justification before each number exists.

The server then never trusts the LLM's arithmetic: each dimension is clamped to [0, max], rounded to 0.1, and the total is re-computed deterministically:

for each dim:  score_i = clamp(round(llm_i, 1), 0, max_i)
totalScore  = Σ score_i          // computed server-side
            = 30 + 25 + 20 + 15 + 10 = 100 max

response schema — excerpt

{
  "category": "Distributed System",
  "scores": {
    "domainComplexity": { "score": 24, "max": 30,
      "reason": "Custom Raft log replication in core/raft.rs…" },
    …
  },
  "evidence": [
    { "file": "core/raft.rs",
      "observation": "Hand-rolled leader election with …" }
  ],
  "comparableRepos": [ … ]
}

4 · What the beta sends — 12 files, ~85k chars

Beta — free tier

  • • Auto top-12 ranking of architectural files
  • • Custom file swapping up to 12 files
  • • ~85k-char prompt budget per run
  • • 5-dimension radar telemetry

Enough to capture most single-package repos in one pass — each file is truncated at 12,000 chars.

Try the analyzer

The 100-point scoring rubric

30 + 25 + 20 + 15 + 10 = 100 pts
1.Domain & Algorithmic Complexity0–30

Novel algorithms, compilers, distributed consensus, low-level memory management, complex state machines — vs. basic CRUD/API glue.

2.System Architecture & Decoupling0–25

Concurrency models, event-driven pipelines, plugin systems, modularity and layering.

3.Scale & State Management0–20

Data lifecycle, caching and invalidation, distributed state, real-time sync, throughput design.

4.Domain-Specific Constraints0–15

Latency budgets, memory limits, rendering pipelines, cryptography, hardware constraints.

5.Abstraction & Extensibility0–10

Earned abstractions that pay off. Accidental complexity (spaghetti, god objects) is penalized.

Benchmark calibration tiers

Every evaluation is anchored to five reference tiers, so a score means the same thing across languages and domains. Famous open-source examples per tier:

0–25

Glue / CRUD

Boilerplate wrappers, thin SDKs, standard CRUD APIs and config glue.

26–50

Structured Application

Multi-module applications with custom state management or background jobs.

51–75

Systems & Frameworks

Frameworks, custom query/sync engines, plugin pipelines, complex state machines.

76–90

Deep Infrastructure

Compilers, storage engines, consensus protocols, rendering and runtime engines.

91–100

Frontier Systems

OS kernels, foundational ML runtimes, LLVM-scale compiler infrastructure.

Coming Soon

git-plexity Pro — 30-file deep context & verified README badges

The public beta is free-tier only (12 files per evaluation). Pro will unlock 30-file deep monorepo scans and downloadable, tamper-evident SVG badges verifiable on /verify.

See how heavy your favorite repo really is

Run the pipeline on any public GitHub repository and get a radar chart, rubric breakdown, and file-level evidence in seconds.

Test a Repository