# π³ Smart Tree Terminal Examples
> Beautiful, colorful terminal output examples showing Smart Tree in action!
## Table of Contents
- [Classic Tree View](#classic-tree-view)
- [AI-Optimized Mode](#ai-optimized-mode)
- [Quantum Compression](#quantum-compression)
- [Search Features](#search-features)
- [MCP Server Tools](#mcp-server-tools)
- [Version Management](#version-management)
---
## Classic Tree View
```bash
$ st --mode classic --depth 2
```
```
π smart-tree
βββ π docs
β βββ π AI_OPTIMIZATION.md (4.95 KiB)
β βββ π COMPRESSION_GUIDE.md (6.16 KiB)
β βββ π SSE_USAGE.md (5.21 KiB)
βββ π src
β βββ π¦ main.rs (59.19 KiB)
β βββ π¦ scanner.rs (98.00 KiB)
β βββ π¦ lib.rs (3.41 KiB)
βββ π§ Cargo.toml (2.25 KiB)
βββ π README.md (3.41 KiB)
βββ π LICENSE (1.04 KiB)
5 directories, 8 files, 183.62 KiB total
```
---
## AI-Optimized Mode
```bash
$ st --mode ai --compress
```
```
TREE_HEX_V1:
0 755 1000 1000 00000000 66B12345 π smart-tree
1 755 1000 1000 00000000 66B12345 π docs
2 644 1000 1000 000013A7 66B12345 π AI_OPTIMIZATION.md
2 644 1000 1000 000018C5 66B12345 π COMPRESSION_GUIDE.md
1 755 1000 1000 00000000 66B12345 π src
2 644 1000 1000 0000E67B 66B12345 π¦ main.rs
2 644 1000 1000 00017F00 66B12345 π¦ scanner.rs
STATS: F:8 D:3 S:2BCE7 (183.62 KiB)
TYPES: rs:3 md:4 toml:1
END_AI
```
---
## Quantum Compression
```bash
$ st --mode quantum-semantic src/
```
```
QUANTUM_V3:973X_FASTER
[WAVE:8B:IS:MEM8]
ββββββββββββββββββββββββββββββββββββββββ
β Semantic Wave Groups Detected: β
β β’ Core Logic: 45% coherence β
β β’ Formatters: 30% coherence β
β β’ MCP Tools: 25% coherence β
ββββββββββββββββββββββββββββββββββββββββ
Ξ£ 183.62 KiB β 18.4 KiB (10x compression)
π Wave signature: βΏβΏβΏβΏβΏβΏβΏβΏ
```
---
## Search Features
```bash
$ st --search "TODO" --include-line-content
```
```ansi
π smart-tree
βββ π¦ src/main.rs
β βββ [38;5;196mL142[0m: // TODO: Implement quantum entanglement
β βββ [38;5;196mL256[0m: // TODO: Add wave collapse detection
βββ π¦ src/scanner.rs
β βββ [38;5;196mL89[0m: // TODO: Optimize for large directories
βββ π README.md
βββ [38;5;196mL45[0m: - TODO: Add benchmarks
Found 4 matches in 3 files
```
---
## MCP Server Tools
```bash
$ st --mcp-tools | jq '.tools[0:3]'
```
```json
[
{
"name": "quick_tree",
"description": "π Lightning-fast 3-level overview"
},
{
"name": "project_overview",
"description": "π Comprehensive project analysis"
},
{
"name": "search_in_files",
"description": "π Content search with line numbers"
}
]
```
---
## Version Management
```bash
$ ./scripts/manage.sh bump
```
```ansi
[38;5;51mπ³ Version Management π’ π³[0m
[38;5;135mπ[0m Current version: v4.8.4
[38;5;135mπ[0m Bumping to: v4.8.5
[38;5;46mβ
[0m Updated CLAUDE.md
[38;5;135mπ[0m Cleaning orphaned tags...
[38;5;46mβ
[0m Version bumped to v4.8.5! [38;5;46mβ
[0m
[38;5;226mNext steps:[0m
1. Build: ./manage.sh build
2. Test: ./manage.sh test
3. Commit: git add -A && git commit -m 'chore: bump version to v4.8.5'
4. Tag: git tag -a v4.8.5 -m 'Version 4.8.5'
5. Push: git push origin main && git push origin v4.8.5
```
---
## File History Tracking
```bash
$ st --mode classic ~/.mem8/feedback/pending/
```
```
π pending
βββ π feedback_bug_20250813_081644.json (1.2 KiB)
βββ π tool_request_smart-tree-dev_20250813_081644.json (2.3 KiB)
βββ π feedback_feature_20250813_090122.json (890 B)
3 files pending upload
```
---
## Performance Metrics
```bash
$ time st --mode classic /large/codebase --stream
```
```
real 0m0.234s β 10-24x faster than tree!
user 0m0.189s
sys 0m0.045s
π³ Processed 156,789 files in 0.234 seconds
β‘ Performance: 670,466 files/second
π CO2 saved: ~2.3g (vs traditional tree command)
```
---
## Beautiful Git Status Integration
```bash
$ st --mode git-status
```
```
π smart-tree
βββ π src
β βββ π¦ main.rs [M]
β βββ π¦ scanner.rs [M]
β βββ π¦ new_feature.rs [A]
βββ π§ Cargo.toml [M]
βββ π README.md
βββ π CHANGELOG.md [M]
Modified: 4, Added: 1, Unchanged: 3
```
---
## Semantic Analysis
```bash
$ st --mode semantic src/
```
```
π§ Semantic Code Groups:
ββββββββββββββββββββββββββββ
π¦ Core Engine (Wave: βΏβΏβΏ)
βββ scanner.rs - Directory traversal
βββ tokenizer.rs - Pattern recognition
βββ quantum_scanner.rs - Wave mechanics
π¨ Formatters (Wave: βββ)
βββ classic.rs - Traditional output
βββ ai.rs - AI-optimized
βββ quantum.rs - Compressed binary
π§ Tools (Wave: ~~~)
βββ mcp/tools.rs - MCP endpoints
βββ smart_edit.rs - AST operations
ββββββββββββββββββββββββββββ
```
---
## Live SSE Monitoring
```bash
$ st --sse-server --sse-port 8420 /project
```
```
π SSE Server Started on http://localhost:8420
π‘ Monitoring: /project
ββββββββββββββββββββββββββββ
[08:16:44] π Modified: src/main.rs
[08:16:45] β Created: test.rs
[08:16:47] ποΈ Deleted: old_file.rs
[08:16:50] π Stats: 234 files, 45 dirs
ββββββββββββββββββββββββββββ
Clients connected: 3
Events sent: 127
Uptime: 5m 23s
```
---
## Error Handling
```bash
$ st /root/protected
```
```ansi
[38;5;196mβ οΈ Permission denied:[0m /root/protected
[38;5;226mπ[0m /root/protected [38;5;196m*[0m
[38;5;244mβββ (inaccessible)[0m
[38;5;244mNote: Directories marked with * require elevated permissions[0m
```
---
## Quick Stats
```bash
$ st --mode stats
```
```
π Directory Statistics
βββββββββββββββββββββββββββββββββββ
Total Size: 1.23 GiB
Total Files: 12,456
Total Dirs: 1,234
Avg File Size: 103.4 KiB
π File Types (Top 5):
.rs 4,567 files (36.7%)
.md 2,345 files (18.8%)
.json 1,234 files (9.9%)
.toml 987 files (7.9%)
.txt 654 files (5.2%)
β° Recent Activity:
Last hour: 23 modifications
Last 24h: 156 modifications
Last week: 892 modifications
βββββββββββββββββββββββββββββββββββ
```
---
## Fun with Emojis
```bash
$ st --mode classic test_files/
```
```
π test_files
βββ π¦ test.rs
βββ π test.py
βββ π test.js
βββ π¨ style.scss
βββ π data.csv
βββ πΌοΈ image.jpg
βββ π΅ audio.mp3
βββ π¬ video.mp4
βββ π¦ test.zip
βββ π test.gpg
βββ π test.wasm
βββ π§ test.mem8
12 files, each with its perfect emoji!
```
---
## Environment Impact
```bash
$ st --show-carbon-savings
```
```
π Environmental Impact Report
βββββββββββββββββββββββββββββββββββββββ
Session Statistics:
β’ Commands run: 42
β’ Files scanned: 523,456
β’ Time saved: 8.3 seconds
β’ CPU cycles saved: ~2.1M
Carbon Footprint:
β’ Traditional tree: ~12.4g CO2
β’ Smart Tree: ~0.5g CO2
β’ SAVED: 11.9g CO2 β
Cumulative Impact (This Month):
β’ Commands: 1,234
β’ CO2 Saved: 348g π³
β’ Equivalent to: 1 tree planted! π²
βββββββββββββββββββββββββββββββββββββββ
```
---
> **Note**: Colors are rendered using ANSI escape codes in actual terminal output.
> Smart Tree is 10-24x faster than traditional tree, saving energy with every scan! π³
## Configuration
Create `~/.config/smart-tree/config.toml`:
```toml
[display]
emoji = true
colors = true
max_depth = 10
[performance]
stream_threshold = 10000
cache_enabled = true
[mcp]
compression = true
no_emoji = false
```
---
*Smart Tree v4.8.4 - Making directories beautiful and saving the planet, one scan at a time!* π