Skip to content

Commit ca25d21

Browse files
Update sentry prevent ai documentation page (#14660)
## DESCRIBE YOUR PR Minor verbiage and formatting edits to streamline and help scannability. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): - [ ] Other deadline: - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) --- [Slack Thread](https://sentry.slack.com/archives/C090UM766J2/p1755124848279699?thread_ts=1755124848.279699&cid=C090UM766J2) <a href="https://cursor.com/background-agent?bcId=bc-b4414ee9-3e95-4855-a6e3-50e3d602ed2d"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"> <img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"> </picture> </a> <a href="https://cursor.com/agents?id=bc-b4414ee9-3e95-4855-a6e3-50e3d602ed2d"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"> <img alt="Open in Web" src="https://cursor.com/open-in-web.svg"> </picture> </a> --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent 58468bf commit ca25d21

File tree

1 file changed

+15
-12
lines changed
  • docs/product/ai-in-sentry/sentry-prevent-ai

1 file changed

+15
-12
lines changed
Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
---
22
title: Sentry Prevent AI
33
sidebar_order: 30
4-
description: "Get code reviews and new tests for better code and coverage using Sentry Prevent AI."
4+
description: "AI-assisted code review and test generation to improve quality and test coverage."
55
---
66

7-
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.
7+
Sentry Prevent AI is a generative AI assistant developed by Sentry that reviews your pull requests, suggests improvements, and generates tests for uncovered code before you merge.
88

99
<Alert>
10-
Sentry Prevent AI is currently in <strong>beta</strong>. Beta features are still a work in progress and may have bugs. Please join the [Discord conversation](https://discord.com/channels/621778831602221064/1385700674557444190) to share your feedback.
10+
Sentry Prevent AI is currently in <strong>beta</strong>. Beta features are
11+
still a work in progress and may have bugs. Please join the [Discord
12+
conversation](https://discord.com/channels/621778831602221064/1385700674557444190)
13+
to share your feedback.
1114
</Alert>
1215

1316
## Getting Started
1417

15-
To enable Sentry Prevent AI in your GitHub organization or on specific repositories, you need to install the [Seer by Sentry app](https://github.com/apps/seer-by-sentry). This allows the assistant to analyze pull requests, provide insights, and write tests.
18+
1. Install the [Seer by Sentry app](https://github.com/apps/seer-by-sentry) in your GitHub organization or specific repositories.
19+
2. Enable these required settings in your Sentry [organization settings](https://sentry.io/orgredirect/settings/:orgslug/):
20+
- `Show Generative AI Features`
21+
- `Enable PR Review and Test Generation`
1622

17-
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.
18-
19-
**Note:** Both `Show Generative AI Features` and `Enable PR Review and Test Generation` settings must be enabled in your [organization settings](https:sentry.io/settings/organization/) to run Sentry Prevent AI on your pull requests.
23+
If you're not an admin, share the Sentry Prevent AI GitHub App Integration link with your organization's admin or owner to install.
2024

2125
## Sentry Prevent AI Commands
2226

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

25-
- `@sentry review` - The assistant will review the PR and make suggestions.
29+
- `@sentry review` - The assistant will review the PR and make suggestions.
2630

2731
- `@sentry generate-test` - The assistant will generate tests for your PR.
2832

@@ -34,15 +38,14 @@ Once you have added a comment, the assistant will reply, acknowledging the reque
3438

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

37-
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.
41+
Sentry Prevent AI works by analyzing pull request details, such as metadata, file names, directory structure, and code changes. Only file names, code diffs, and PR descriptions are shared with the AI provider for analysis.
3842

3943
- **Does Sentry Prevent run anywhere outside of GitHub, and does it run in the background?**
4044

41-
Sentry Prevent AI only runs on GitHub, and only runs when triggered by a comment.
45+
Sentry Prevent AI only runs on GitHub, and only runs when triggered by a comment.
4246

4347
You can learn more about AI privacy and security [here](/product/ai-in-sentry/ai-privacy-and-security/).
4448

4549
- **Why aren't `@sentry` commands working?**
4650

47-
Sentry Prevent AI will respond with a message to enable the `Show Generative AI Features` and `Enable PR Review and Test Generation` settings in your [organization settings](https:sentry.io/settings/organization/), if you have not already enabled them. Once enabled, try `@sentry review` or `@sentry generate-test` again to run Prevent AI.
48-
51+
Sentry Prevent AI will respond with a message to enable the `Show Generative AI Features` and `Enable PR Review and Test Generation` settings in your [organization settings](https://sentry.io/orgredirect/settings/:orgslug/), if you have not already enabled them. Once enabled, try `@sentry review` or `@sentry generate-test` again to run Prevent AI.

0 commit comments

Comments
 (0)