A blazingly fast, context-aware directory tree tool co-created by human and AI for optimal information density across multiple output formats. Smart Tree bridges the gap between human readability and AI token efficiency, providing fixed-width formats for parsing, ultra-compact modes for bandwidth optimization, and AI-specific formats. HEX MODE

๐ŸŒณ Smart Tree (st) v3.1.1 - The Directory Visualizer That Rocks! ๐ŸŽธ

Hue's Terminal

Discord GitHub release Downloads License: MITRustClaude DesktopMCP CompatiblePlatform

"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

  • Don't forget ARM compiler if you're fancy with Parallels!
  • Get Rust (it's awesome!)
  • Grab Git: winget install git
# 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!

  1. ๐Ÿ“ฅ Download smart-tree.dxt from latest release
  2. โš™๏ธ Claude Desktop โ†’ Settings โ†’ Developer โ†’ Install from file
  3. ๐ŸŽ‰ 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 Happens
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
โ”‚   โ””โ”€โ”€ 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

Discord Banner

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

MCP Server ยท Populars

MCP Server ยท New

    8b-is

    ๐ŸŒณ Smart Tree (st) v3.1.1 - The Directory Visualizer That Rocks! ๐ŸŽธ

    A blazingly fast, context-aware directory tree tool co-created by human and AI for optimal information density across multiple output formats. Smart Tree bridges the gap between human readability and AI token efficiency, providing fixed-width formats for parsing, ultra-compact modes for bandwidth optimization, and AI-specific formats. HEX MODE

    Community 8b-is
    awslabs

    AWS Labs cloudwatch MCP Server

    AWS MCP Servers โ€” helping you get the most out of AWS, wherever you use MCP.

    Community awslabs
    arinspunk

    Claude Talk to Figma MCP

    A Model Context Protocol (MCP) that allows Claude Desktop and other AI tools (GitHub Copilot, Cursor, etc.) to interact directly with Figma

    Community arinspunk
    zillow

    AutoMobile

    Mobile automation suite of tools including an MCP and libraries for test authoring & execution

    Community zillow
    aiurda

    ๐Ÿš€ Cursor10x is now DevContext ๐Ÿš€

    The Cursor10x MCP is a persistent multi-dimensional memory system for Cursor that enhances AI assistants with conversation context, project history, and code relationships across sessions.

    Community aiurda