# Explore a codebase

Orient in unfamiliar code, see what a change could affect, and check the rules before you edit.

> Web page: https://enola.tech/docs/explore
> All pages: https://enola.tech/llms.txt

## Generate or refresh the snapshot

Ask your agent to generate an architectural snapshot of the current project, and to refresh it after substantial edits so later questions use the current graph.

Without an agent:

```shell
enola --generate
```

This analyzes the current repository and writes the snapshot to `.enola/`. To look without writing anything, use `enola --explain .`, or `enola --explain --summary .` for a short version in plain words.

## Find your way in unfamiliar code

Ask your agent:

```
Give me a tour of the main modules and how they relate.
Show the routes, storage, and external dependencies.
Where should I start reading to understand authentication?
```

The agent begins with `explore`, then uses `query_facts`, `traverse` or `find_path` when it needs a precise answer. From the shell, [enola flows](https://enola.tech/docs/flows.md) lists the ways into the program and what each one reaches, and [the dashboard](https://enola.tech/docs/dashboard.md) shows the structure in a browser.

## Find what a change could affect

Ask your agent:

```
I need to change AuthService. What depends on it?
Group the impact by distance and tell me which repositories are affected.
Show the path from the login route to token storage.
```

`impact_analysis` walks the dependents of a symbol, through packages and interfaces a text search does not see. `find_path` explains one connection, and `endpoint_impact` starts from a URL. Results are bounded by the edges Enola resolved.

Without an agent:

```shell
enola impact AuthService
enola endpoint 'POST /api/login'
```

## Look at what is already there

Ask your agent:

```
Are there dependency cycles or layer violations?
Where are the call-graph hotspots and complexity outliers?
Which routes have no caller in the repositories currently loaded?
```

`query_insights` returns the findings the [explainers](https://enola.tech/docs/explainers.md) computed, each with its confidence and evidence. An unused route means no loaded client was linked to it, not that nothing calls it at runtime.

## Check the rules before the edit

`governing_intent` finds the declarations that cover a target, and `constraints_for` lists its rules, exemptions and guidance. For a planned set of paths or a patch, `plan_check` (or `enola plan`) says which rules it would break before you change the tree. See [Intent](https://enola.tech/docs/intent.md).
