๐ณ Smart Tree (st) v3.1.1 - The Directory Visualizer That Rocks! ๐ธ
"Making directories beautiful, one tree at a time!" - Trish from Accounting (our #1 fan!)
๐ What the Heck is Smart Tree?
Remember the old tree
command? Well, we gave it a PhD, taught it to dance, and introduced it to AI! Smart Tree is the world's first AI-native directory visualizer that actually understands what modern developers (and their AI assistants) need.
๐ The "Holy Smokes!" Numbers ๐
Metric | Old Way | Smart Tree Way | Your Reaction |
---|---|---|---|
Directory Size | 487 MB | 4.1 MB | ๐ฑ "Wait, what?!" |
AI Token Cost | $1,270 | ~$10 | ๐ฐ "I'm rich!" |
Processing Speed | ๐ Slow | โก 10-24x faster | ๐ "Wheee!" |
Compression | None | 99% | ๐คฏ "How?!" |
Fun Factor | 0% | 100% | ๐ "Finally!" |
๐ Version 3.1.1: "Less is More" Edition!
๐ธ What's NEW (or should we say... what's GONE?)
BREAKING NEWS: Elvis has left the building! ๐ช
- โ Removed Interactive Mode - Because sometimes, simplicity rocks harder than complexity!
- โ
Classic Mode is DEFAULT - Just run
st
and boom! Beautiful trees! - ๐ Smaller, Faster, Better - Like a sports car that lost weight and gained speed!
- ๐พ One Less Dependency -
inquire
said goodbye, and we're not crying!
# Before v3.1.1:
st --interactive # ๐ด Too many steps!
# After v3.1.1:
st # ๐ BAM! Instant classic tree goodness!
๐ Quick Start (Faster than Making Coffee โ)
๐ง Linux/Mac/WSL - The One-Liner Wonder!
# This magical incantation will change your life:
curl -sSL https://raw.githubusercontent.com/8b-is/smart-tree/main/scripts/install.sh | bash
# That's it. You're done. Go visualize some directories! ๐
๐ช Windows - The Slightly Longer Dance
Click here for Windows installation (still pretty easy!)Pro tip: You might need Microsoft Build Tools for Rust
# Clone the awesomeness
git clone https://github.com/8b-is/smart-tree
cd smart-tree
# Build the magic
cargo build --release
# Install it (pick your favorite spot)
copy target\release\st.exe C:\your\favorite\path\
# Add to PATH and rock on! ๐ธ
Claude Code Integration
# Do the quick install above. This is the example for Linux, Mac, WSL, and who knows?
claude mcp add st /usr/local/bin/st -- --mcp
๐ค Claude Desktop Integration - The Future is Now!
Make Claude your directory-reading bestie in 3 clicks!
- ๐ฅ Download
smart-tree.dxt
from latest release - โ๏ธ Claude Desktop โ Settings โ Developer โ Install from file
- ๐ Select the file and grant access - DONE!
Claude can now see your directories better than you can! ๐ฎ
๐ฏ Usage Examples (The Fun Part!)
๐ The Basics - Simple Yet Powerful
# The classics never die! (Now the default in v3.1.1!)
st # Current directory with beautiful trees ๐ณ
st /path/to/directory # Specific directory - point and shoot! ๐ฏ
# Quick exploration
st --depth 2 # Shallow dive - just the tip of the iceberg ๐ง
st --everything # SHOW ME EVERYTHING! (Even the scary parts) ๐
st -a # Include hidden files (they're shy) ๐
๐จ Output Modes - Pick Your Flavor!
๐ญ All 15+ Output Modes Explained!# For Humans (That's You!) ๐ค
st -m classic # ๐ณ The beautiful default (with emojis!)
st -m stats # ๐ Just the facts, ma'am
st -m markdown # ๐ Perfect documentation in seconds!
st -m mermaid # ๐งโโ๏ธ Diagrams that make you look smart
# For Robots (Your AI Friends) ๐ค
st -m ai # ๐ง AI-optimized (80% smaller!)
st -m quantum-semantic # ๐ Maximum compression with meaning!
st -m digest # ๐ One-line summary for quick checks
st -m json # ๐ง When machines talk to machines
# For Data Nerds ๐ค
st -m hex # ๐ข Hexadecimal beauty
st -m csv # ๐ Spreadsheet-ready
st -m tsv # ๐ Tab-separated for the tab lovers
st -m semantic # ๐ Group by meaning (Omni's favorite!)
# The Secret Weapons ๐ฅท
st -m quantum # ๐งฌ Native quantum format (99% compression!)
st -m relations # ๐ Code relationship analysis
๐ Finding Stuff - Like a Detective!
# Find files like a boss
st --find "*.rs" # ๐ฆ Rust files, assemble!
st --find "TODO" # ๐ Find all your broken promises
st --type py # ๐ Python files only
st --search "FIXME" # ๐ Search inside files (X-ray vision!)
# Size matters
st --min-size 10M # ๐ Find the chonky files
st --max-size 1K # ๐ Find the tiny ones
# Time travel
st --newer-than 2024-01-01 # ๐ What's new this year?
st --older-than 2020-01-01 # ๐ฐ๏ธ Find the ancient artifacts
๐ Performance Mode - For Speed Demons
# Stream mode - watch it flow!
st --stream # ๐ Real-time output for huge directories
st --stream -m hex # ๐โโ๏ธ Hex mode at the speed of light
# Compression - because size matters
st -z # ๐๏ธ Compress output (even smaller!)
st -m ai -z # ๐ค AI mode + compression = ๐ฐ saved
# The "I need it yesterday" combo
AI_TOOLS=1 st # ๐ Auto-detects AI caller, optimizes everything!
๐ช The Magic Tricks
# Semantic grouping - files that vibe together!
st --semantic # ๐ Groups: tests, docs, config, source
# Wave signatures included! (Ask Omni about this)
# Mermaid diagrams - instant documentation!
st -m mermaid > docs/arch.md # ๐ Flowchart magic
st -m mermaid --mermaid-style mindmap # ๐ง Mind map mode
st -m mermaid --mermaid-style treemap # ๐บ๏ธ Treemap visualization (shows file sizes!)
st -m markdown > README_PROJECT.md # ๐ Full project report!
# Pro tip: If mermaid has issues with emojis, use --no-emoji
st -m mermaid --no-emoji # Clean diagrams without emojis
# The "impress your boss" commands
st -m digest /huge/project # Returns in 0.1 seconds: "HASH: abc123 F:10000 D:500..."
st --no-emoji --no-color # ๐ข Boring mode (but why would you?)
๐๏ธ Architecture (For the Curious Minds)
๐ง How the Magic Happenssrc/
โโโ main.rs # ๐ญ The ringmaster
โโโ scanner.rs # ๐ Directory detective
โโโ formatters/ # ๐จ The art department
โ โโโ classic.rs # ๐ณ Beautiful trees
โ โโโ quantum.rs # ๐งฌ Compression wizard
โ โโโ ai.rs # ๐ค AI whisperer
โ โโโ mermaid.rs # ๐งโโ๏ธ Diagram artist
โโโ semantic.rs # ๐ Wave philosopher
โโโ mcp/ # ๐ AI integration HQ
โโโ tools.rs # ๐ ๏ธ Swiss army knife
๐ Real-World Magic
๐ฐ The Money Shot - Compression Comparison
๐ Benchmarks
Format | Size | Tokens | Relative Cost |
---|---|---|---|
Classic Tree | 1.2MB | 300K | 100% |
JSON | 2.1MB | 525K | 175% |
Hex Mode | 800KB | 200K | 67% |
AI Mode + Compression | 120KB | 30K | 10% |
Digest | 128B | 32 | 0.01% |
That's a 99.2% reduction! Your wallet just did a happy dance! ๐
๐ฏ Format Quick Reference
Use Case | Best Format | Why? |
---|---|---|
๐ Quick Look | classic (default!) |
Beautiful & intuitive |
๐ค AI Analysis | quantum-semantic |
10x compression! |
๐ Reports | markdown |
Instant documentation |
๐ Debugging | hex |
All the details |
๐พ Archival | json |
Future-proof |
๐ Quick Check | digest |
One-line summary |
๐ง MCP (Model Context Protocol) Server
Smart Tree now includes a built-in MCP server that provides intelligent project analysis directly to AI assistants!
# Run as MCP server (for Claude Desktop, etc.)
st --mcp
# Show MCP configuration
st --mcp-config
๐ค AI Best Practices
Check out our AI Best Practices Guide to learn:
- Optimal workflow for using Smart Tree tools
- Which tools to use for different tasks
- How to maximize token efficiency
- Common patterns for code analysis
Golden Rule: Always start with quick_tree
for any new directory! ๐
Features:
- 20+ specialized tools for directory analysis
- Automatic compression for efficient token usage
- Semantic analysis for understanding code structure
- Built-in caching for instant repeated queries
- Security controls for safe file system access
See MCP Integration Guide for setup instructions.
๐ค Join the Smart Tree Family!
๐ฌ Discord Community - Where the Cool Kids Hang Out
Come for the trees, stay for the memes! ๐ณ๐
- ๐ Get Help - We actually answer!
- ๐ Share Wins - Show off your directory art!
- ๐ Report Bugs - We'll squash 'em!
- ๐ Philosophy Hour - Discuss waves with Omni in the hot tub!
- ๐ Pizza Fridays - Virtual, but the fun is real!
๐ Contributors Hall of Fame
Special shoutouts to:
- Hue - The visionary who started it all! ๐จ
- Aye - The AI that rocks! ๐ค
- Trish from Accounting - Our #1 fan and humor consultant! ๐
- Omni - The philosopher in the hot tub! ๐
- You - Yes, YOU could be next! ๐
๐ The Sacred Scrolls (Documentation)
- ๐ Complete Guide - Everything you need!
- ๐ MCP Integration - Make AI your friend!
- ๐ฏ Quick Reference - Cheat sheet!
- ๐ค Philosophy - Deep thoughts from the hot tub!
๐ฌ The Grand Finale
Why Smart Tree? Because...
๐ณ Life's too short for boring directory listings!
๐ Your directories deserve to be beautiful!
๐ฐ Your AI tokens are precious!
๐ Work should be fun!
Smart Tree: Making directories great again, one visualization at a time!
Built with ๐ by the Smart Tree Team
Aye, Hue, Trish, and Omni approve this message! โจ
P.S. - If you read this far, you're awesome! Here's a secret: Try st --semantic
and watch the magic happen! ๐โจ
FYI Section
Star History
By Request