Skip to main content

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

The plan 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

  1. Root Cause Analysis: If not already done, runs sentry issue explain first
  2. Validate Causes: Ensures root causes were identified and validates cause selection
  3. Trigger Planning: Sends the selected root cause to Seer AI for solution planning
  4. Poll Progress: Monitors the planning process with status updates
  5. Extract Solution: Retrieves and formats the generated solution plan
The planning process may take several minutes as Seer analyzes code context, generates fixes, and validates the solution.

Requirements

GitHub integration and code mappings required. Seer AI needs access to your source code to generate accurate solution plans.

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

  1. Enable Seer AI: Go to Organization Settings → Processing → AI Tools
  2. Configure GitHub: Organization Settings → Integrations → GitHub
  3. Set up code mappings: Project Settings → Integrations → GitHub → Code Mappings

Multiple Root Causes

If sentry issue explain identifies multiple root causes, you must specify which one to plan for:
Select the cause ID that best matches the issue you want to fix first.

Notes

  • If only one root cause exists, --cause is optional and auto-selected.
  • The --force flag 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