Docs / Start here5 min readEdit on GitHub

Your first ingest#

This page follows one repository from the moment you add it to the moment every page works. It shows what you see in the browser, what the backend does at each point, and where to look when something stalls. It assumes the stack from local setup is running.

Terms used on this page#

  • Ingest: the one background task that clones a repository, analyses it and writes everything the pages show. Its code starts at ingest_repository in server/app/tasks/ingest.py.
  • Snapshot: the branch and commit an ingest analysed, stored as ingested_branch and ingested_commit_sha. Every page and every citation describes that commit, not the live repository.
  • Repository number: a small integer (repo_number) the web routes use, as in /repo/3. The API also uses a UUID id.
  • Frame: one progress message the worker publishes and the browser receives over a WebSocket.

1. Add a repository#

Sign in and open the dashboard. Add repository opens a dialog with two ways in:

  • Search your GitHub repositories, which needs a linked GitHub account and lists public and private repositories the token can see.
  • Paste a URL of the form https://github.com/owner/repository. Any other host is refused, because the clone step puts the user's GitHub token in the clone URL. Public repositories need no token.

You can pick a branch and a commit on a small branch timeline before you confirm. The default is the head of the default branch.

2. What the backend does#

sequenceDiagram
    participant B as Browser
    participant A as API
    participant P as Postgres
    participant Q as Redis
    participant W as Worker
    B->>A: POST /api/v1/repository
    A->>P: claim a free ingestion if you have no key, insert the row as pending
    A->>Q: queue ingest_repository
    A-->>B: 202 with the id and repository number
    B->>A: open the ingest WebSocket
    Q->>W: deliver the task
    W->>P: clone, parse, analyse, generate, embed
    W->>Q: publish a frame per stage
    Q-->>A: frames
    A-->>B: frames relayed as they arrive
    W->>P: status ready

If you have no AI key of your own, the ingest spends one of your three free ingestions (FREE_INGESTIONS = 3 in app/services/entitlements.py), and its model calls use the operator's free-tier key. With no free ingestions left and no key, the API answers 402.

3. Watch the progress board#

The repository page shows a live board of every stage while the status is not ready. Each node starts pending, becomes active when its started frame arrives and done when its done frame arrives. The board's seven columns are PIPELINE_COLUMNS in client/src/utils/ingestFlow.ts:

ColumnNodes on the boardStage idsNeeds a model
FetchFetch Repocloneno
ReadParse files, Mine Git History, Gather PRsparse, git_history, pr_fetchno
ConnectMap Connections, Rank Impact, Identify Stackresolve_dependencies, compute_fan_metrics, detect_stackno
ScoreScore Riskcriticalityno
WriteCreate Glossary, Create Reading Orderglossary, reading_orderyes, generation
IndexGenerate Embeddings, Analyze Architecturegenerate_embeddings, briefembeddings and generation
DoneReadyreadyno

The cochange stage also publishes frames, but the board has no node for it.

The pipeline stages describe each one, and every frame, in order lists what the board receives. If you reload mid-ingest, the board rebuilds what it can from the row's status and then follows the live frames.

How long it takes depends on the repository. Cloning and parsing are quick for small repositories. Generation and embeddings are usually the longest part, because they wait on model providers. A large repository can take many minutes.

4. Explore the result#

When the status reaches ready, every tab works:

PageRouteWhat it showsBuilt from
Overview/repo/<n>the architecture brief, languages, where to start reading, risky files, recent activity and who to askbrief, reading order, criticality, ownership
Explorer/repo/<n>/explorerthe file tree with reading-order notes and risk markersfile graph and guide
Glossary/repo/<n>/glossarythe project's own terms, searchableglossary
Graph/repo/<n>/graphthe interactive 3D dependency graph, at file or symbol level, with a reading-order tourdependency edges, criticality
Chat/repo/<n>/chatquestions answered from the code, with citations to the ingested committhe vector index and the retrieval presets
Settings/repo/<n>/settingsauto-update, a manual sync, regenerate, the .illume export and deletethe repository row

Good first questions for chat: "where does a request get authenticated?", "what would I change to add a new X?", and "who knows the most about Y?". Try the Classic, Hybrid and Structural presets on the same question to see how retrieval changes the answer. Chat explains the presets.

5. Keep it current#

Turn on Auto-update in the repository's settings. Every interval (6 hours by default; 1, 3, 6, 12 or 24 hours), the beat process queues a check. The worker compares the remote head with the snapshot and, if it moved, rebuilds only what changed. The repository stays ready throughout, so the pages keep working during an update. Auto-update explains how.

When something goes wrong#

What you seeLook at
the board never leaves its first stagethe worker terminal; the worker may not be running
the board stops on one stagethe worker log for an exception, then grep stage_timer for the last stage that finished
the page shows failedthe worker log. The task retries three times, 10 seconds apart, before it stays failed. Re-ingest from the page once you have fixed the cause
the guides say generation failedthe generation key; the brief falls back to a placeholder instead of failing the ingest
chat says no relevant code was foundthe embeddings stage; check OPENAI_API_KEY

The runbook covers the same symptoms for production.

Design trade-offs and limits#

  • One task, all or nothing. A failure at any stage fails the whole ingest, and the retry starts again from the clone.
  • Snapshots, not live code. Pages, chat and citations describe the ingested commit until the next sync or re-ingest.
  • Re-ingest deletes first. Re-ingesting deletes the row and every child row, then recreates it with the same id and number, so the pages are empty until the new ingest finishes. A sync, by contrast, keeps the old data visible.
  • No progress for syncs. A background update publishes no frames, so the board appears only for the first ingest and for a re-ingest.