Skip to content

[DOCS-15219] Add Fix with Cursor remediation to Code Security docs - #38509

Open
thkhaha wants to merge 1 commit into
masterfrom
tae-kim/code-security-fix-with-cursor
Open

[DOCS-15219] Add Fix with Cursor remediation to Code Security docs#38509
thkhaha wants to merge 1 commit into
masterfrom
tae-kim/code-security-fix-with-cursor

Conversation

@thkhaha

@thkhaha thkhaha commented Jul 28, 2026

Copy link
Copy Markdown

What does this PR do? What is the motivation?

Fixes DOCS-15219

Documents the Fix with Cursor and Copy fix prompt remediation flow across Code Security:

  • Adds a Fix with Cursor section to the SAST, SCA, and IaC product pages
  • Documents the Fix with Cursor link in pull request comments (SAST and code quality findings)
  • Adds Cursor to the Code Security IDE plugins page
  • Notes deep-link handling on the Datadog Extension for VS Code & Cursor page

Screenshots of the Remediate with AI dialog and the PR-comment link are included.

Merge instructions

Merge readiness:

  • Ready for merge

Additional notes

AI-assisted draft with product screenshots. Opened as a draft pending SME technical validation before docs-team review, per the docs team's AI-content guidance. Documented as GA — to confirm with the Code Security team before merge.

Document the Fix with Cursor and Copy fix prompt remediation flow across
SAST, SCA, and IaC pages, add it to the pull request comments and IDE
plugins pages, and note the deep-link handling on the VS Code & Cursor
extension page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the Images Images are added/removed with this PR label Jul 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Possible site support note detected

The following files have a site-region shortcode at the top of the page that mentions a feature being "not available" or "not supported":

  • content/en/security/code_security/static_analysis/_index.md

Are you trying to document site support for a product? If so, the site-region shortcode is not the recommended approach. See the Documenting site support guide for the preferred method.

@thkhaha
thkhaha marked this pull request as ready for review July 28, 2026 02:30
@thkhaha
thkhaha requested a review from a team as a code owner July 28, 2026 02:30
@thkhaha
thkhaha requested review from melamos and removed request for a team July 28, 2026 02:30
@joepeeples

Copy link
Copy Markdown
Contributor

Opened DOCS-15221 to assign a Docs writer and follow up with editorial review.

@joepeeples joepeeples added the editorial review Waiting on a more in-depth review label Jul 28, 2026

@joepeeples joepeeples left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved with a few small, non-blocking suggestions, thanks!


{{< img src="/ide_plugins/vscode/cursor_fix_in_chat.mp4" alt="Using Fix in Chat to fix an inline code error" style="width:100%" video=true >}}

The extension also handles the {{< ui >}}Fix with Cursor{{< /ui >}} deep link used in Code Security. When you click {{< ui >}}Fix with Cursor{{< /ui >}} in the Datadog UI or in a pull request comment, the extension opens the workspace in Cursor, checks out the relevant repository, branch, and commit, and loads a tailored remediation prompt for the finding.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Breaking up long sentence:

Suggested change
The extension also handles the {{< ui >}}Fix with Cursor{{< /ui >}} deep link used in Code Security. When you click {{< ui >}}Fix with Cursor{{< /ui >}} in the Datadog UI or in a pull request comment, the extension opens the workspace in Cursor, checks out the relevant repository, branch, and commit, and loads a tailored remediation prompt for the finding.
The extension also handles the {{< ui >}}Fix with Cursor{{< /ui >}} deep link used in Code Security. When you click {{< ui >}}Fix with Cursor{{< /ui >}} in the Datadog UI or in a pull request comment, the extension opens the workspace in Cursor. It then checks out the relevant repository, branch, and commit, and loads a tailored remediation prompt for the finding.


To use a different agent, click {{< ui >}}Copy{{< /ui >}} next to {{< ui >}}Copy fix prompt{{< /ui >}} and paste the prompt into the agent of your choice.

You can start this flow from the {{< ui >}}Remediation{{< /ui >}} section of a vulnerability's side panel, or from the {{< ui >}}Repositories{{< /ui >}} table, where each row represents a repository or file that contains the vulnerable library.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
You can start this flow from the {{< ui >}}Remediation{{< /ui >}} section of a vulnerability's side panel, or from the {{< ui >}}Repositories{{< /ui >}} table, where each row represents a repository or file that contains the vulnerable library.
You can start this flow from the {{< ui >}}Remediation{{< /ui >}} section of a vulnerability's side panel, or from the {{< ui >}}Repositories{{< /ui >}} table. Each row in the table represents a repository or file that contains the vulnerable library.

{{< whatsnext desc="See the documentation for information about the following integrations:">}}
{{< nextlink href="ide_plugins/idea/" >}}<u>JetBrains IDEs</u>: IntelliJ IDEA, GoLand, PyCharm, RubyMine, WebStorm, and PhpStorm{{< /nextlink >}}
{{< nextlink href="ide_plugins/vscode/" >}}<u>Visual Studio Code</u>{{< /nextlink >}}
{{< nextlink href="ide_plugins/vscode/?tab=cursor" >}}<u>Cursor</u>{{< /nextlink >}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The IDE Plugins landing page treats the VS Code & Cursor extension as one item, since the same extension is used for both IDEs. But if you think Cursor is a distinct enough use case, OK to leave as separate items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial review Waiting on a more in-depth review Images Images are added/removed with this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants