You are stuck on a thorny issue. Take your time. Be comprehensive—thoroughness beats speed here.
- Create hypotheses - List all possible causes for what's wrong. Don't jump to conclusions.
- Read all related code - Read ALL code that could be related. Take your time. Don't skim.
- Add strategic logging - Add console.log statements to verify your assumptions about what's actually happening.
- Ultrathink - Think step by step through the problem. Consider edge cases.
Try these in order:
- Revert and retry - Sometimes starting fresh works better than patching
- Different approach - Step back and tackle it from a completely different angle
- Write a minimal reproducer - Create the smallest possible example that exhibits the bug
- Multi-model ensemble - Run
/ensemble-opinionto get Claude, Gemini, and Codex perspectives
- Rule of Three: If you've tried the same approach 3 times and it's still not working, stop and change something fundamental
- Show don't tell: Write a minimal working example, then apply that pattern to the rest
- Starting over beats more patches: The first attempt shapes everything. A clean start with better context often wins.
Write a new high-level plan:
- No code, just sentences
- What you've learned
- What you think is actually wrong
- List files to look at next