Smart Tree
S

Smart Tree

Smart Tree is an ultra-fast directory visualization tool developed based on Rust. It is 10 - 24 times faster than the traditional tree command. It has features such as AI - optimized output, quantum compression, and intelligent search, and also focuses on environmental protection and energy conservation.
3 points
6.7K

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

๐Ÿš€ Smart Tree - Lightning Fast Directory Visualization

Smart Tree is a super - fast, AI - friendly directory visualization tool that's 10 - 24 times faster than the traditional tree command. It's built with Rust to offer top - notch performance and minimize environmental impact.

Version Trust Score

โœจ Features

  • โšก Lightning Fast: It runs 10 - 24 times faster than traditional tree commands.
  • ๐Ÿค– AI - Optimized: Multiple output formats are designed for easy consumption by LLMs.
  • ๐Ÿ—œ๏ธ Quantum Compression: It can reduce the output size by up to 10 times.
  • ๐Ÿ” Smart Search: You can search for content with line numbers and context.
  • ๐Ÿ“ก MCP Server: There are over 30 tools for AI assistants via the Model Context Protocol.
  • ๐ŸŒ Eco - Friendly: Each scan saves CO2 through high - efficiency operation.

๐Ÿš€ Quick Start

Basic Usage

# Install Smart Tree
curl -sSL https://raw.githubusercontent.com/8b-is/smart-tree/main/scripts/install.sh | bash

# Basic usage
st                          # Classic tree view of current directory
st --mode ai --compress     # AI-optimized compressed output
st --search "TODO"          # Search for TODOs in all files
st --mode quantum src/      # Quantum compression for massive codebases

๐Ÿ“ฆ Installation

Homebrew (macOS/Linux)

brew install --HEAD 8b-is/smart-tree/smart-tree

From Source

git clone https://github.com/8b-is/smart-tree.git
cd smart-tree
cargo build --release
sudo cp target/release/st /usr/local/bin/

For AI Assistants (Claude Desktop)

st --mcp-config >> ~/Library/Application\ Support/Claude/claude_desktop_config.json

๐ŸŽฏ Common Use Cases

For Developers

st --mode classic --depth 3     # Quick project overview
st --search "function" src/     # Find all functions
st --mode stats                 # Project statistics
st --mode git-status            # See git changes in tree

For AI/LLMs

st --mode ai --compress          # Optimized for token efficiency
st --mode quantum-semantic       # Semantic code understanding
st --mode summary-ai             # Ultra-compressed summaries

For Large Codebases

st --stream /huge/project        # Stream output for massive directories
st --mode quantum --compress     # Maximum compression (100x reduction)

๐Ÿ“Š Output Formats

Property Details
classic Traditional tree with emojis, best for human viewing.
ai Hexadecimal with compression, ideal for AI assistants.
quantum Binary wave compression, suitable for huge directories.
quantum-semantic Semantic grouping, good for code analysis.
summary-ai Compressed summaries, great for quick overviews.
json Standard JSON, used for data processing.
stats Directory statistics, helpful for project metrics.

See TERMINAL_EXAMPLES.md for beautiful output examples!

๐Ÿ› ๏ธ MCP Server (AI Tools)

Smart Tree comes with over 30 MCP tools for AI assistants:

# Start MCP server
st --mcp

# List available tools
st --mcp-tools

# Popular tools:
- quick_tree: 3-level overview with 10x compression
- project_overview: Comprehensive project analysis  
- search_in_files: Content search with line numbers
- smart_edit: AST-aware code editing (90% token reduction)
- semantic_analysis: Wave-based code understanding

๐ŸŒ Environmental Impact

Each scan of Smart Tree saves energy and reduces CO2 emissions:

  • 10 - 24x faster means less CPU time.
  • Less CPU time results in less energy consumption.
  • Less energy consumption leads to a lower carbon footprint.
  • Your impact: approximately 12g of CO2 saved per 1000 scans.

๐Ÿ“š Documentation

  • TERMINAL_EXAMPLES.md - Beautiful terminal output examples
  • CLAUDE.md - Development guide for AI assistants
  • docs/ - Additional documentation
  • scripts/manage.sh - Colorful project management

๐Ÿค Contributing

We welcome contributions! Smart Tree is developed through a unique partnership:

  • Hue (Human) - Vision and direction
  • Aye (AI) - Implementation and optimization
  • Trish (from Accounting) - Keeping us organized with style

๐Ÿ“ˆ Version History

Current version: v4.8.8

Recent improvements:

  • v4.8.8: Code formatting, linting, and maintenance updates by Claude
  • v4.8.7: Moved Marqant to Crate
  • v4.8.4: Automatic version management system
  • v4.8.3: Fixed MCP schema validation
  • v4.8.2: Local feedback fallback when API is offline
  • v4.8.1: Simplified tool requests API

See CHANGELOG.md for the full history.

๐ŸŽ‰ Fun Facts

  • Smart Tree can process over 670,000 files per second.
  • It's written in 100% Rust for safety and speed.
  • It includes over 40 emoji mappings for file types.
  • It has saved approximately 1.2 tons of CO2 globally.
  • It features comments from "The Cheet" (our musical code narrator).

๐Ÿ“„ License

This project is under the MIT License. See LICENSE for details.


Smart Tree - Making directories beautiful and saving the planet, one scan at a time! ๐ŸŒณ

Developed with โค๏ธ by the 8b.is team

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
4.5K
4.5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
6.7K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
6.2K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
7.5K
5 points
R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
9.3K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
9.7K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
6.5K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
10.5K
5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.2K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
24.4K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
71.7K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.4K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
31.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
64.3K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
47.4K
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.0K
4.5 points