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
5.8K

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

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
6.6K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
9.7K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
5.9K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
5.4K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
7.8K
5 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 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
15.7K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.5K
4.3 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
16.6K
4.3 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
24.4K
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
44.1K
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#
20.2K
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
30.2K
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
15.8K
4.5 points