Version: 2.0.0 → 2.1.0 Release Date: October 2025 Migration Time: 5 minutes Breaking Changes: None (100% backward compatible)
Good News: v2.1 is 100% backward compatible! Your v2.0 project works unchanged.
To upgrade:
- Pull latest changes from
v2.1-developmentbranch - Restart Claude Code
- (Optional) Try new profiles: edit
CLAUDE.mdline ~41
That's it! v2.1 features are automatically available.
Customizable AI modes for different development contexts.
4 Core Profiles:
default(200 tokens) - Balanced mode (same as v2.0 behavior)focus(150 tokens) - Deep concentration, minimal outputresearch(300 tokens) - Detailed exploration and learningimplementation(200 tokens) - Rapid feature building
Plus: Custom profile template for creating your own
4,700 lines of behavioral training, accessible on-demand.
5 Core Patterns:
- pre-response-protocol.md - MANDATORY 5-step checklist
- context-utilization.md - Memory bank usage without duplication
- proactive-behavior.md - When/how to suggest things
- anti-patterns.md - What NOT to do (1200 lines of examples)
- tool-selection-rules.md - Which tool for each task
Token Cost: +0 (patterns read on-demand, not injected)
Automatic tracking of behavioral effectiveness.
Features:
- Background metrics collection (zero user action)
/metricscommand for insights- Tool usage tracking
- Profile performance comparison
- Privacy-first (no sensitive data stored)
Token Cost: +0 (background collection only)
| Feature | v2.0 | v2.1 | Change |
|---|---|---|---|
| Token Efficiency | 79.9% reduction | 79.8% reduction | -0.1% (minimal) |
| Conversation Length | 100+ turns | 100+ turns | Same |
| Behavioral Modes | 1 (fixed) | 4+ (customizable) | NEW |
| Patterns Library | Inline | Modular (4,700 lines) | NEW |
| Metrics Tracking | None | Automatic | NEW |
| Profiles | None | 4 + custom | NEW |
Net Token Impact: +200 tokens per session (~0.1% of context window)
cd /path/to/your/project
git fetch origin
git checkout v2.1-development
git pull origin v2.1-development# Backup your current .claude/ folder
cp -r .claude .claude-backup
# Download v2.1
git clone -b v2.1-development https://github.com/kunwar-shah/mini-coder-brain.git mini-coder-brain-v2.1
cd mini-coder-brain-v2.1
# Copy new files to your project
cp -r .claude/patterns /path/to/your/project/.claude/
cp -r .claude/profiles /path/to/your/project/.claude/
cp -r .claude/metrics /path/to/your/project/.claude/
cp .claude/hooks/metrics-collector.sh /path/to/your/project/.claude/hooks/
cp .claude/hooks/metrics-report.sh /path/to/your/project/.claude/hooks/
cp .claude/commands/metrics.md /path/to/your/project/.claude/commands/
# Update modified files
cp .claude/hooks/session-start.sh /path/to/your/project/.claude/hooks/
cp .claude/hooks/session-end.sh /path/to/your/project/.claude/hooks/
cp CLAUDE.md /path/to/your/project/
# Make scripts executable
chmod +x /path/to/your/project/.claude/hooks/*.shClose and reopen Claude Code in your project.
Verify v2.1 is active:
🧠 [MINI-CODERBRAIN: ACTIVE] - YourProject
🎯 Focus: General Development
📂 Context: .claude/memory/ (loaded)
🎭 Profile: default ← NEW LINE
⚡ Ready for developmentIf you see 🎭 Profile: default, v2.1 is working!
Edit CLAUDE.md (around line 41):
# Behavior Profile (v2.1+)
behavior_profile: "focus" # Try: default, focus, research, implementationSave and restart Claude Code to see the new profile in action.
Same as v2.0 behavior - Balanced, context-aware, proactive.
Use when:
- General full-stack development
- Learning new project
- Unsure which profile to use
Output: Standard explanations, 2-5 suggestions per session
Deep concentration mode - Terse, minimal output, low proactivity.
Use when:
- Complex bug fixes
- Time-sensitive delivery
- Need maximum concentration
Output: ~50 word responses, 0-1 suggestions per session Token Savings: 25% lighter than default
Exploration mode - Verbose, detailed explanations, high proactivity.
Use when:
- Understanding new codebase
- Learning patterns
- Creating documentation
Output: ~300 word responses, 5-10 suggestions per session Token Cost: 50% heavier than default (worth it for learning)
Rapid build mode - Action-oriented, step-by-step execution.
Use when:
- Building new features
- Prototyping MVP
- Sprint work
Output: Step-by-step progress, 3-6 suggestions per session
/metricsOutput:
📊 METRICS - Current Session (45 mins, default profile)
Tool Usage:
Read: 12 | Edit: 8 | Bash: 4 | Grep: 5
Session Outcome:
✅ Tasks Completed: 3
⚠️ Errors: 1/metrics --weekly/metrics --profileInsights:
- Which tools you use most
- Which profiles are most effective
- Session duration patterns
- Task completion rates
-
Copy template:
cp .claude/profiles/custom-template.md .claude/profiles/my-workflow.md
-
Edit settings:
## Core Settings output_style: terse # terse, balanced, verbose proactivity: low # low, medium, high explanation_depth: minimal # minimal, standard, detailed -
Activate:
# In CLAUDE.md: behavior_profile: "my-workflow"
See .claude/profiles/custom-template.md for full template.
Problem: Session status doesn't show 🎭 Profile: ...
Solution:
- Check
CLAUDE.mdline ~41 hasbehavior_profile:setting - Restart Claude Code
- If still missing, profile detection may have failed - defaults to "default" profile
Problem: /metrics command shows "No session data"
Solution:
- Metrics collected at session end - work for a bit first
- Check
.claude/metrics/sessions/folder exists - Ensure
jqis installed:apt-get install jq(orbrew install jqon macOS)
Problem: Claude seems to behave differently
Reason: You may have accidentally changed profile
Solution:
- Check
CLAUDE.mdline ~41 - Set to
behavior_profile: "default"for v2.0 behavior - Restart Claude Code
If you encounter issues, easily rollback:
git checkout v2.0-stablecp -r .claude-backup .claudegit clone -b main https://github.com/kunwar-shah/mini-coder-brain.git
# Follow v2.0 installation stepsBefore considering migration complete:
- Pulled v2.1 code or manually updated files
- Restarted Claude Code
- Verified
🎭 Profile: defaultappears in session status - (Optional) Tried different profiles
- (Optional) Ran
/metricscommand - Confirmed project works as expected
- (Optional) Created custom profile for your workflow
You now have:
- ✅ Customizable AI behavior via profiles
- ✅ 4,700 lines of training accessible on-demand
- ✅ Automatic metrics tracking for data-driven insights
- ✅ 100% backward compatibility with v2.0
- ✅ Same token efficiency (79.8% reduction maintained)
Enjoy your enhanced Mini-CoderBrain experience! 🚀
Questions? Open an issue on GitHub