You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
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."
5
5
---
6
6
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.
8
8
9
9
<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
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`
16
22
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.
20
24
21
25
## Sentry Prevent AI Commands
22
26
23
27
After installing the app, use these commands in your pull request comments:
24
28
25
-
-`@sentry review` - The assistant will review the PR and make suggestions.
29
+
-`@sentry review` - The assistant will review the PR and make suggestions.
26
30
27
31
-`@sentry generate-test` - The assistant will generate tests for your PR.
28
32
@@ -34,15 +38,14 @@ Once you have added a comment, the assistant will reply, acknowledging the reque
34
38
35
39
-**What data does Sentry Prevent need access to for the AI system to function, and what information is sent to third-party AI providers?**
36
40
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.
38
42
39
43
-**Does Sentry Prevent run anywhere outside of GitHub, and does it run in the background?**
40
44
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.
42
46
43
47
You can learn more about AI privacy and security [here](/product/ai-in-sentry/ai-privacy-and-security/).
44
48
45
49
-**Why aren't `@sentry` commands working?**
46
50
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