issue:plan
Batch plan issue resolution using intelligent agent-driven exploration and planning with failure-aware retry logic.
Description
The issue:plan command uses the issue-plan-agent to combine exploration and planning into a single closed-loop workflow. It generates executable solutions with task breakdowns, handles previous failure analysis, and supports batch processing of up to 3 issues per agent.
Key Features
- Explore + Plan: Combined workflow for faster planning
- Failure-aware: Analyzes previous failures to avoid repeats
- Batch processing: Groups semantically similar issues
- Auto-binding: Single solutions automatically bound
- Conflict detection: Identifies cross-issue file conflicts
- GitHub integration: Adds GitHub comment tasks when applicable
Usage
# Plan all pending issues (default)
/issue:plan
# Plan specific issues
/issue:plan GH-123,GH-124,GH-125
# Plan single issue
/issue:plan ISS-20251229-001
# Explicit all-pending
/issue:plan --all-pending
# Custom batch size
/issue:plan --batch-size 5
Arguments
| Argument | Required | Description |
|---|---|---|
issue-ids | No | Comma-separated issue IDs (default: all pending) |
--all-pending | No | Explicit flag for all pending issues |
--batch-size <n> | No | Max issues per batch (default: 3) |
-y, --yes | No | Auto-bind without confirmation |
Examples
Plan All Pending Issues
/issue:plan
# Output:
# Found 5 pending issues
# Processing 5 issues in 2 batch(es)
# [Batch 1/2] Planning GH-123, GH-124, GH-125...
# ✓ GH-123: SOL-GH-123-a7x9 (3 tasks)
# ✓ GH-124: SOL-GH-124-b3m2 (4 tasks)
# ✓ GH-125: SOL-GH-125-c8k1 (2 tasks)
Plan with Failure Retry
/issue:plan ISS-20251229-001
# Agent analyzes previous failure from issue.feedback
# Avoids same approach that failed before
# Creates alternative solution with verification steps