foresturquhart/grimoire
A lightweight tool that converts directory contents into structured output optimized for LLM interpretation, featuring Git-aware file ordering, secret detection/redaction, token counting, and customizable filtering.
This tool helps software developers and engineers prepare their codebase for interpretation by Large Language Models (LLMs). It takes a project directory as input, intelligently filters out irrelevant files, redacts sensitive information, and organizes the remaining code. The output is a structured, clean representation of the codebase, formatted in Markdown, XML, or plain text, ready to be fed into an LLM for tasks like code explanation or analysis.
Use this if you need to quickly and safely get a structured representation of a project's source code into an LLM while managing context windows and preventing sensitive data leakage.
Not ideal if you need a code analysis tool that runs within your CI/CD pipeline or generates detailed reports for compliance, as this focuses solely on LLM-optimized output.
Stars
18
Forks
—
Language
Go
License
MIT
Category
Last pushed
Nov 27, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/foresturquhart/grimoire"
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