Docs

Using the map

The map draws the repository in isometric 3D or as a flat 2D plan: applications, folders, files and symbols nested inside each other, each sized by its code.

The rail and the column

The rail on the left picks what the column beside it shows, one view at a time: Selection (the inspector), Code, Impact, Flows, Dependencies, People, PRs, Explain and Agents (and Features, once the code is described), with Settings and Help at its foot. Selecting something on the map never moves the column: Code keeps following the selection, Dependencies shows its dependencies, and a list stays where you were. Clicking the item of the view shown hides the column; drag its edge to resize it, one width for every view. The map draws what the view lights, Impact's blast radius or Dependencies' rails, even while the column is hidden. Color by sits at the map's top left.

Zoom levels

A container opens when it is large enough on screen, and its children load on demand. The status bar names the level you are at: Applications → Directories & modules → Files → Symbols → Source. Labels change with the level: an application shows its framework, a folder its files and lines, a file its language and symbols, a symbol its signature. At the deepest level a selected file or symbol draws its source on its own face.

Routes and endpoints are drawn in a Routes & endpoints district inside their application, commands and scheduled tasks in a Console district, and tables in a Database district.

The layout comes from the server and is deterministic. Selecting, searching or filtering never moves anything, and new files take new slots instead of pushing the others around.

Folders open once they are about 150 pixels across on screen. Settings → Open folders from moves that point between 60 and 360 pixels: lower opens more of the map from further out, higher keeps it calmer.

3D or 2D

The 3D button beside the map switches between the isometric view and a 2D plan, the same map seen from straight above. The place in the middle stays in the middle at about the same size, and the choice is remembered. In the plan every block reads at a glance and names never overlap: a name that does not fit beside its block moves further out with a leader line, or into a column at the side. Agents, flows, history, comparisons and explanation tours work in both.

BookStack's map as a 2D plan seen from above: folders as nested rectangles with their names, tests hatched, and three agent characters on the files they work on.
The 2D plan of BookStack, with three agents at work on it.

Kinds of file

Blocks are plain by default, so color stays free for the lenses. The kinds that matter when you read a flow carry a small mark before their name once the block is about 60 pixels across: a page, an endpoint, data (models and tables), a job or scheduled task, and a test. Tests, and closed folders that are mostly tests, are hatched so they recede. Blocks stand a little inside their places, so streets run between files and wider avenues between folders.

Building shapes

Settings → Building shapes gives each kind of block its own building in 3D, the same in every language and framework: a gate for routes, a rail turntable for a controller, a workshop for a service, storage drums for a table, a browser billboard for a page. Far away a block stays plain; once it is a few dozen pixels across it shows its kind as a mark on its roof, and closer still it grows into its shape. A closed folder shows the kinds of block it holds most on its roof, each with its count, and its inspector lists every kind it holds.

A file's kind comes from the index where it can: the endpoints, page routes, commands, scheduled tasks or tables it declares, and the controllers, models, components and hooks it contains. Otherwise it comes from folder and name conventions shared by most frameworks (Services/, helpers, Jobs/, layouts/…). The inspector names the kind and says which rule gave it. Files no rule claims stay plain blocks.

ShapeKindFor example
LighthouseEntry pointpublic/index.php, artisan, main.tsx
GateRoutesroutes/web.php, urls.py, route.ts
CheckpointMiddlewareapp/Http/Middleware/, middleware.ts
Rail turntableControllerapp/Http/Controllers/, views.py
WorkshopServiceapp/Services/, *Service.ts
Tool shedHelperhelpers.php, utils/
Terminal kioskCommandapp/Console/Commands/, management/commands/
Clock towerScheduled taskroutes/console.php
Conveyor beltJob or listenerapp/Jobs/, app/Listeners/
Stacked recordsModelapp/Models/, models.py
Storage drumsDatabase tabledatabase/migrations/
Browser billboardPageapp/**/page.tsx, resources/views/
Open frameLayoutlayout.tsx, layouts/
Building blockComponentcomponents/, *.vue, *.svelte
CraneHook or storeuse*.ts, composables/, stores/
Painter's paletteStyle sheet*.css, *.scss
Control deskConfigurationconfig/, *.config.ts
Lab bench with test tubesTesttests/, *.test.ts

Lenses keep working: coverage, data families and people color the shapes, a comparison tints what changed, and a flow on the map lights the stops it reaches. In the 2D plan blocks are always flat. Settings → Streets between blocks packs the blocks edge to edge again.

The inspector and evidence

A file-level view of BookStack's views with one folder of Blade views selected and the kinds of block it holds, its flows, data and people in the inspector.
Selecting a folder: the kinds of block it holds, the flows that reach it, its data, and who changed it and when.

Select anything to see, in the Selection view, its type, canonical path, source range and metrics, with its incoming and outgoing relationships listed with filters. Every relationship has Why?: the analyzer and version, the file and line, and an explanation. It opens the source with the evidence lines highlighted.

Dependencies

The Dependencies view draws what the selection uses and what uses it as a diagram on the map, and follows the selection while it is shown; the other views leave the map plain. Each dependency is a rail along the floors to the file at its other end (or the endpoint, route or table, when no file holds it), with words on the arrow saying what it does: calls ×3 · imports, requests GET /api/users, imported by. The folders holding those files open whatever the zoom, so the arrows end on the files themselves, and the map moves to show the whole diagram when part of it is out of view. What the selection reaches stays lit and the rest recedes.

The view lists them one per file, split into Uses and Used by, with filters by direction and kind that choose what the map draws. Pointing at a row brings its rail to the front, and Go selects it, with its own dependencies drawn; Why? lists the relationships behind it, each with its evidence. A folder lists everything crossing its boundary; the map draws the 80 most connected.

A symbol also lists its effects (database reads and writes, responses with their HTTP status, network, storage, navigation, queue, mail, events) and its call sites: how many were linked, how many belong to the framework or packages, and which stayed unresolved and why.

What the analyzers cannot prove is never guessed. It stays a finding, listed per entity and per area. The ⚠ button beside the map marks the blocks where a link could not be proven (an unresolved request, an unmatched route, a missing import); it is off by default.

Flows

Flows in the rail is one list of every flow the index can follow, filtered by where it starts:

  • Pages: a page of the interface, or an endpoint that serves one. Its flow is what it renders, the requests it makes and what they reach, down to the tables.
  • Requests: one per endpoint, plus requests that no endpoint answers, with their completeness: complete, partial, no caller or unmatched.
  • Console: commands, with what runs them, and scheduled tasks with their cadence.

Choose a flow and it plays on the map: what it touches stays lit, the rest dims, and a pulse runs along its links branch by branch, in waves. Lanes and Outline open the same flow in the middle of the screen, as a diagram left to right or as an outline of its steps, with conditions and evidence on every step; the map stays in a corner as an overview. The inspector of any file or folder lists the flows that touch it.

Search offers the same for any result: its flow on the map or in lanes, what happens from it, and its impact.

Coverage

Coverage colors every file by what the flows say about it: entry point, in flows, supports flows, possibly reached, not reached (candidate dead code), tests and tooling, configuration, and files in languages whose calls are not analyzed yet. A file’s inspector says why it is where it is. Select a category in the legend to list its files, ready to copy. A lit feature, person or data family lists its files the same way.

Blast radius and steps

Impact on any entity or area walks what depends on it, hop by hop, over calls, renders, references, handlers, routes, requests and inheritance. It opens in the column, listed by hops or grouped by application, feature or folder, each entity with the chain that reaches it; while it is shown, the map tints what it reaches by distance. Impact in the rail also shows what your uncommitted changes affect. The result is a lower bound and says so: it tells you which unresolved calls might reach further.

What happens from here opens the Steps of a page, endpoint, component or function: the triggers it binds, the actions with effects, the endpoints it reaches, the handlers they run, and every way a handler answers, with the conditions read from the source.

Data families

Without any language model, tables group into data families: tables joined by foreign keys, tables named after another, and tables that share a prefix. A table that many others reference, such as users, is a hub of its own. Files take the family of the tables they map, migrate, read or write.

  • ▦ in the map controls colors files, endpoints, commands and tables by family.
  • The inspector of a folder shows Data in this folder: its files per family. Select one to light its files on the map.

Descriptions and the Features panel

Optionally, a language model can describe files, folders, flows, domains and commits. Descriptions are written in ASD-STE100 Simplified Technical English, scored against its rules, and kept apart from the indexed facts. They add a Features panel: what the product does, feature by feature. Select a feature to light its files on the map and see the flows that start in it.

# an OpenAI key in the Codiluce workspace or the state directory, never read from your repository
echo "OPENAI_API_KEY=…" >> .codiluce/.env
# estimate the cost first, with one real request per task
npx codiluce annotate --estimate --pilot
# then run it, with a spending cap in US dollars
npx codiluce annotate --max-cost 10

annotate always estimates first and does not run when the estimate exceeds --max-cost. It sends paths, names and short excerpts of the source (about 3 KB per file) to the OpenAI API. Nothing else ever leaves your machine. Only what changed is described again on later runs.

Themes and keyboard

Pick Codiluce Dusk (the default) or Dawn in Settings, at the foot of the rail; More themes adds Midnight, Paper, Sorbet and others. Useful keys:/ search, F fit, Alt + ← / → back and forward, double-click to zoom into an area. Links carry the view (#id=…), so you can share an exact place. History has its own keys: see History.