{"repo":"foresturquhart/grimoire","free":true,"listed":false,"github":"https://github.com/foresturquhart/grimoire","clone":"git clone https://github.com/foresturquhart/grimoire.git","description":"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.","language":"Go","stars":21,"topics":["cli","golang","llm","markdown","utility","code-analysis","developer-tools","git","text","xml"],"license":"MIT","category":"ai-agents","readme_excerpt":"Grimoire is a command-line tool that converts the contents of a directory into structured output formats optimized for interpretation by Large Language Models (LLMs) like Claude, ChatGPT, Gemini, DeepSeek, Llama, Grok, and more. It is lightweight, highly configurable, and user-friendly. Quick Start Install Grimoire The fastest way to get started is with our one-line installation script: This script automatically detects your OS and architecture, downloads the appropriate binary, and installs it to your PATH. Basic Usage Features Multiple Output Formats: Generate output in Markdown, XML, or plain text formats to suit your needs. Recursive File Scanning: Automatically traverses directories and subdirectories to identify eligible files based on customizable extensions. Content Filtering: Skips ignored directories, temporary files, and patterns defined in the configuration. Directory Tree Visualization: Includes an optional directory structure representation at the beginning of the output. Git Integration: Prioritizes files by commit frequency when working within a Git repository. Secret Detection: Scans files for potential secrets or sensitive information to prevent accidental exposure. Secret Redaction: Optionally redacts detected secrets in the output while preserving the overall code structure. Token Counting: Calculates the token count of generated output to help manage LLM context limits. Minified File Detection: Automatically identifies minified JavaScript and CSS files to","default_branch":null,"files":null,"tree":[],"storefront":"/r/foresturquhart","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/foresturquhart/grimoire/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}