Converts code into Markdown format for use with Large Language Models (LLMs) through a simple terminal command.
Codefetch simplifies the process of preparing code for analysis by Large Language Models (LLMs). It fetches code files from a specified directory, respecting .gitignore and .codefetchignore, and outputs them into a single Markdown file, complete with line numbers. Features include filtering by file extension, including or excluding specific files/directories, generating a project tree, and adding prompts for specific instructions to the LLM. Token limiting strategies and various token counting methods are also supported to optimize output for different AI models.