Docs / Overview9 min readEdit on GitHub

Illume documentation#

Illume is a codebase-onboarding tool. It clones a GitHub repository, parses it with tree-sitter, builds a file and symbol dependency graph, mines git history for ownership and risk, and uses language models to write a glossary, a reading order and an architecture brief. A chat answers questions from the code with citations, and an MCP server gives AI coding tools the same abilities. This is the documentation for everything in the repository: how each part works, why it is built that way, how to run and change it, and what it does not do.

How to read these documents#

The pages follow the Diátaxis split: tutorials get you started, how-to guides walk through one change, reference pages list every route, table, variable and constant, and explanation pages say how a subsystem works and why. Every page opens with a short summary and a list of the terms it uses. Every page closes with its design trade-offs and limits, then links to related pages.

Pick a path by what you came for:

The documents#

Start here#

The pipeline#

Search and chat#

  • The index and embeddings: what is indexed, as what text, and what is left out.
  • Retrieval arms: query transforms, seven channels, fusion, rerankers, diversity and the presets.
  • Chat and citations: the two chat endpoints, citations, conversations, stale answers and the free tier.
  • The agent: the tool-using agent, its budgets, planner mode, events and persistence.
  • The auto router: how auto picks a preset per question.

The graph#

Interfaces#

Clients#

Security#

Evaluation#

Testing and operations#

  • Testing overview: the suites, which one a change belongs in, and coverage.
  • Backend tests: fixtures, fakes, the security suite and migration tests.
  • Frontend and end-to-end tests: Vitest, Playwright and the production smoke suite.
  • CI and CD: the workflows, the coverage ratchet and the deploy.
  • Deployment: the image, the three containers and the state that must survive.
  • Runbook: symptoms, causes and fixes in production.

Reference#

Guides#

The system in one picture#

flowchart LR
    GH["GitHub repository"] --> ING["Ingest<br/>clone, parse, history, score"]
    ING --> GEN["Generate<br/>glossary, reading order, brief"]
    ING --> IDX["Index<br/>embeddings and full text"]
    GEN --> DB[("Postgres")]
    IDX --> DB
    ING --> DB
    DB --> PAGES["Pages and 3D graph"]
    DB --> CHAT["Chat<br/>presets and agent"]
    DB --> MCP["MCP tools"]
    GH -.->|"auto-update"| ING

Glossary#

Terms used across several pages. Each page also defines its own terms where they first appear.

TermMeaning
Agentthe deep_agent presets: a model that answers by calling tools in a loop instead of retrieving once. See the agent
Armone answering configuration measured by the eval harness. The product's presets are arms; ablations change one thing. See the eval harness
Artefactanything the pipeline writes for a repository: files, symbols, edges, scores, glossary, reading order, brief, embeddings
Barrela file that only re-exports other files, such as index.ts or __init__.py. Detected by structure, not by name. See the dependency graph
Base commit (B)in the eval harness, the commit a repository is frozen at; nothing newer is visible to retrieval
BeatCelery's scheduler process, which queues the auto-update sweep and the nightly prune
Briefthe architecture brief: a model-written narrative of how the repository fits together, plus its critical files
Bus factorthe number of people who have committed to a file in the analysed history. A bus factor of one makes the file a knowledge silo
BYOKbring your own key: a user's own model-provider key, encrypted at rest, which pays for that user's generation and chat
Channelone independent way of finding candidates for a question, such as dense, lexical, symbol, grep, history, graph or cochange
Chunkone labelled piece of text in the search index, built from a symbol, file, commit, pull request or README section
Citation keythe stable identifier of a chunk, which the model writes in its answer and the client turns into a citation card
Clone cachethe persistent per-repository clones that let a sync fetch only what changed
Co-changetwo files that tend to change in the same commits
Criticalitya file's risk label, critical, caution or safe, from fan-in, core-infrastructure path patterns, staleness and test coverage, with reasons
Decision model (Jev)a model reached through OpenRouter that answers narrow choice, score and probability questions in batches: routing, the Jev reranker and some agent decisions
Embeddinga 1536-number vector from text-embedding-3-small that places a chunk so similar text lands close together
Fan-in, fan-outhow many files import a file, and how many files it imports
Frameone JSON progress message an ingest publishes, with event, message, stage and phase
Free tierthree ingestions and ten chat messages per user on the operator's key, for users with no key of their own
Fusion (RRF)merging several ranked lists by rank, not by score, with reciprocal rank fusion
Gold iteman eval question with a known answer: the files a correct answer names and a reference answer
Ingestthe one background task that clones and analyses a repository and writes every artefact
Judgethe model that scores eval answers for correctness, faithfulness and relevancy. Checked against a second judge from another model family
Knowledge siloa file with a bus factor of one
Leasethe expiry time a sync writes before it starts, so a killed sync cannot hold a repository forever
LLMConfigthe frozen value that says which provider, key and model pay for a call; passed explicitly to every service and thread
MCPthe Model Context Protocol. Illume's server at /mcp lets AI coding tools search and read a user's repositories
Overlapped stagean ingest stage that runs on a thread at the same time as another, receiving only scalars and opening its own session
Phasewhere a stage is: started, progress, done or failed
Preseta named retrieval configuration chat can run: classic, hybrid, hybrid_rerank, structural, deep_agent, deep_agent_workers, or auto
Reading orderthe files of a repository sorted so a file's dependencies come before it, in tiers, each with a short note on why to read it
Re-ingestdeleting a repository's row and everything under it, recreating it with the same id and number, and ingesting again
Rerankera model that reorders the fused candidates by reading each against the question: Cohere, Jev or the user's own model
repo_numberthe small integer in web URLs such as /repo/3; the API mostly uses the UUID id
Run slota per-user allowance in Redis that bounds how many agent runs a user has at once
Snapshotthe branch and commit an ingest or sync analysed. Every page and answer describes the snapshot
Stageone named unit of ingest work, such as parse or criticality, and the name its timer and frames use
Stale answera chat answer written against an older snapshot than the repository now has
Sweepthe beat-scheduled task that finds repositories due for an update and queues a sync for each
Symbola function, class, method or import that the parser extracted from a file
Syncthe background task that brings an ingested repository up to its remote head, rebuilding only what changed
Watermarka commit SHA recording what some data reflects: ingested_commit_sha for the deterministic data and analysis_commit_sha for the model output

Conventions in these documents#

  • Code links are relative paths to files in this repository, with symbol names in backticks. On the site they open on GitHub.
  • Numbers come with the file that defines them. If a number here and a number in the code disagree, the code is right; please fix the page.
  • Diagrams are Mermaid and render on GitHub and on the site. The docs site explains how to write a page and the checks every page must pass.
  • Limits are stated plainly. If something is not done or not verified, the page says so.

Design trade-offs and limits#

  • Docs live beside the code. The files are read at build time, so a documentation change needs a rebuild of the web client to appear on the site, and pushing to main also redeploys the backend.
  • Checked links, unchecked facts. A test fails on a broken link or anchor, but nothing checks that a sentence still matches the code. The numbers carry their source files so that drift can be found.
  • One snapshot of the eval results. The results page describes one run; a new run needs a new page.