> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sourcery does not retain your code

**In short**

> Sourcery does not retain your code after a review, and none of your code is used to train any
>     model.

## Sourcery reads your diff and related context

To review a pull request, Sourcery reads the diff of the changed code. For some changes it needs broader context and supplements the diff with related code from your repository, such as the other places a function you changed is used.

To produce the review, Sourcery sends the relevant sections of the diff and that context to OpenAI and Anthropic, the [LLM providers it works with](/trust/llm-providers/).

## Sourcery retains none of your code

Sourcery does not retain any of your code. The provider retention windows are:

- Anthropic retains nothing. Sourcery has a zero-day retention agreement with Anthropic, so they hold none of your code or data at any time.
- OpenAI retains data for no more than 30 days.

## Your code never trains a model

None of your code is used by OpenAI, Anthropic, or Sourcery to train any model.

## Sourcery is SOC 2 Type 2 certified

Sourcery is SOC 2 Type 2 certified. To request the SOC 2 report, visit [the Sourcery trust center](https://trust.mycroft.io/sourcery). For the full list of [compliance and certifications](/trust/compliance/), see the compliance page.

For the full data processing terms, see [the data processing page](https://www.sourcery.ai/data-processing).

## You can request a stricter setup

If you need a zero-retention setup across all providers, want to use your own model deployments, or need a self-hosted version of Sourcery, [contact us](mailto:sales@sourcery.ai).
