Sign up to save tools and stay up to date with the latest in AI
bg
bg
1

GitHub - 3rd/promptpack: CLI tool for packing files into a prompt for LLM usage.

Dec 29, 2023 - github.com
PromptPack is a compact CLI tool designed to convert a list of files into a prompt for an LLM. It is available on NPM and can be installed globally or run directly using a preferred package manager.

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.
View Full Article

Comments (0)

Be the first to comment!