[DOCS-16406] Add AI Guard for coding agents docs #41440
Preview links (active after the build_preview check completes)
New or renamed files
Hey Manuel, thanks for submitting this! I've created DOCS-16406 so we can assign this to one of my teammates for a closer review 🙂
Hey Manuel, thanks for submitting this! I've created DOCS-16406 so we can assign this to one of my teammates for a closer review 🙂
Hello @janine-c, many thanks! my agent told me to create it but didn't had the time yet.
No problem, we're always happy to help out! 😀
Docs shouldn't make product promises. 🙂
- **Supply chain protection**: Checks each package that a coding agent installs with [Supply Chain Firewall][2], and can block malicious packages.
The policies page and the Configure policies section below call this "sensitive data scanning," and since this feature doesn't redact anything, "redaction" could mislead readers. I also dropped the roadmap note.
- **Sensitive data scanning**: Detects secrets, such as API keys and passwords, in coding agent sessions. AI Guard reports secrets, but doesn't block or redact them.
The [Privacy mode](#privacy-mode) section says the default is coding_agent, but this command installs with unredacted, which stores full prompts and tool content in Datadog. Is unredacted the recommended setting for the Preview? If so, readers should know what they're opting into:
1. Run the Trajectory installer in observe mode. This command sets the [privacy mode](#privacy-mode) to `unredacted`, which stores the full prompts and tool content in Datadog:
Is --yes required to switch to enforce? If so, should the command in the [Turn on blocking](#turn-on-blocking) step include it?
The setup page refers to this tab without a link, and a hardcoded app.datadoghq.com link breaks for other Datadog sites. I have an open action item to explore pros and cons of hardcoded product links in docs. I'd prefer to leave them out until that's settled.
1. Start a session in a protected coding agent, then confirm that its evaluations appear on the AI Guard {{< ui >}}Investigate{{< /ui >}} tab.
To view coding agent evaluations, filter on `@ai_guard.coding_agent:*` on the AI Guard {{< ui >}}Investigate{{< /ui >}} tab. To keep every evaluation, [create a retention filter for AI Guard spans][13]. To restrict who can view the evaluations, see [Limit access to AI Guard spans][14].
If you take the two suggestions above, this reference is unused and can go. (Renumbering isn't required.)
Can you move this page up a level, to hugo/content/en/security/ai_guard/coding_agents.md? Coding agents have their own install methods (installer, MDM, and without the installer), so I think they'll wind up organized as a separate setup track rather than another integration method alongside the SDK and HTTP API pages. Moving it now, while the page is private, potentially avoids a URL change later.
Thanks, Manuel! This reads well and fits in nicely with the new and rewritten AI Guard pages. I left a few suggestions and questions inline, including one about moving the page up a level while it's still private.
Your PR description lists items to confirm before review. Are those confirmed now, or still open?
Thanks, Manuel! This reads well and fits in nicely with the new and rewritten AI Guard pages. I left a few suggestions and questions inline, including one about moving the page up a level while it's still private.
> Your PR description lists items to confirm before review. Are those confirmed now, or still open?
Thanks for quick review Melissa!, yes they are solved so I removed the block from the description.
Yeah, you are right, we are so close to having it ready that just wanted to advertise it 😓
Thanks!, I'll update it once redaction is ready.
Yes, for the preview the unredacted form is the recommended shape so they can see the data in the UI
Yes, updated the Turn on blocking step with it
Updated, thanks!
Updated, thanks!
It's gone, thanks!
Yes, ofc, it've moved it one level up.
Thanks for the fixes, @manuel-alvarez-alvarez ! You don't have Ready for merge checked, so I'll let you merge it when you're ready.
melamos
manuel-alvarez-alvarez
<!-- Note: Please remember to review the Datadog Documentation Contribution Guidelines if you have not yet done so. -->
What does this PR do? What is the motivation?
Fixes DOCS-16406
The AI Guard docs cover custom agents and mention that AI Guard for coding agents is in Preview, but they don't explain how to set it up. This PR adds a Coding Agents page to the AI Guard docs. It explains how AI Guard protects coding agents such as Claude Code, Codex, and Cursor through Trajectory hooks.
/security/ai_guard/coding_agents/(how it works, supported coding agents and features, prerequisites, installation, configuration options, verification, policy scope per coding agent, blocking, results, and how to disable). It links to the existing pages for permissions, keys, policy settings, retention filter, and data access instead of repeating them.Merge readiness
AI assistance
Claude Code researched the feature and drafted the page. A human reviews all content.
For Datadog employees:
<name>/<description>convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR./reviewto run an automated check that catches common issues before a Documentation team member reviews your PR.Additional notes
APPSEC-71612