/wfgy-bbcr
Execute BBCR (BigBig Coupling Resolver) for recovering from reasoning failures and logic collapse.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/wfgy-bbcr
Context preview
What this command does when you run it.
Execute BBCR (BigBig Coupling Resolver) for recovering from reasoning failures and logic collapse.
Command definition
wfgy-bbcr.mdtools:
- read
- write
- edit
- grep
- bash
WFGY BBCR - Collapse-Rebirth Correction
Execute BBCR (BigBig Coupling Resolver) for recovering from reasoning failures and logic collapse.
Based on the WFGY project: https://github.com/onestardao/WFGY
Formula
if ||B|| ≥ B_c or f(S) < ε:
collapse()
reset_state(S, dB)
rebirth(S_next, dB)
Where:
- B_c: Collapse threshold (0.85)
- f(S): Progression metric
- ε: Minimum progression threshold
- dB: Residual memory to preserveInstructions
1. **Detect Collapse Conditions**
- Read current state from `.wfgy/context.json`
- Calculate semantic residue magnitude ||B||
- Evaluate progression metric f(S)
- Check conditions:
- Residue exceeds threshold: ||B|| ≥ 0.85
- Progression stalled: f(S) < 0.01
- Logic contradiction detected
- Semantic tension > 0.9
2. **Execute Collapse Phase**
- Save current state to `.wfgy/recovery/collapse_state.json`
- Identify salvageable components (dB):
- Valid reasoning segments
- Confirmed facts
- Stable semantic nodes
- Mark failed paths in `.wfgy/paths/failed.json`
- Clear corrupted context elements
3. **Reset State with Memory**
- Return to last stable checkpoint
- Preserve residual memory dB
- Reset semantic tension to baseline
- Clear logic vector to neutral (→)
- Reinitialize formula modules
4. **Rebirth with Correction**
- Generate new state S_next incorporating:
- Lessons from failure
- Preserved valid components
- Alternative reasoning paths
- Apply semantic bridging to reconnect concepts
- Validate new state stability
- Ensure ||B|| < 0.4 before proceeding
5. **Recovery Verification**
- Test recovered state coherence
- Validate against known boundaries
- Check for recurring failure patterns
- Update `.wfgy/recovery/success_log.json`
- Create recovery report
Output Format
BBCR Collapse-Rebirth Correction
═══════════════════════════════════════
Trigger: [Residue Overflow/Progression Stall/Logic Failure]
Collapse Analysis:
- Semantic Residue: [value]
- Progression Metric: [value]
- Failure Type: [description]
Preserved Components:
✓ [Valid component 1]
✓ [Valid component 2]
✓ [Valid component 3]
Recovery Strategy:
[Description of correction approach]
New State:
- Semantic Tension: [value]
- Logic Vector: [direction]
- Stability Score: [value]
Status: [Recovery Successful/Partial Recovery/Manual Intervention Required]
Next Steps:
[Recommended actions post-recovery]
Automatic Triggers
BBCR automatically activates when:
- `/wfgy:bbmc` detects residue ≥ 0.85
- `/boundary:detect` enters danger zone
- `/reasoning:chain-validate` finds contradictions
- Manual trigger via this command
Recovery Modes
1. **Soft Reset**: Minor correction, preserve most context 2. **Hard Reset**: Return to checkpoint, minimal preservation 3. **Bridge Mode**: Find semantic path around failure 4. **Abort**: Complete reset to initial state
Integration
Post-recovery commands:
- `/semantic:node-build` to record recovery
- `/boundary:detect` to verify safe zone
- `/reasoning:chain-validate` to confirm coherence
Read more
tools: - read - write - edit - grep - bash
WFGY BBCR - Collapse-Rebirth Correction
Execute BBCR (BigBig Coupling Resolver) for recovering from reasoning failures and logic collapse.
Based on the WFGY project: https://github.com/onestardao/WFGY
Formula
if ||B|| ≥ B_c or f(S) < ε:
collapse()
reset_state(S, dB)
rebirth(S_next, dB)
Where:
- B_c: Collapse threshold (0.85)
- f(S): Progression metric
- ε: Minimum progression threshold
- dB: Residual memory to preserveInstructions
1. **Detect Collapse Conditions**
- Read current state from `.wfgy/context.json`
- Calculate semantic residue magnitude ||B||
- Evaluate progression metric f(S)
- Check conditions:
- Residue exceeds threshold: ||B|| ≥ 0.85
- Progression stalled: f(S) < 0.01
- Logic contradiction detected
- Semantic tension > 0.9
2. **Execute Collapse Phase**
- Save current state to `.wfgy/recovery/collapse_state.json`
- Identify salvageable components (dB):
- Valid reasoning segments
- Confirmed facts
- Stable semantic nodes
- Mark failed paths in `.wfgy/paths/failed.json`
- Clear corrupted context elements
3. **Reset State with Memory**
- Return to last stable checkpoint
- Preserve residual memory dB
- Reset semantic tension to baseline
- Clear logic vector to neutral (→)
- Reinitialize formula modules
4. **Rebirth with Correction**
- Generate new state S_next incorporating:
- Lessons from failure
- Preserved valid components
- Alternative reasoning paths
- Apply semantic bridging to reconnect concepts
- Validate new state stability
- Ensure ||B|| < 0.4 before proceeding
5. **Recovery Verification**
- Test recovered state coherence
- Validate against known boundaries
- Check for recurring failure patterns
- Update `.wfgy/recovery/success_log.json`
- Create recovery report
Output Format
BBCR Collapse-Rebirth Correction ═══════════════════════════════════════ Trigger: [Residue Overflow/Progression Stall/Logic Failure] Collapse Analysis: - Semantic Residue: [value] - Progression Metric: [value] - Failure Type: [description] Preserved Components: ✓ [Valid component 1] ✓ [Valid component 2] ✓ [Valid component 3] Recovery Strategy: [Description of correction approach] New State: - Semantic Tension: [value] - Logic Vector: [direction] - Stability Score: [value] Status: [Recovery Successful/Partial Recovery/Manual Intervention Required] Next Steps: [Recommended actions post-recovery]
Automatic Triggers
BBCR automatically activates when:
- `/wfgy:bbmc` detects residue ≥ 0.85
- `/boundary:detect` enters danger zone
- `/reasoning:chain-validate` finds contradictions
- Manual trigger via this command
Recovery Modes
1. **Soft Reset**: Minor correction, preserve most context 2. **Hard Reset**: Return to checkpoint, minimal preservation 3. **Bridge Mode**: Find semantic path around failure 4. **Abort**: Complete reset to initial state
Integration
Post-recovery commands:
- `/semantic:node-build` to record recovery
- `/boundary:detect` to verify safe zone
- `/reasoning:chain-validate` to confirm coherence
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Other commands on claude-command-suite.
- /boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Open command - /boundary-detect
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Open command - /boundary-heatmap
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Open command - /boundary-risk-assess
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Open command - /boundary-safe-bridge
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Open command - /optimize-prompt
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles: common words tokenize more efficiently, unusual words break into more tokens, and conciseness reduces cost.
Open command

