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.4K

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

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
8.6K
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
8.2K
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
5.1K
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
9.4K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
7.4K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
7.0K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
9.4K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
6.7K
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
17.7K
4.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
30.8K
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
61.4K
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
21.5K
4.3 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#
26.7K
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
58.0K
4.5 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
19.8K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
85.4K
4.7 points