# Workflows

Where Enola fits in a change: before the edit, during an agent session, before the commit, on the pull request and over time.

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

## Where Enola fits in a change

The same graph serves every step between opening a codebase and looking back at what happened to it. Each row works without the others.

| When | What you get | Guide |
| --- | --- | --- |
| Before you edit | What depends on the code, and which rules govern it | [Explore a codebase](https://enola.tech/docs/explore.md) |
| While an agent works | Each session checked when the agent finishes | [Agent hooks](https://enola.tech/docs/hooks.md) |
| Before you commit | What your change did to the structure | [Change control](https://enola.tech/docs/change-control.md) |
| On the pull request | The same check in CI, annotated on the diff | [CI setup](https://enola.tech/docs/ci.md) |
| When reviewing | Where to look, and what to test | [Review](https://enola.tech/docs/skill-review.md), [Test plan](https://enola.tech/docs/skill-test-plan.md) |
| Over time | When a dependency appeared or left | [History](https://enola.tech/docs/history.md) |

## Ask what depends on it

With an agent connected over MCP, ask in plain words:

Ask your agent:

```
I need to change AuthService. What depends on it?
Which architecture rules apply to this package?
```

Without one, the same answers come from the shell:

Without an agent:

```shell
enola impact AuthService
enola plan --paths internal/auth
```

[Explore a codebase](https://enola.tech/docs/explore.md) covers orientation, impact and findings. [Intent](https://enola.tech/docs/intent.md) covers the rules.

## Check each agent session

In your repository:

```shell
enola install --hooks
```

Enola records the structure when a session starts and compares it when the agent finishes. If the agent added a dependency cycle or crossed a declared layer the wrong way, it is told before it reports the work as done. [Agent hooks](https://enola.tech/docs/hooks.md) lists what runs, in which agents, and what hooks never do.

## See what your change did

By yourself:

```shell
enola baseline pin
# make the change, or pull
enola check
```

On a branch, skip the pin and compare with where the branch left its target:

On a branch:

```shell
enola check --base main
```

Only what the change introduced is reported. Nothing fails until you name what should with `--fail-on`. [Change control](https://enola.tech/docs/change-control.md) covers policies, scope and exit codes, and [VS Code](https://enola.tech/docs/vscode.md) shows the same verdict in the editor.

## Run the same check in CI

.github/workflows/architecture.yml:

```yaml
- uses: actions/checkout@v7
  with:
    fetch-depth: 0
- uses: enola-labs/enola-action@v2
```

With no inputs the action reports and never fails a job. [CI setup](https://enola.tech/docs/ci.md) has the whole workflow, how to choose what fails, and how to run the check outside GitHub.

## Hand the reviewer and QA a starting point

Ask your agent:

```
Review this branch against main.
What should be tested for this change? Give me a plan I can hand over.
```

Two [skills](https://enola.tech/docs/skills.md) answer these: [review](https://enola.tech/docs/skill-review.md) names at most five places to look, and [test-plan](https://enola.tech/docs/skill-test-plan.md) lists the tests and entry points that reach the change.

## Look back

What the architecture has done:

```shell
enola log
enola blame "internal/engine -> internal/history"
```

Every snapshot is recorded, so you can ask when a dependency or a finding appeared. [History](https://enola.tech/docs/history.md) is experimental. To see which functions keep changing, use [enola touched](https://enola.tech/docs/change-control.md), which reads git and needs no snapshot.

## Work across repositories

Every step above also works on a set of repositories. A backend and its clients become one graph, and a change to a route names the clients that call it. [Multi-repo](https://enola.tech/docs/multi-repo.md) shows how to load them.
