# No git repository, or a folder of repositories

Why LeoPrevent needs a git repository to review a turn, and what to open when your folder holds several.

LeoPrevent reviews changes inside a git repository. Open a repository, or a folder that holds several, in your agent.

## Symptom

On Copilot, Cursor, Devin CLI and Hermes Agent, a turn in a folder that is not a git repository is not reviewed and nothing is printed. On Claude Code and Codex, LeoPrevent still reviews the files the agent wrote with its edit tools, but not changes made through shell commands, and its message ends with:

```output
⚠️ no git repo here, so LeoPrevent sees less of your code (run git init for full coverage)
```

If Claude Code or Codex edited files it could not read, you see:

```output
⚠️ LeoPrevent · the agent edited files this turn, but there was no git snapshot and its edits could not be read, so nothing was reviewed.
```

## Cause

The project has no git repository, so LeoPrevent cannot tell what the turn changed.

## Fix

Create a repository in the project's own folder:

```bash
git init
```

A folder that holds several repositories works as it is: LeoPrevent reviews each repository the agent edits.

> **Warning:** Do not run `git init` in a folder that holds other repositories. The new outer repository records them as references and sees none of the changes inside them.

## Several repositories have changes

When the agent works across several repositories with uncommitted changes and nothing shows which one the turn was about, LeoPrevent reviews none of them and says so:

```output
⚠️ LeoPrevent · nothing was reviewed this turn.
```

The message goes on to name the repositories. Open the one you are working in.

## Check it worked

Finish a turn that changes a file and confirm it appears on the dashboard.

Still stuck? [Contact support](https://help.leotrace.io/contact-support/).

Source: https://help.leotrace.io/no-git-repository/ (updated 2026-11-19)
