npx claudepluginhub ialameh/sift-coder<issue-description># siftcoder Fix - Bounded Fix with Scope Limits
## Issue to Fix
**$ARGUMENTS**
## Process
### Step 1: Investigation (if not done)
If no investigation exists, first invoke **siftcoder-investigator** to:
- Find root cause
- Identify affected files
- Suggest boundaries
### Step 2: Boundary Definition
Define the scope of this fix:
### Step 3: Create Fix Branch
- Create git branch: `fix/{issue-slug}`
- Save current state for rollback
### Step 4: Bounded Implementation
Invoke **siftcoder-coder** agent with boundaries:
- Work ONLY within modifiable files
- Attempts to modify protected fi.../fixIteratively repairs code errors until zero remain via autonomous loop, applying one atomic fix per iteration with auto-revert on failure. Supports --target, --scope, --category, --iterations flags.
/fixFixes code issues by locating root causes, applying minimal changes, and verifying with tests. Supports 'debug' mode for systematic analysis without modifications and '[code-review]' constraints.
/fixDetects and fixes bugs by analyzing error messages, stack traces, logs, or file paths. Proposes solutions, implements minimal fixes, validates, and suggests tests.
$ARGUMENTS
If no investigation exists, first invoke siftcoder-investigator to:
Define the scope of this fix:
┌─────────────────────────────────────────────────┐
│ MODIFIABLE FILES: │
│ (Only these can be modified) │
│ │
│ [Files will be listed here from investigation] │
│ │
│ PROTECTED FILES: │
│ (Cannot be modified - enforced by hooks) │
│ │
│ Everything else 🔒 │
└─────────────────────────────────────────────────┘
fix/{issue-slug}Invoke siftcoder-coder agent with boundaries:
Invoke siftcoder-qa-reviewer to:
Use these commands to adjust scope:
/siftcoder:scope show - View current boundaries/siftcoder:scope add <file> - Add file to modifiable list/siftcoder:scope remove <file> - Remove file from scope/siftcoder:scope suggest - AI suggests appropriate scopeThe PreToolUse hook will automatically:
After fix, we verify:
Use /siftcoder:blast-radius to re-run this check.
SAFETY FIRST
Ran /investigate first?
→ Great! The boundaries are already set up
→ If not, I'll run it automatically
Want to expand scope?
→ /siftcoder:scope add src/another-file.ts
→ You control what can be modified
Worried about breaking something?
→ Protected files CANNOT be changed
→ /siftcoder:blast-radius verifies nothing broke
Made a mistake?
→ /siftcoder:rollback restores previous state
→ Git checkpoints are created automatically
BEST PRACTICE WORKFLOW:
1. /siftcoder:investigate "issue" ← Explore safely
2. Review the findings
3. /siftcoder:fix "issue" ← Fix with boundaries
4. /siftcoder:blast-radius ← Verify containment
Related commands:
→ /siftcoder:scope show - Current modifiable files
→ /siftcoder:rollback - Undo changes
→ /siftcoder:status - Check fix progress
First, checking for existing investigation or starting one...