tree-ai is a command-line tool that augments the traditional tree command with AI-generated descriptions for files and folders. It uses IBM Granite language models to provide concise summaries of each element in your directory tree, helping you quickly understand unfamiliar projects.
--max-depth--prompt--truncateClone the repository and install from source:
git clone https://github.com/your-org/tree-ai.git
cd tree-ai
make install
source .venv/bin/activate
To use your own model, you must export your API key and provide both --model and --endpoint:
export TREE_AI_API_KEY=<your-api-key>
bin/tree-ai ./ \
--endpoint=https://your-model-endpoint.example.com/v1/completions \
--model=your-model-id
Show up levels based on preference:
bin/tree-ai ./ --max-depth=3
Use a custom instruction for summarization with --prompt:
bin/tree-ai ./ --prompt "Summarize what this file contributes to the project."
Use --truncate to keep summaries to one line (useful for compact output):
bin/tree-ai ./ --truncate
Include hidden files and directories (like tree -a):
bin/tree-ai ./ --include-dotfiles
Enable verbose output for debugging:
bin/tree-ai ./ --verbose
β― bin/tree-ai ./ --endpoint="<model endpoint>" --truncate
β οΈ AI-generated summaries may be inaccurate or outdated.
βββ LICENSE β€ grants users permission to use, modify, and distribute the project's software
βββ Makefile β€ as a build and testing automation tool for the tree-ai project
βββ README.md β€ This file serves as the project's documentation and user guide
βββ bin β€ serves as a centralized location for executable scripts and utilities
β βββ tree-ai β€ outlines the architecture and details for integrating an AI model
βββ cmd β€ houses the command-line interface (CLI) implementation for the project
β βββ root.go β€ The purpose of this file is to define the command-line interface
make test
MIT License
19 commits
Go
62.1%
Python
28.1%
Shell
6.4%
Makefile
3.3%
tree-ai is a command-line tool that augments the traditional tree command with AI-generated descriptions for files and folders. It uses IBM Granite language models to provide concise summaries of each element in your directory tree, helping you quickly understand unfamiliar projects.
--max-depth--prompt--truncateClone the repository and install from source:
git clone https://github.com/your-org/tree-ai.git
cd tree-ai
make install
source .venv/bin/activate
To use your own model, you must export your API key and provide both --model and --endpoint:
export TREE_AI_API_KEY=<your-api-key>
bin/tree-ai ./ \
--endpoint=https://your-model-endpoint.example.com/v1/completions \
--model=your-model-id
Show up levels based on preference:
bin/tree-ai ./ --max-depth=3
Use a custom instruction for summarization with --prompt:
bin/tree-ai ./ --prompt "Summarize what this file contributes to the project."
Use --truncate to keep summaries to one line (useful for compact output):
bin/tree-ai ./ --truncate
Include hidden files and directories (like tree -a):
bin/tree-ai ./ --include-dotfiles
Enable verbose output for debugging:
bin/tree-ai ./ --verbose
β― bin/tree-ai ./ --endpoint="<model endpoint>" --truncate
β οΈ AI-generated summaries may be inaccurate or outdated.
βββ LICENSE β€ grants users permission to use, modify, and distribute the project's software
βββ Makefile β€ as a build and testing automation tool for the tree-ai project
βββ README.md β€ This file serves as the project's documentation and user guide
βββ bin β€ serves as a centralized location for executable scripts and utilities
β βββ tree-ai β€ outlines the architecture and details for integrating an AI model
βββ cmd β€ houses the command-line interface (CLI) implementation for the project
β βββ root.go β€ The purpose of this file is to define the command-line interface
make test
MIT License
19 commits
Go
62.1%
Python
28.1%
Shell
6.4%
Makefile
3.3%