AI-native directory visualization with semantic analysis, ultra-compressed formats for AI consumption, and 10x token reduction. Supports quantum-semantic mode with intelligent file categorization.
"Making directories beautiful, one tree at a time!" - Trish from Accounting (our #1 fan!)
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.
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!" |
Who is Aye? That's Me - A-ye! <--> Who is Hue? That's You - Human UsEr. |
Hidden Directory Handling Fixed! No more confusing depth jumps! ๐ต๏ธ
--entry-type
flag - Properly filter files (f) vs directories (d)Plus all the goodness from 3.3.0:
The Tree That Learns! Smart Tree now has optional cloud features for those who want them! ๐ฑ
This magical incantation will change your life:
curl -sSL https://raw.githubusercontent.com/8b-is/smart-tree/main/scripts/install.sh | bash
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! ๐ธ
# 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
{
"mcpServers": {
"smart-tree": {
"command": "/usr/local/bin/st",
"args": [
"--mcp"
],
"env": {
"AI_TOOLS": "1"
}
}
}
}
Make Claude your directory-reading bestie in 3 clicks!
smart-tree.dxt
from latest releaseClaude can now see your directories better than you can! ๐ฎ
# The beautiful classic tree - now the default!
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) ๐
# For Humans (That's You!) ๐ค
st -m classic # ๐ณ The beautiful default (with emojis!)
st -m stats # ๐ Just the facts, ma'am
st -m waste # ๐๏ธ Marie Kondo mode! Find duplicates & waste
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
# 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
# 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!
# 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?)
"Does this file spark joy? If not, let's optimize it!" - Marie Kondo (probably)
Smart Tree's waste detection feature is like having a professional organizer for your codebase! It finds duplicates, build artifacts, large files, and dependency bloat, then gives you actionable cleanup suggestions.
node_modules
, target
, __pycache__
, and other temporary files# Analyze current directory for waste
st -m waste
# Deep analysis of a large project
st -m waste --depth 5 /path/to/project
# Find waste in your entire home directory (prepare to be shocked!)
st -m waste --depth 3 ~
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐๏ธ SMART TREE WASTE ANALYSIS - Marie Kondo Mode Activated! โจ
Project: /home/hue/my-project
Analyzed: 1,234 files, 567 directories
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ WASTE SUMMARY:
โโโ Total Project Size: 2.36 GiB
โโโ Potential Waste: 1.82 GiB (77.4% of project)
โโโ Duplicate Groups: 42
โโโ Build Artifacts: 15
โโโ Large Files (>10 MiB): 8
โโโ Potential Savings: 1.66 GiB (70.4% reduction possible)
๐ DUPLICATE FILES DETECTED:
โโโ 16 files of size 100 MiB each (database files)
โโโ 6 files of size 20.08 MiB each (editor cache)
โโโ 4 files of size 23.44 MiB each (VS Code binaries)
๐ก OPTIMIZATION SUGGESTIONS:
๐ DUPLICATE FILE CLEANUP:
Consider using symbolic links or git submodules for identical files
Review and consolidate duplicate configuration files
๐งน BUILD ARTIFACT CLEANUP:
rm -rf */node_modules # Clean Node.js dependencies
rm -rf */target # Clean Rust build artifacts
find . -name '__pycache__' -type d -exec rm -rf {} +
"This tool found 77.4% waste in my home directory and saved me 1.66 GiB! Trisha from Accounting is so proud!" - Hue (actual user)
src/
โโโ main.rs # ๐ญ The ringmaster
โโโ scanner.rs # ๐ Directory detective
โโโ formatters/ # ๐จ The art department
โ โโโ classic.rs # ๐ณ Beautiful trees
โ โโโ quantum.rs # ๐งฌ Compression wizard
โ โโโ ai.rs # ๐ค AI whisperer
โ โโโ waste.rs # ๐๏ธ Marie Kondo consultant
โ โโโ mermaid.rs # ๐งโโ๏ธ Diagram artist
โโโ semantic.rs # ๐ Wave philosopher
โโโ mcp/ # ๐ AI integration HQ
โโโ tools.rs # ๐ ๏ธ Swiss army knife
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! ๐
hyperfine 'st ~ --find ollama -a ' -r 10
# RESULT:
Benchmark 1: st ~ --find ollama -a
Time (mean ยฑ ฯ): 140.0 ms ยฑ 7.5 ms [User: 54.4 ms, System: 88.3 ms]
Range (min โฆ max): 133.8 ms โฆ 159.7 ms 10 runs
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 |
Smart Tree learns from its users! When used with AI assistants like Claude:
Example: Your AI assistant finds a missing feature? It can suggest it directly to the development team!
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
Check out our AI Best Practices Guide to learn:
Golden Rule: Always start with quick_tree
for any new directory! ๐
See MCP Integration Guide for setup instructions.
Come for the trees, stay for the memes! ๐ณ๐
Special shoutouts to:
๐ณ 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! ๐โจ
By Request