sentry issue plan
Generate a solution plan for a Sentry issue using Seer AI. This command automatically runs root cause analysis if needed, then generates a solution plan with specific implementation steps to fix the issue.Usage
Issue ID Formats
Theplan command accepts the same issue identifier formats as explain and view:
Parameters
string
required
Issue identifier in any supported format.
Flags
number
Root cause ID to create a plan for. Required if multiple root causes were identified by
sentry issue explain.The cause ID corresponds to the numbered root causes from the explain output (0, 1, 2, …).Example:boolean
default:"false"
Force a new plan even if one already exists. Useful for regenerating plans after code changes.Example:
boolean
default:"false"
Output results as JSON including run ID, status, and solution data.Example:
Examples
Basic Usage
Force Regeneration
JSON Output
Sample Output
Human-Readable Format
JSON Format
How It Works
- Root Cause Analysis: If not already done, runs
sentry issue explainfirst - Validate Causes: Ensures root causes were identified and validates cause selection
- Trigger Planning: Sends the selected root cause to Seer AI for solution planning
- Poll Progress: Monitors the planning process with status updates
- Extract Solution: Retrieves and formats the generated solution plan
Requirements
Prerequisites
- Seer AI enabled in organization settings
- GitHub integration configured for your organization
- Code mappings set up for your project
- Available Seer AI budget/quota
Setup Steps
- Enable Seer AI: Go to Organization Settings → Processing → AI Tools
- Configure GitHub: Organization Settings → Integrations → GitHub
- Set up code mappings: Project Settings → Integrations → GitHub → Code Mappings
Multiple Root Causes
Ifsentry issue explain identifies multiple root causes, you must specify which one to plan for:
Notes
- If only one root cause exists,
--causeis optional and auto-selected. - The
--forceflag triggers a fresh plan generation, useful after code changes or to try alternative solutions. - Plans are cached per issue+cause combination to avoid redundant API calls.
- The solution may include a PR link if Seer AI created a pull request with the proposed changes.
- Organization context is automatically resolved from the issue ID.
See Also
- sentry issue explain - Analyze root causes before planning
- sentry issue view - View issue details
- sentry issue list - List issues from projects
- AI Debugging Guide - Complete guide to using Seer AI