CodeLore

Read the lore of your codebase.

Behind every codebase is a human narrative your linter cannot see: who wrote this, who still understands it, and where the historical scars are buried. CodeLore mines your repository's git history and projects it into dozens of behavioral analyses — hotspots, change-coupling, ownership maps, knowledge fragmentation, code-health scores — fused with the static import graph and calibrated against a reference corpus, then surfaced as SARIF for your CI dashboard, a single-file interactive dashboard, a quality gate inside the AI agent loop, and a local MCP server. Fully local: no account, no telemetry, every formula published.

The CodeLore interactive dashboard: a bivariate hotspot map where file size encodes churn and colour encodes health times activity, with switchable behavioural lenses and an off-boarding simulation.

The interactive dashboard's hotspot map, analyzing CodeLore's own repository — regenerated on every push to main. Click to open the live demo →

What it answers

Static analyzers read your code at a single point in time. CodeLore reads its history — and that history answers questions static tools can't.

In your workflow

Every number comes from a published, deterministic formula — no opaque ML — and everything runs against the repository on your disk: no account, no server, no telemetry.

Calibrated, and honest about it

Every score is a published, deterministic formula — no opaque ML. And where a number is an estimate rather than a fact, CodeLore shows you the uncertainty instead of hiding it.

How it compares

GitHub Code Quality brings native PR integration, zero setup on GitHub-hosted repos, and CodeQL's rule depth to point-in-time static analysis. CodeLore's angle is different — and complementary.

This is a comparison with the Code Quality product, not the Code Scanning integration above — CodeLore's SARIF output feeds GitHub Code Scanning directly; the two sit side by side rather than competing.

Install

Pick whichever fits your machine.

# Homebrew (macOS or Linuxbrew, arm64 or x86_64):
brew install emrecdr/codelore/codelore
# Prebuilt binary via cargo-binstall (any Rust dev environment):
cargo binstall codelore
# Container (distroless; the entrypoint is the codelore binary):
docker run --rm -v "$PWD":/repo ghcr.io/emrecdr/codelore:latest analyze --analysis hotspots --repo /repo
# From source (Rust 1.96+ toolchain required):
cargo install --git https://github.com/emrecdr/codelore codelore-cli

Add --features spa to the source build for the optional interactive dashboard emitter, or grab a prebuilt archive from a GitHub Release (five targets per tag, each with SLSA L3 build provenance).

Benchmarks

A weekly workflow runs CodeLore's end-to-end benchmarks and publishes the performance trend over time.

Benchmark trends → — regression tracking across releases, updated as each weekly run lands.