code2prompt
Generate AI-ready prompts from a codebase (extract, filter, and format code for LLMs). tldr-pages
On several platforms
Several platforms
Generate a prompt for the current project and copy it to the clipboard (default behavior)
code2prompt path/to/projectIdentifyInclude only specific files and exclude a directory
code2prompt path/to/project --include "**/*.rs" --exclude "tests/**"IdentifyWrite the prompt to a file instead of the clipboard
code2prompt path/to/project --output-file my_prompt.txtIdentifyProduce structured JSON output
code2prompt path/to/project --output-format jsonIdentifyUse a custom Handlebars template when generating the prompt
code2prompt path/to/project --template my_template.hbsIdentify