⚠️ IMPORTANT UPDATE (July 10, 2025): Major improvements to command structure. Update withnpm update -g claude-resonance
or usenpx claude-resonance
for the latest version.
Lost context from Auto-Compact? Stuck in endless bug fixing?
Solve it with the systematic Resonance™ workflow.
Opus-Sonnet-and You, 3-person collaboration system.
English | 한국어 | Philosophy | Prompt Engineering Guide | Documentation
Using Claude Code Plan → Act mode? You know these problems:
- 💔 20k Context Window: Auto-Compact erases initial design details, degrading code quality
- 🔄 Test-Fix Loop: Get AI code → Test → Error → Request fix → Repeat...
- 🔍 No Work History: Previous work buried in chat history
- 🤖 AI Guesswork: Dumps code without understanding needs, requiring constant revisions
|
|
For a deeper understanding of the Resonance philosophy and how it fundamentally differs from traditional AI coding, see our Philosophy Documentation.
Traditional AI Coding: AI TDD Workflow:
┌─────────────────┐ ┌─────────────────┐
│ You: "Build X" │ │ You: "Build X" │
└────────┬────────┘ └────────┬────────┘
│ │
▼ ▼
┌─────────────────┐ ┌─────────────────┐
│ AI: Here's code │ │ Opus: Let me │
│ (no tests) │ │ understand... │
└────────┬────────┘ │ - What's X for? │
│ │ - Edge cases? │
▼ │ - Constraints? │
┌─────────────────┐ └────────┬────────┘
│ You: Test it │ │
│ "Got errors..." │ ▼
└────────┬────────┘ ┌─────────────────┐
│ │ You: [answers] │
▼ └────────┬────────┘
┌─────────────────┐ │
│ AI: "Fixed it" │ ▼
└────────┬────────┘ ┌─────────────────┐
│ │ Opus: TDD Plan │
▼ │ ultrathink on │
┌─────────────────┐ └────────┬────────┘
│ You: Test again │ │
│ "Another error" │ ▼
└────────┬────────┘ ┌─────────────────┐
│ │ Sonnet: Tests │
▼ │ First + Code │
(Infinite loop...) └────────┬────────┘
│
▼
┌─────────────────┐
│ Opus: Review │
│ together: │
│ - Code quality? │
│ - Missed cases? │
│ - Better way? │
└────────┬────────┘
│
▼
Verified & Refined!
- Principle-Driven Design: Commands now focus on core principles rather than rigid templates
- Separated Examples: All examples moved to
examples/
folders for cleaner, more flexible guidelines - Enhanced Korean Support: Korean version now uses English system prompts for better performance
- Philosophy Documentation: Added PHILOSOPHY.md explaining the core concepts
Option 1: Direct execution (no installation)
npx claude-resonance
Option 2: Global installation (recommended)
# Install globally
npm install -g claude-resonance
# Run installation
resonance
Choose your language during installation (English/한국어).
npx vs npm -g:
npx
: Downloads and runs latest version each time (slower, always up-to-date)npm -g
: Installs once, runs faster (need to update manually)
System Requirements:
- macOS only (tested on macOS 15.5+)
- Claude Code installed in standard location (
~/.claude/
) - Terminal with npm/npx access
# Clone the repository
git clone https://github.com/keepitmello/Resonance--for-Claude-Code.git
cd Resonance--for-Claude-Code
# Install and activate
./activate-simple.sh
Important: Run all commands inside WSL terminal, not PowerShell or CMD.
# Open WSL terminal (Ubuntu/Debian recommended)
# Clone the repository
git clone https://github.com/keepitmello/Resonance--for-Claude-Code.git
cd Resonance--for-Claude-Code
# Copy command files to Claude Code directory
# For English:
cp commands\(en\)/*.md ~/.claude/commands/
# For Korean:
cp commands\(ko\)/*.md ~/.claude/commands/
# Restart Claude Code
- macOS: Full automatic installation support
- Windows: Manual installation only (must use WSL)
- Linux: Manual installation (coming soon)
- Requires Claude Code to be installed in
~/.claude/commands/
- Installation script automatically backs up existing files (macOS only)
📌 Important: You need to open 2 Claude Code sessions
- Session 1: Opus mode (planning/review)
- Session 2: Sonnet mode (implementation)
After installation, automatically open both sessions:
resonance-start
Or run without installation using npx:
npx -p claude-resonance resonance-start
This command automatically opens Opus and Sonnet sessions in separate terminals!
After installation, you need to open two separate terminals:
-
Open first terminal and run:
claude --model opus
-
Open second terminal and run:
claude --model sonnet
Then start the Resonance workflow with these commands:
Opus session actively communicates with users, asks sufficient questions, analyzes thoroughly, then establishes plans with documentation and creates checkpoints. By designing with Test-Driven Development approach, it induces primarily validated code unlike conventional AI coding.
opus> /cycle-plan "implement payment API"
# Phase 1: Understand requirements through dialogue
# Enter "ultrathink" to proceed to Phase 2
# Phase 2: Deep analysis and TDD planning
# Saves to cycles/YYYY-MM-DD/HHMM-topic-plan.md
Sonnet session, based on Opus's design, develops like a junior developer - filling checkpoints with 'judgments' about why implemented that way, what parts were difficult or ambiguous. Even when Auto-Compact occurs, context is not lost thanks to separate checkpoints.
sonnet> /cycle-start
# Reads plan.md and starts TDD implementation
# Creates/updates checkpoint.json
# Records detailed progress every 20-30 minutes
Document what you did, why you made certain decisions, and what you learned as you wrap up implementation work. This log becomes crucial material for the next Opus planning session.
sonnet> /cycle-log
# Document completed work
# Record technical decisions and reasoning
# Share failures and successes
# Saves to cycles/YYYY-MM-DD/HHMM-topic-log.md
Once work is completed, return to Opus session to review whether it proceeded well according to the initial design and check if any additional work is needed.
opus> /cycle-check
# Reviews Sonnet's implementation
# Critical code quality analysis
# Provides improvement feedback
Manually wrap up your work session with a comprehensive log and commit all changes together. This command is useful when you want to conclude your work without going through the full cycle workflow.
# In any session (Opus or Sonnet)
> /wrap
# Creates comprehensive work session log
# Documents all accomplishments and changes
# Commits everything in a single clean commit
# Saves to cycles/YYYY-MM-DD/HHMM-topic-wrap.md
Use this when:
- Finishing a work session outside of the cycle workflow
- Need to commit all work with proper documentation
- Want to create a session summary for future reference
Example 1: React Context Performance Issue Resolution
You: /cycle-plan "Add order book data to real-time trading system"
Opus: "You're managing everything with one MarketDataContext?
Order book updates dozens of times per second - every component will re-render."
You: "So what should I do?"
Opus: "How about splitting contexts?
- MarketDataContext: Prices (less frequent)
- OrderBookContext: Order book (very frequent)
- TradingContext: Risk management (per-user)
Network delays might deliver stale data out of order."
[ultrathink...]
Opus: "OrderBookManager class to validate lastUpdateId sequence,
React.memo for render optimization."
Real difference: Simple feature addition → Architecture-level performance optimization
# 4-Hour Work Session
✅ 6 new files, 2 modified
✅ 100% test coverage (16 test cases)
✅ Commit: 10 files changed, 3,148 insertions
✅ Estimated 5 hours → Completed in 4 hours
All progress preserved in cycles/ directory with timestamps
Example 2: 🔥 Production Bug: 4-Hour Complete Recovery
Situation: Deposit bug affecting 35 transactions, 19 users impacted
# 2:49 PM - User report: "Fees were deducted from my deposit"
opus> /cycle-plan "Emergency recovery"
Opus: "Checking DB with MCP... Found 35 cases. Pattern shows hourly batch job bug.
Recovery strategy:
1. admin_refund for compensation (preserve originals)
2. Real-time validation during recovery
3. Build prevention system"
sonnet> /cycle-start
✅ Created 35 admin_refund records
✅ Updated 19 accounts
✅ Completed 2,935 KRW refunds
⚠️ Additional report: "Got double refund..."
🚀 Immediate fix: Found duplicate application bug, added correction
opus> /cycle-check
Opus: "Implement prevention immediately"
✅ DB trigger blocks deposit+fee combinations
✅ Suspicious pattern real-time monitoring
✅ Admin action logging system
Result: 100% recovery in 4 hours + prevention system built
Difference: Band-aid ❌ → Analysis→Recovery→Root cause solution ✅
cycles/2025-07-07/
├── 1449-deposit-bug-plan.md # Opus plan
├── 1449-deposit-bug-checkpoint.json # Real-time progress
├── 1449-deposit-bug-log.md # Sonnet implementation
└── 1449-recovery-execution.sql # Actual recovery script
Key: When Auto-Compact erases context, checkpoint.json lets you resume exactly:
- Completed and ongoing tasks
- Decisions made and reasoning
- Blockers and attempted solutions
- Next steps and blockers
Result: Work continuity guaranteed without context loss
Before: Context loss → Test-fix infinite loop → Frustration
After 1 Week: Context preserved → TDD completion in one go → Flow state
# Quick start (no installation)
npx claude-resonance
# Or install globally for frequent use
npm install -g claude-resonance
resonance
~/.claude/
In each Claude Code session:
# Session 1 (In Opus session)
/cycle-plan
# Session 2 (In Sonnet session)
/cycle-start
/cycle-log
# Session 1 (Back to Opus session)
/cycle-check
Opus asks questions, understands deeply, and creates plans. Sonnet implements with tests. Rich work logs maintain context.