boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Switch between different semantic trees to manage multiple contexts, projects, or reasoning threads.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/semantic-tree-switchContext preview
What this command does when you run it.
Switch between different semantic trees to manage multiple contexts, projects, or reasoning threads.
tools: - read - write - edit - glob arguments: $TREE_NAME
Switch between different semantic trees to manage multiple contexts, projects, or reasoning threads.
Based on the WFGY project: https://github.com/onestardao/WFGY
1. **List Available Trees**
2. **Validate Target Tree**
3. **Save Current Context**
4. **Switch Active Tree**
{
"active": "$TREE_NAME",
"previous": "[previous_tree]",
"switched_at": "ISO_8601",
"switch_count": N
}5. **Initialize New Context**
6. **Display Tree Summary**
Switched to Semantic Tree: $TREE_NAME ═══════════════════════════════════════ Previous Tree: [previous_name] Current Tree: $TREE_NAME Tree Information: - Created: [timestamp] - Last Modified: [timestamp] - Total Nodes: [count] - Checkpoints: [count] Tree Statistics: - Average ΔS: [value] - Primary Module: [BBMC/BBPF/BBCR/BBAM] - Memory Usage: [size] - Compression: [status] Recent Activity (Last 5 Nodes): ──────────────────────────────────────── 1. [timestamp] "Topic" (ΔS: 0.45) - BBMC 2. [timestamp] "Topic" (ΔS: 0.62) - BBPF 3. [timestamp] "Topic" (ΔS: 0.38) - BBAM 4. [timestamp] "Topic" (ΔS: 0.71) - BBPF 5. [timestamp] "Topic" (ΔS: 0.29) - BBMC Current Position: Node: [latest_node_id] Topic: "[latest_topic]" Context: [brief_context] Available Actions: • Continue building: /semantic:node-build • View full tree: /semantic:tree-view • Create checkpoint: /memory:checkpoint • Return to previous: /semantic:tree-switch "[previous]"
When listing all trees:
Available Semantic Trees ═══════════════════════════════════════ ◉ Active Tree (Current) Created: 2024-01-15 | Nodes: 127 | Avg ΔS: 0.52 ○ Project Alpha Created: 2024-01-10 | Nodes: 89 | Avg ΔS: 0.48 ○ Debug Sessions Created: 2024-01-08 | Nodes: 234 | Avg ΔS: 0.61 ○ Research Notes Created: 2024-01-05 | Nodes: 56 | Avg ΔS: 0.43 ○ Creative Brainstorm Created: 2024-01-03 | Nodes: 178 | Avg ΔS: 0.67 Commands: Switch: /semantic:tree-switch "Tree Name" Create: /semantic:tree-init "New Tree" Delete: /semantic:tree-delete "Tree Name"
Common switching patterns:
# List all trees /semantic:tree-switch # Switch to specific tree /semantic:tree-switch "Project Alpha" # Switch to previous tree /semantic:tree-switch --previous # Switch to most recent tree /semantic:tree-switch --recent # Switch to tree with pattern /semantic:tree-switch "Debug*"
# Development trees /semantic:tree-init "Feature-Authentication" /semantic:tree-init "Bugfix-Memory-Leak" # Research trees /semantic:tree-init "Research-Quantum" /semantic:tree-init "Research-ML-Models" # Creative trees /semantic:tree-init "Story-WorldBuilding" /semantic:tree-init "Design-UI-Concepts"
Best practices:
After switching:
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles:…