| name | sentry |
| description | Manage Sentry issues using the modern Sentry CLI from https://cli.sentry.dev/. List and inspect issues, view events, use Seer AI explain/plan, browse projects, and make authenticated API requests. Use for error tracking, issue triage, and Sentry diagnostics. |
Sentry CLI
Use the modern sentry CLI from https://cli.sentry.dev/ for Sentry work.
Prefer dedicated sentry commands over raw REST calls. Use sentry api only when no dedicated command exists.
Install / verify
brew install getsentry/tools/sentry
sentry --version
sentry org list --json --fields slug,name
If not authenticated, ask the user to run:
sentry auth login
Do not read, print, grep, or copy auth tokens. Avoid sentry auth status in agent transcripts because it may display partial token details. The CLI manages credentials locally.
Agent rules
- Just run the relevant
sentry command first; the CLI auto-detects org/project from config, DSNs, .env, and source code.
- Do not pre-fetch tokens or inspect secret files.
- Prefer singular noun commands:
sentry issue ..., sentry project ..., sentry org ....
- Use
--json and --fields for machine-readable, low-noise output.
- Use
--limit to keep output small.
- If auto-detection is wrong, retry with explicit
<org>/<project>.
- Ask before mutating state: resolving, unresolving, archiving, merging, deleting, starting trials, or changing project/org settings.
Quick reference
sentry org list --json --fields slug,name
sentry project list <org> --json
sentry issue list --query "is:unresolved" --limit 10
sentry issue view <ISSUE>
sentry issue events <ISSUE> --limit 5
sentry issue explain <ISSUE>
sentry issue plan <ISSUE>
sentry issue resolve <ISSUE>
sentry issue unresolve <ISSUE>
sentry issue archive <ISSUE>
sentry schema <resource>
sentry api <endpoint>
Issue identifiers can usually be full IDs, short IDs like PROJECT-123, suffixes, or aliases returned by sentry issue list.
Common workflows
Investigate recent issues
sentry issue list --query "is:unresolved" --sort date --limit 10 --json \
--fields shortId,title,level,status,count,lastSeen,permalink
Then inspect the relevant issue:
sentry issue view <ISSUE>
sentry issue events <ISSUE> --limit 5
If the user asks for AI assistance or root-cause analysis:
sentry issue explain <ISSUE>
sentry issue plan <ISSUE>
Resolve after a fix
Confirm with the user first, then:
sentry issue resolve <ISSUE>
Query the API
Use sentry api instead of manually building curl commands with tokens:
sentry api organizations/ --json
sentry api issues/<ISSUE_ID>/ --json
sentry api issues/<ISSUE_ID>/ -X PUT -F status=resolved
Use sentry schema to discover endpoints:
sentry schema issues
sentry schema releases
Search query syntax
The --query flag supports Sentry search syntax:
| Query | Description |
|---|
is:unresolved | Unresolved issues |
is:resolved | Resolved issues |
is:ignored | Ignored/archived issues |
level:error | Error level only |
level:warning | Warning level only |
firstSeen:-24h | First seen in last 24 hours |
lastSeen:-7d | Last seen in last 7 days |
assigned:me | Assigned to you |
assigned:none | Unassigned |
Combine filters with spaces, e.g.:
sentry issue list --query "is:unresolved level:error lastSeen:-24h"
Full syntax: https://docs.sentry.io/concepts/search/
Time filtering
Many commands support --period:
sentry issue list --period 7d
sentry issue list --period "2026-04-01..2026-05-01"
sentry issue events <ISSUE> --period 24h
Legacy fallback
This skill used to wrap the older sentry-cli binary.
Files in this skill:
<skill-dir>/scripts/sentry
<skill-dir>/scripts/sentry-cli-wrapper
Use the legacy wrapper only if the modern CLI is unavailable or a workflow specifically needs old sentry-cli behavior:
<skill-dir>/scripts/sentry-cli-wrapper config
<skill-dir>/scripts/sentry-cli-wrapper projects
<skill-dir>/scripts/sentry-cli-wrapper issues list --query "is:unresolved"
The compatibility launcher routes old plural commands (issues, projects, config) to the legacy wrapper and modern commands (issue, project, org, api, etc.) to the new sentry binary.
You can force legacy behavior with:
SENTRY_SKILL_LEGACY=1 <skill-dir>/scripts/sentry issues list
Troubleshooting
Not authenticated
Check safely:
sentry org list --json --fields slug,name
If needed, ask the user to run:
sentry auth login
Wrong org/project detected
Retry with an explicit target:
sentry issue list <org>/<project> --query "is:unresolved"
sentry issue list <org>/ --query "is:unresolved"
Need compact or script-friendly output
sentry issue list --json --fields shortId,title,status,lastSeen --limit 10
Need current Sentry status
curl -s https://status.sentry.io/history.rss
Status page: https://status.sentry.io
Docs