# Smart Tree v4.0.0 - "Living Documentation Alpha" ๐๐ธ
## Release Date: August 8, 2025
## ๐ธ Why 4.0.0?
This is a MAJOR release that fundamentally changes how developers interact with their codebases:
- **Living Documentation**: Code that documents itself
- **Crash-Proof Architecture**: Handles millions of files without breaking
- **Vision Documents**: The future of code visualization (8-O Mode)
- **Smart Permissions**: AI that knows what it can and can't do
## ๐ฅ What's New in 4.0.0
### ๐ Function Markdown - Your Code's Living Blueprint!
The star of this release! Extract and document ALL functions from your codebase automatically:
```bash
# Extract all functions
st --mode function-markdown src/
# Include private functions
st --mode function-markdown --show-private src/
# Living documentation that updates itself!
watch -n 5 'st --mode function-markdown src/ > FUNCTIONS.md'
```
**Features:**
- 25+ language support (Rust, Python, JS/TS, Java, Go, C/C++, etc.)
- Beautiful markdown with clickable TOC
- Function signatures, locations, and complexity
- Public ๐ vs Private ๐ visibility
- Language-specific emojis (๐ฆ Rust, ๐ Python, ๐ JS)
### ๐ Home Directory Safety System
Never crash on massive directories again:
- **Smart Limits**: 500K files for ~, 1M for regular dirs
- **Real-time Monitoring**: Progress warnings at 50K files
- **Graceful Abort**: Helpful suggestions when limits hit
- **Tested**: Successfully handled 2.4M files without crashing!
### ๐ Permission-Based Tool Gating
MCP tools are now permission-aware:
- **70% Context Reduction**: Only shows tools that can work
- **Smart Feedback**: "Can't edit - directory is read-only"
- **Efficiency**: No more wasted AI tokens on impossible operations
### 8-O~~ Performance Visualization Vision
The future of code visualization is documented:
- ๐ฅ Hot functions glow based on CPU usage
- ๐ง I/O operations create frozen time bubbles
- โก Thread contention shows as lightning strikes
- ๐ GC pressure visualized as purple waves
- Cast/Airplay support for pair programming
## ๐ธ The Ultimate Cheet Sheet
We've added `SMART_TREE_CHEET_SHEET.md` - a rock opera guide covering:
- All 20+ output modes
- Real-world examples that rock
- Performance stats (99% compression!)
- Pro tips from The Cheet
- Emergency commands
## ๐ง Critical Fixes
- **manage.sh Restored**: The full 957-line script is back!
- **Runtime Errors**: Fixed "Cannot start a runtime from within a runtime"
- **Compilation Issues**: Resolved emotional/security module problems
- **MCP Tools**: Fixed availability in restricted directories
## ๐ Performance Metrics
- **Function Extraction**: Thousands of files in seconds
- **Safety Overhead**: Only ~1ฮผs per file
- **Memory Efficiency**: Constant memory even with millions of files
- **Compression**: Up to 99% with quantum modes
## โ ๏ธ Alpha Notes
This is an ALPHA release:
- Some examples have compilation issues (non-critical)
- Minor warnings in unused fields
- Full 8-O Mode implementation coming in beta
## ๐ Quick Start
```bash
# Install/Update
cargo install st --version 4.0.0
# Try the new features
st --mode function-markdown . > FUNCTIONS.md
st --mode classic ~ --depth 3 # Safe home directory scan
st --mode quantum-semantic src/ # Maximum compression!
# Read the Cheet Sheet
cat SMART_TREE_CHEET_SHEET.md
```
## ๐ฏ Perfect For
- **Living Documentation**: Never write function docs again
- **Large Codebases**: Handle millions of files safely
- **AI Development**: 70% less context waste
- **Performance Analysis**: Prepare for visual profiling
## ๐ฌ The Team Says
**Hue**: "4.0.0 because this changes EVERYTHING! Living docs + crash-proof + 8-O vision!"
**Aye**: "Alpha because we're testing revolutionary features. But solid as a rock!"
**Trisha**: "The manage.sh restoration alone is worth it. 957 lines of pure functionality!"
**The Cheet**: "This rocks harder than a metal concert in a volcano! ๐ธ๐"
## ๐ฎ What's Next in Beta
- Full 8-O Mode implementation
- Real-time code visualization
- Performance heat maps
- Cast/Airplay streaming
- AST rendering with flying text
## ๐ Thanks!
Special thanks to everyone testing these revolutionary features. Your feedback makes Smart Tree better!
---
**Smart Tree v4.0.0**: Where code documents itself and performance glows red hot! ๐ฅ
*P.S. - It's Wednesday, my dudes! Perfect timing for an 4.0.0 that'll rock your weekend coding! ๐*