# Helper code in a review

Why the review reads the in-repository helper code your change calls, what is sent, and how to turn it off.

A flaw often depends on code outside the changed file: a helper that builds a query, or a function that checks a value. In [supported languages](https://help.leotrace.io/supported-languages/) (Python, JavaScript and TypeScript, Java, Go, C#, C and C++), the plugin also sends the helper code your change calls, so the review can see how a value is used.

## What is sent

- Code in your own repository that the changed files call directly, one step away.
- Only the parts the change can reach.
- Never third party packages installed from a registry, libraries in folders such as `third_party/` or `vendor/`, or secret files.

Each finding lists what was sent under **Files sent as part of this review**.

## Flaws in helper code

A flaw found in helper code is an existing flaw, because the agent did not write it this turn. The agent fixes it when it can do so safely as part of the change, and otherwise says why it left it. See [New and existing flaws](https://help.leotrace.io/new-and-existing-flaws/).

## Turn it off

Set `LEOPREVENT_RESOLVE_IMPORTS=0` in the environment your agent starts from. Reviews then see only the changed files, so a flaw that depends on a helper can be missed. To turn it back on, remove the setting. See [Plugin settings](https://help.leotrace.io/plugin-settings/).

Source: https://help.leotrace.io/helper-code-in-a-review/ (updated 2026-11-18)
