Skip to content
Merged
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
80 changes: 80 additions & 0 deletions docs/ai/agent-plugin/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
title: Agent Plugin
sidebar_order: 10
description: "Install the Sentry plugin for your AI coding assistant so it can set up Sentry, find and fix production issues, and configure monitoring, all from a prompt."
keywords:
- agent plugin
- Claude Code
- Cursor
- Codex
- Grok
- AI coding assistant
- vibe coding
- AI setup
---

Whether you're adding Sentry to a new project, debugging a spike in errors, or wiring up alerts, just ask. The plugin gives your assistant the context it needs to do it right.

<Alert>

Supports **Claude Code**, **Cursor**, **Codex**, and **Grok**.

</Alert>

## Install

Run this in your terminal:

```bash
npx @sentry/ai install
```

The installer detects which assistants you have on your machine, lets you pick the ones you want, and wires the plugin into each. Already have it? The same command updates you to the latest version.

Restart your AI tools afterward so they load the plugin.

The plugin configures the [Sentry MCP server](https://mcp.sentry.dev) for you during install, so there's nothing else to connect. A few workflow tasks also need the [GitHub CLI](https://cli.github.com/) (`gh`) for reading and replying to PR comments.

## What You Can Do

**Set up Sentry in any project.** The plugin detects your stack, recommends the right features, and walks through the whole installation, so you're not copy-pasting from docs.

```text {tabTitle:Prompt}
> Add Sentry to my Next.js app
> Set up Sentry in my Rails project
> Add error monitoring to my iOS app
```

**Find and fix production issues.** Query your Sentry environment, triage errors, and fix them in place.

```text {tabTitle:Prompt}
> What are the top errors in the last 24 hours?
> Which issues are affecting the most users?
> Fix the recent Sentry errors
```

**Review code with Sentry context.** Resolve the bugs that Sentry and Seer flag in your pull request comments.

```text {tabTitle:Prompt}
> Review PR #123 and fix the Sentry comments
```

**Configure monitoring.** Set up alerts, instrument your AI and LLM calls, and connect OpenTelemetry pipelines.

```text {tabTitle:Prompt}
> Create a Slack alert for new high-priority issues
> Monitor my OpenAI calls with Sentry
> Set up an OTel Collector with the Sentry exporter
```

## Remove the Plugin

```bash
npx @sentry/ai remove
```

This only offers the assistants that currently have the plugin and removes just the Sentry plugin, leaving each tool's marketplace registered. Restart your AI tools afterward to drop it.

## Contributing

The plugin is built from the [sentry-for-ai](https://github.com/getsentry/sentry-for-ai) repository, the source of truth for every skill and command. To add a skill or fix an existing one, open a pull request there. Skills follow the [Agent Skills specification](https://agentskills.io/specification): each is a directory with a `SKILL.md` file that holds YAML frontmatter and markdown instructions.
161 changes: 0 additions & 161 deletions docs/ai/agent-skills/index.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/ai/dotagents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,5 @@ To gitignore managed skills instead (collaborators must run `install`), set `git
## Learn More

- [dotagents on GitHub](https://github.com/getsentry/dotagents)
- [Agent Skills](/ai/agent-skills/)
- [Agent Plugin](/ai/agent-plugin/)
- [Sentry MCP Server](https://mcp.sentry.dev)
10 changes: 5 additions & 5 deletions docs/ai/index.mdx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: Sentry for AI
sidebar_order: 1
description: "Connect Sentry to your AI coding assistants and workflows. Install agent skills, use the MCP server, or add monitoring to your AI applications."
description: "Connect Sentry to your AI coding assistants and workflows. Install the agent plugin, use the MCP server, or add monitoring to your AI applications."
keywords:
- AI
- artificial intelligence
- LLM
- machine learning
- MCP
- Model Context Protocol
- agent skills
- agent plugin
- AI monitoring
- vibe coding
- Claude
Expand All @@ -24,10 +24,10 @@ keywords:

<LinkCardGrid>
<LinkCard
href="/ai/agent-skills/"
href="/ai/agent-plugin/"
iconSrc="/ai/img/IconBot.svg"
title="Agent Skills"
description="Teach your AI coding assistant how to set up and configure Sentry. Works with Claude Code, Cursor, GitHub Copilot, and more."
title="Agent Plugin"
description="Install the Sentry plugin for your AI coding assistant to set up Sentry, fix production issues, and configure monitoring. Works with Claude Code, Cursor, Codex, and Grok."
className="w-full md:w-[calc(50%-12px)]"
/>
<LinkCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords: ["otlp", "otel", "opentelemetry", "collector", "exporter", "routing"]
The Sentry Exporter has **alpha** stability for traces and logs. Configuration options and behavior may change.
</Alert>

<AgentSkillsCallout skill="sentry-otel-exporter-setup" platformName="OpenTelemetry Collector" />
<AgentSetupCallout skill="sentry-otel-exporter-setup" platformName="OpenTelemetry Collector" />

The Sentry Exporter routes telemetry from multiple services to different Sentry projects through a single collector instance. Without it, you'd need to configure separate DSNs for each project or set up additional routing connectors.

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/android/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords:
- ndk
---

<AgentSkillsCallout skill="sentry-android-sdk" platformName="Android" />
<AgentSetupCallout skill="sentry-android-sdk" platformName="Android" />

On this page, we get you up and running with Sentry's Android SDK, automatically reporting errors and exceptions in your application.

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/dart/common/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ categories:
- server
---

<AgentSkillsCallout skill="sentry-flutter-sdk" platformName="Dart" />
<AgentSetupCallout skill="sentry-flutter-sdk" platformName="Dart" />

On this page, we get you up and running with Sentry's Dart SDK.

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/dart/guides/flutter/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ categories:
- desktop
---

<AgentSkillsCallout skill="sentry-flutter-sdk" platformName="Flutter" />
<AgentSetupCallout skill="sentry-flutter-sdk" platformName="Flutter" />

On this page, we get you up and running with Sentry's Flutter SDK.

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/dotnet/common/index.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<AgentSkillsCallout skill="sentry-dotnet-sdk" platformName=".NET" />
<AgentSetupCallout skill="sentry-dotnet-sdk" platformName=".NET" />

<PlatformContent includePath="getting-started-primer" />

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/dotnet/common/logs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ notSupported:
- dotnet.xamarin
---

<AgentSkillsCallout skill="sentry-dotnet-sdk" platformName=".NET" />
<AgentSetupCallout skill="sentry-dotnet-sdk" platformName=".NET" />

With Sentry Structured Logs, you can send text-based log information from your applications to Sentry. Once in Sentry, these logs can be viewed alongside relevant errors, searched by text-string, or searched using their individual attributes.

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/dotnet/common/metrics/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_section: features
new: true
---

<AgentSkillsCallout skill="sentry-dotnet-sdk" platformName=".NET" />
<AgentSetupCallout skill="sentry-dotnet-sdk" platformName=".NET" />

Sentry metrics help you pinpoint and solve issues that impact user experience and app performance by measuring the data points that are important to you. You can track things like processing time, event size, user signups, and conversion rates, then correlate them back to tracing data in order to get deeper insights and solve issues faster.

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/dotnet/common/tracing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_order: 4
sidebar_section: features
---

<AgentSkillsCallout skill="sentry-dotnet-sdk" platformName=".NET" />
<AgentSetupCallout skill="sentry-dotnet-sdk" platformName=".NET" />

With [tracing](/product/dashboards/sentry-dashboards/), Sentry tracks your software performance, measuring metrics like throughput and latency, and displaying the impact of errors across multiple systems. Sentry captures distributed traces consisting of transactions and spans, which measure individual services and individual operations within those services. Learn more about our model in [Distributed Tracing](/concepts/key-terms/tracing/distributed-tracing/).

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/elixir/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ categories:
- server
---

<AgentSkillsCallout skill="sentry-elixir-sdk" platformName="Elixir" />
<AgentSetupCallout skill="sentry-elixir-sdk" platformName="Elixir" />

On this page, we get you up and running with Sentry's SDK.

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/go/common/index.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<AgentSkillsCallout skill="sentry-go-sdk" platformName="Go" />
<AgentSetupCallout skill="sentry-go-sdk" platformName="Go" />

On this page, we get you up and running with Sentry's SDK. If you are using our previous Go SDK, you can access the <Link rel={`nofollow`} to={`/platforms/go/legacy-sdk/`}>legacy SDK</Link> documentation, until further notice.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ supported:

With <Link to="/ai/monitoring/agents/dashboards/">Sentry AI Agent Monitoring</Link>, you can monitor and debug your AI systems with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. AI Agent Monitoring data will be fully connected to your other Sentry data like logs, errors, and traces.

<AgentSkillsCallout skill="sentry-setup-ai-monitoring" />
<AgentSetupCallout skill="sentry-setup-ai-monitoring" />

## Prerequisites

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/cloudflare/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ categories:
- serverless
---

<AgentSkillsCallout skill="sentry-cloudflare-sdk" platformName="Cloudflare" />
<AgentSetupCallout skill="sentry-cloudflare-sdk" platformName="Cloudflare" />

Use this guide for general instructions on using the Sentry SDK with Cloudflare. If you're using any of the listed frameworks, follow their specific setup instructions:

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/nestjs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ categories:
- server-node
---

<AgentSkillsCallout skill="sentry-nestjs-sdk" platformName="Nest.js" />
<AgentSetupCallout skill="sentry-nestjs-sdk" platformName="Nest.js" />

<PlatformContent includePath="getting-started-prerequisites" />

Expand Down
Loading
Loading