Skip to content

Adding sentry prevent AI docs #13884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions docs/product/sentry-prevent-ai/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: Sentry Prevent AI
sidebar_order: 130
description: "Get code reviews and new tests for better code and coverage using Sentry Prevent AI."
---

Sentry Prevent AI is a generative AI assistant developed by Sentry. It helps you generate new tests for uncovered code and reviews your code changes, offering suggestions for improvement before merging pull requests.

<Alert>
Sentry Prevent AI is currently in <strong>beta</strong>. Beta features are still a work in progress and may have bugs. Please reach out on GitHub Issues if you have any feedback or concerns.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding a link to the place where you can submit a github issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so - if we're still taking feedback!

</Alert>

{/* ![Sentry Prevent AI Overview](./img/sentry-prevent-ai-overview.png) */}

## Getting Started

To enable the Sentry Prevent AI assistant in your GitHub organization or on specific repositories, you need to install the Sentry Prevent AI GitHub App Integration. This allows the assistant to analyze pull requests and provide insights.

If you're not an admin, copy the Sentry Prevent AI GitHub App Integration link and share it with your organization's admin or owner to install it.

## Sentry Prevent AI Commands

After installing the app, use these commands in your pull request comments:

- `@sentry-prevent-ai-reviewer review` — The assistant will review the PR and make suggestions.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sentry review - The assistant will review the PR and make suggestions

- `@sentry-prevent-ai-reviewer test` — The assistant will generate tests for your PR.
Copy link

@rohan-at-sentry rohan-at-sentry Jun 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sentry generate-test - The assistant will generate tests for your PR


{/* ![Sentry Prevent AI PR Review Example](./img/sentry-prevent-ai-pr-review.png) */}

Once you have added a comment, the assistant will reply, acknowledging the request. For code reviews, you will then see comments added to your PR. For test generation, you will see a comment with a link to the generated tests.

## Frequently Asked Questions

**What data does Sentry Prevent need access to for the AI system to function, and what information is sent to third-party AI providers?**

Sentry Prevent requires access to your pull requests, including PR metadata, repository information, file names, directory structures, and code diffs. The file names, code diffs, and PR descriptions are sent to the AI provider for analysis.

## Feedback & Support

Have feedback? Drop us a line on GitHub Issues or contact Sentry support.

---

For more information, see the [Sentry Prevent documentation](https://docs.sentry.io/).
2 changes: 1 addition & 1 deletion docs/product/sentry-toolbar/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Sentry Toolbar
sidebar_order: 120
sidebar_order: 110
description: "Bring critical Sentry insights and tools directly into your web app for easier troubleshooting with the Sentry Toolbar."
---

Expand Down