Skip to main content
Glama
8b-is
by 8b-is
SMART_TREE_CHEET_SHEET.mdโ€ข8.1 kB
# ๐ŸŽธ Smart Tree Ultimate Cheet Sheet ๐ŸŽธ *The Complete Rock Opera Guide to Smart Tree v4.0.0* ## ๐Ÿš€ Quick Start (30 Seconds to Glory) ```bash # Install (pick your poison) cargo install st # From source brew install smart-tree # macOS curl -L bit.ly/smart-tree | bash # Universal installer # The Greatest Hits st # Classic tree (with emojis!) st --mode ai # AI-optimized (80% smaller) st --mode quantum-semantic # Maximum compression (94%!) st --mode function-markdown # Extract all functions! NEW! ๐Ÿ”ฅ # Find stuff like a rockstar st --search "TODO" # X-ray vision for code st --find "*.rs" # Find all Rust files st --type py --newer-than 2025-01-01 # Recent Python files ``` ## ๐ŸŽญ All 20+ Output Modes (Pick Your Instrument) ### ๐ŸŽธ The Classics (Human-Friendly) ```bash st -m classic # ๐ŸŒณ Beautiful tree with emojis (default) st -m ls # ๐Ÿ“ Unix ls -la format st -m stats # ๐Ÿ“Š Just statistics st -m waste # ๐Ÿ—‘๏ธ Find duplicates & bloat (Marie Kondo mode) st -m function-markdown # ๐Ÿ“š Living code documentation! NEW! ``` ### ๐ŸŽน The Experimental (AI-Optimized) ```bash st -m ai # ๐Ÿง  AI-optimized format (80% compression) st -m quantum # ๐Ÿงฌ Binary quantum format (99% compression!) st -m quantum-semantic # ๐ŸŒŠ Semantic compression (94% + meaning!) st -m summary-ai # ๐Ÿ“ Ultra-compressed summary (10x reduction) st -m digest # ๐Ÿ’Š One-line summary ``` ### ๐Ÿฅ The Visualizers (Pretty Pictures) ```bash st -m mermaid # ๐Ÿงœโ€โ™€๏ธ Flowchart diagrams st -m mermaid --mermaid-style mindmap # ๐Ÿง  Mind maps st -m mermaid --mermaid-style treemap # ๐Ÿ“Š Size visualization st -m markdown # ๐Ÿ“„ Full report with charts st -m relations # ๐Ÿ”— Code relationships st -m semantic # ๐ŸŒŠ Group by meaning ``` ### ๐ŸŽบ The Data Formats (Machine Food) ```bash st -m json # ๐Ÿ”ง Standard JSON st -m csv # ๐Ÿ“Š Comma-separated st -m tsv # ๐Ÿ“Š Tab-separated st -m hex # ๐Ÿ”ข Hexadecimal fields st -m marqant # ๐Ÿ“ฆ Quantum-compressed markdown st -m sse # ๐Ÿ“ก Server-sent events streaming ``` ## ๐Ÿ” Search & Filter (Detective Mode) ```bash # Size matters st --min-size 10M # ๐Ÿ˜ Find big files st --max-size 1K # ๐Ÿœ Find tiny files st --sort largest --top 10 # ๐Ÿ† Top 10 biggest # Time travel st --newer-than 2025-01-01 # ๐Ÿ†• What's new? st --older-than 2020-01-01 # ๐Ÿ›๏ธ Ancient artifacts # Type filtering st --type rs # ๐Ÿฆ€ Rust files only st --type "py,js,ts" # ๐Ÿ๐Ÿ“œ Multiple types st --entry-type d # ๐Ÿ“ Directories only # Pattern matching st --find "test_.*\.rs" # ๐Ÿงช Find test files st --search "FIXME|TODO" # ๐Ÿ” Search in files ``` ## ๐Ÿ’ช Power Features ### ๐Ÿ  Home Directory Safety (NEW!) ```bash st ~ # Won't crash on 2.4M files! st --depth 3 ~ # Limit depth for huge dirs st --stream ~ # Stream mode for massive dirs ``` ### ๐Ÿ“š Function Documentation (NEW!) ```bash st -m function-markdown src/ # Extract all functions st -m function-markdown --show-private # Include private functions watch -n 5 'st -m function-markdown src/ > FUNCS.md' # Live docs! ``` ### ๐Ÿค– MCP Server Mode ```bash st --mcp # Run as MCP server st --mcp-tools # List 30+ AI tools st --mcp-config # Show Claude Desktop config ``` ### ๐ŸŽฌ Advanced Options ```bash st --no-emoji # ๐Ÿ˜ข Disable fun st --no-ignore # ๐Ÿ™ˆ See .gitignore'd files st --compress # ๐Ÿ—œ๏ธ Compress output st --stream # ๐ŸŒŠ Stream for huge dirs st --path-mode full # ๐Ÿ“ Show full paths st --semantic # ๐Ÿง  Group by meaning ``` ## ๐ŸŽฏ Real-World Rockstar Examples ```bash # The "Where's My Code?" Solo st -m ai --search "TODO" --type rs src/ # The "Documentation Hero" Riff st -m function-markdown src/ > docs/API.md # The "Performance Detective" Groove st -m quantum-semantic --compress | base64 > snapshot.q # The "Clean House" Ballad st -m waste --min-size 10M | grep -E "(node_modules|target|build)" # The "What Changed?" Bridge st --newer-than 2025-01-01 --sort newest --top 20 # The "AI Context" Anthem st -m summary-ai ~/projects/big-codebase > context.txt # The "Live Monitor" Jam Session st --sse-server --sse-port 8420 /path/to/watch ``` ## ๐Ÿ”ฎ 8-O Mode Preview (Coming Soon!) ```bash # Attach to running process st --mode 8-O --attach-pid 12345 --cast my-tv # Profile with heat map cargo run & st --mode 8-O --profile --heat-map # Record performance session st --mode 8-O --record perf.mp4 --duration 60s ``` **Visual Elements:** - ๐Ÿ”ฅ Hot functions glow red - ๐ŸงŠ I/O waits freeze blue - โšก Thread contention = lightning - ๐Ÿ’œ GC pressure = purple waves ## ๐Ÿ“Š Compression Stats (The Numbers Don't Lie) | Mode | Size | Reduction | Use Case | |------|------|-----------|----------| | Classic | 487MB | 0% | Humans | | AI | 97MB | 80% | Claude/GPT | | Quantum | 4.9MB | 99% | Storage | | Quantum-Semantic | 29MB | 94% | Analysis | | Summary-AI | 48MB | 90% | Overview | | Digest | 73 bytes | 99.99% | Quick check | ## ๐ŸŽช Special Tricks ### The "Emotional Tree" (Coming Back Soon) ```bash st -m emotional # Tree gets bored of node_modules! ๐Ÿ˜ด ``` ### The "Security Vigilance" (In Development) ```bash st --security-mode # Watches for suspicious patterns ๐Ÿ” ``` ### The "Hot Tub Debug" (Easter Egg) ```bash st --hot-tub # Collaborative debugging with Omni! ๐Ÿ› ``` ## ๐Ÿ› ๏ธ Installation Variations ```bash # Cargo (Rust users) cargo install st --version 4.0.0 # From source (hackers) git clone https://github.com/8b-is/smart-tree.git cd smart-tree ./scripts/manage.sh install # Pre-built binaries curl -L https://github.com/8b-is/smart-tree/releases/latest/download/st-$(uname -s)-$(uname -m) -o st chmod +x st sudo mv st /usr/local/bin/ # Claude Desktop st --mcp-config >> ~/Library/Application\ Support/Claude/claude_desktop_config.json ``` ## ๐ŸŽธ Pro Tips from The Cheet 1. **Speed Run**: `st -m digest` for instant directory fingerprint 2. **AI Budget**: `st -m summary-ai` saves 90% on tokens 3. **Live Docs**: `watch` + `function-markdown` = self-updating docs 4. **Big Dirs**: Always use `--stream` for dirs > 100K files 5. **Git Ignore**: Use `--no-ignore` to see what git hides 6. **Performance**: `st -m quantum` for network transfer (99% smaller!) ## ๐ŸŽญ The Cast - **The Cheet**: Your musical guide through the filesystem - **Hue**: The human partner (that's you!) - **Aye**: The AI assistant (that's me!) - **Trisha**: From accounting, loves making things sparkle โœจ - **Omni**: Philosophical guide in the Hot Tub ๐Ÿ› ## ๐Ÿš’ Emergency Commands ```bash # Home directory crash? Limit it! st --depth 3 --stream ~ # Too much output? Compress it! st -m quantum | gzip > tree.qz # Need context for AI? Summarize! st -m summary-ai > context.txt # Lost in output? Digest it! st -m digest ``` ## ๐ŸŒŸ Why Smart Tree Rocks - **10-24x faster** than traditional tree - **99% compression** with quantum modes - **25+ languages** for function extraction - **30+ MCP tools** for AI integration - **Crash-proof** on massive directories - **Living docs** that update themselves - **Emotional** trees that get bored - **Performance** visualization (soon!) --- *"Smart Tree: Where directories come alive and performance glows red hot!"* ๐Ÿ”ฅ **Version**: 4.0.0 | **Released**: August 8, 2025 | **Made with**: ๐ŸŽธ & โค๏ธ *P.S. - For the full experience, read while listening to "Stairway to Heaven" ๐ŸŽต*

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/8b-is/smart-tree'

If you have feedback or need assistance with the MCP directory API, please join our Discord server