travisvn/gptree
A CLI tool to provide LLM context for coding projects by combining project files into a single text file (or clipboard text) with directory tree structure.
This tool helps software developers give Large Language Models (LLMs) the context they need to understand and assist with coding projects. It takes a project folder as input and creates a single text file. This file contains a clear directory tree structure and the content of selected code files, which can then be easily copied into an LLM prompt. This is for any developer using LLMs for code completion, debugging, or explanation.
289 stars. No commits in the last 6 months.
Use this if you regularly use AI coding assistants and need a quick, organized way to feed your entire project's context into their prompts without manual copy-pasting.
Not ideal if you're not a software developer or if you only work on very small, single-file scripts that don't require extensive project context.
Stars
289
Forks
21
Language
Python
License
GPL-3.0
Category
Last pushed
Jul 25, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/travisvn/gptree"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
cyanheads/repo-map
repo-map generates LLM-enhanced summaries and analysis of software repositories, providing...
kirill-markin/repo-to-text
Convert a repository structure and its contents into a single text file, including the tree...
TonyStef/Grov
Grov automatically captures the context from your private AI sessions and syncs it to a shared...
zebangeth/DirPrint
Print/export your project's directory structure and code | Simplify your code sharing with...
abinthomasonline/repo2txt
Web-based tool converts GitHub repository contents into a single formatted text file