The tool operates in an interactive mode, allowing users to navigate, select, and package files into a prompt, which can then be copied to the system clipboard. Navigation is done using arrows or 'k'/'j', directories can be expanded or collapsed with 'Tab' or 'Enter', files are marked for inclusion with 'Space', and 'y' is pressed to copy the prompt. Tokens are estimated for GPT-4/GPT-3.5 using a specific GitHub link.
Key takeaways:
- PromptPack is a CLI tool that helps turn a list of files into a prompt for an LLM.
- It can be installed globally using a preferred package manager or run directly with npx/pnpx/bunx.
- The tool operates in an interactive mode, allowing users to navigate, select, and package files into a prompt, and copy it to the system clipboard.
- It uses tiktoken to estimate tokens for GPT-4/GPT-3.5.