Justify
New · a jury of six AI models, graded by your tests

Every line has to earn its own place.

Justify reads a whole codebase and asks every import, function, class, dependency and copied block one question — why are you here? It finds what cannot answer, shows which AI assistant wrote it, and hands your AI the fix plan.

Try

  • Any public repository
  • Private code, sealed
  • Never runs your code
  • Open source · MIT
One tower per file. Gold floors are copied code, coral is dead weight, violet came from AI-signed commits. Drag to look around. No AI traceAI-signedCopiedDead weight
Called live from ChatGPTGitHub CopilotClaude Code Connects to ClaudeCursorGemini CLICopilot Studio
1,013,192lines of AI-assisted Python measured in five public repositories
40 sto audit fastmcp live — 250,830 lines and 4,051 commits
6AI models from four makers vote on every removal
0storage or AI keys — storage, the jury and Microsoft sign-in use Entra identities

The product

Everything an audit should say. Nothing it should keep.

Dead weight never breaks anything — that is why it survives. An assistant writes for the prompt in front of it, not for the codebase it cannot see. Justify reads the whole codebase.

Four kinds of weight

Unused imports, functions, classes and dependencies — and copied code.

Python gets the full audit. JavaScript, TypeScript, Go, Java, C, C++, C#, Rust and 20 more are checked for copied blocks. Every repository gets a census and authorship.

Who wrote it

Names the assistant.

Nineteen assistants recognised by the signatures they leave. Pasted code carries none — it is “no AI trace”, never “human”.

Commits in PrefectHQ/fastmcp

For your AI

A fix plan, file by file.

One button, or one MCP call: the assistant gets exactly which lines to change and why — and you approve each change.

Private by design

Sealed so only you can read it.

Your code is deleted when the audit ends. The result is encrypted with a key made in your browser, which we never store. We keep no copy we can open.

Over time

What got fixed since last time.

A dashboard tracks every repository: the ratio, the trend, and exactly which findings were fixed or are new.

Our own repository, after the 11 removals its tests proved

The jury · on your machine

Six models argue every doubtful removal. Your tests have the last word.

GPT-5.6 Sol, gpt-oss, Phi-4, Phi-4-reasoning and Llama on Azure AI Foundry, and Claude Opus 5.5 — each must cite the line that justifies its vote. Doubt always means keep.

How it works

Seven stages. The model never deletes.

A code graph proposes, a jury of models is asked why, a second call tries to prove it wrong, the tests decide, and a person approves.

  1. 1IngestEvery file read once and fingerprinted; every language counted.
  2. 2Static factsSyntax trees, not text search: who uses what, across the whole repository.
  3. 3CandidatesFrameworks, dynamic lookups and re-exports held back. Copies found in every language.
  4. 4JustifyA jury of models is asked why the unit exists, and must cite a file and line that is checked.
  5. 5ChallengeThe strongest model tries to prove the code is needed. If it can, the code stays.
  6. 6ProofRemoved in a temporary copy; your tests run. A file the tests never load is “not provable”.
  7. 7ReportA reason on every line, a fix plan for your AI, a ledger of every run.

This site stages 1–3, authorship and the score — public repositories and your own code, read-only.

Your machine stages 4–6 — the jury, your tests, the proof.

The Justify Jury · Azure AI Foundry + Claude

Six models from four makers vote. The tests grade them.

One model's opinion is a guess. Justify asks a jury — and checks every juror against what the project's own tests say really happened.

  • Removing needs near-unanimity. Every juror but one must vote remove, each at 0.7 confidence or more.
  • One real reason vetoes. A keep that cites a file and line where the code is used stops the removal.
  • A split goes to a person. Anything the jury cannot settle is kept and flagged.
  • No AI keys. Foundry jurors answer to an Entra sign-in, Claude Opus 5.5 to the Claude Code sign-in.
Votes the tests proved right

13 units of one repository, every removal run against its own tests · 84 model calls · 3 Oct 2026

A small sample, shown as measured. Every removal the jury approved passed the tests; its mistakes all kept code that could have gone. Answers that broke the required format were not counted — Phi-4-reasoning answered validly on 4 of the 11 graded units.

What we measured

Does it pay off? It depends on the repository.

Five public repositories with AI-signed commits — 3,434 Python files, 1,013,192 lines, each at its latest commit on 3 October — every finding split by who wrote it.

  1. Unused code is not where AI-assisted code costs. AI-signed code carried no more of it in all five.
  2. Duplication is. Higher in three of five — 7.2× the rate of the rest in the largest repository.
  3. There is no single answer. The same assistant pays off in one repository and costs in another. Measure yours.

Static stages and authorship, no proof. AI-signed = commits with an assistant signature, a lower bound. The first run, on 2 October, gave the same three findings.

Duplicate code per 1,000 lines
AI-signedNo AI trace
Duplicate code per 1,000 lines, AI-signed versus no AI trace

Privacy

What Justify can see — and what it cannot.

To audit code, the service has to read it for the few seconds the audit runs. After that, this is everything it keeps, and who can read it.

WhatKept whereWho can read it
Code you upload or share with an AI appNowhere — deleted the moment the audit endsNobody
The result of a private auditEncrypted with AES-256-GCM under a key made in your browser (or handed to your AI app); the server holds it only while the audit runs and never stores itOnly you — not even Justify
Audits of public repositoriesCached by commitAnyone with the link — it is public code
Your history and dashboard numbersOur database: repository names, counts and ratios — never code or file namesYou, and the service that shows it to you
Your accountA display name; a GitHub username and picture. No email, no password, no GitHub keyYou, and the service
Your network addressNever stored — the free daily allowance is counted under a keyed hash whose key lives only in memoryNobody
Sessions and tokensOnly their SHA-256 fingerprintsNobody can recover them

No code is ever sent to a model by this site. Storage and Microsoft sign-in use the service's own Entra identity, so there is no storage key to leak; the jury reaches Azure AI Foundry with an Entra sign-in, not a key. Everything here is open source: read exactly what it does, or the full privacy page.

Model Context Protocol

Let your AI assistant check its own work.

The assistant that writes the code can call Justify before it hands the code over — and gets back a fix plan, file by file.

The jury, and proof — on your machine

The hosted audit reads code and never runs anything. To let the jury judge, and to prove each removal by running your own tests on a temporary copy, run Justify locally:

pip install "justify-code[mcp] @ git+https://github.com/BPSKartik/justify"
justify scan . --judge --prove "python -m pytest -q"

As a local MCP server: command justify-mcp, with JUSTIFY_TEST_COMMAND (the only command it may run) and JUSTIFY_ALLOWED_ROOTS (the only folders it may read).

Questions

Before you trust it.

Straight answers — including the ones that limit what we can claim.

Does Justify ever delete my code?

No. It proposes. On your machine it removes code only in a temporary copy, runs your tests there, and writes a report. A person approves every change. The model can veto a removal; it can never force one.

Who can see the code I upload?

Nobody after the audit. It is unpacked, audited and deleted when the audit ends. The result is sealed with a key made in your browser — Justify stores only ciphertext it cannot open. Save the key if you want to open the audit on another device.

How does it know which code an AI wrote?

From signatures the assistants leave in commits: trailers like Co-Authored-By: Claude, lines like “Generated with Codex”, and the accounts agents commit as. Code pasted from a chat window carries no signature — no tool can reliably tell it apart, and guessing would wrongly accuse people — so Justify reports it as “no AI trace”, never as human.

What is the Justified Line Ratio?

The share of lines that are not dead weight: lines left after removing everything with no use anywhere, divided by all lines. The dashboard tracks it per repository, over time, split by authorship.

Which languages?

Python, JavaScript, TypeScript (React too), Java, Kotlin, C#, C, C++, Go, Rust, PHP, Swift, CSS, SCSS and HTML get a dead-code audit: unused imports, private functions and members nothing calls, and CSS classes, variables and animations nothing uses. Code another project could call — anything exported or public — is never called dead, only flagged for judgement. More than 25 languages are checked for copied code, and every repository gets authorship.

How is this different from a linter?

A linter looks at one file and asks whether a name is used. Justify looks at the whole repository, asks whether the code is worth keeping, explains why with a file and line, proves removals with your tests, and splits the result by who wrote it.

Find out what your codebase is carrying.

Paste a repository, or sign in and pick one of yours.

Audit a repository