https://github.com/3rd/promptpack
CLI tool for packing files into a prompt for LLM usage.
https://github.com/3rd/promptpack
Last synced: about 2 months ago
JSON representation
CLI tool for packing files into a prompt for LLM usage.
- Host: GitHub
- URL: https://github.com/3rd/promptpack
- Owner: 3rd
- Created: 2023-12-29T13:09:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-06-27T23:45:39.000Z (10 months ago)
- Last Synced: 2025-10-05T02:25:58.432Z (7 months ago)
- Language: TypeScript
- Size: 397 KB
- Stars: 57
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📦 PromptPack
PromptPack is a small CLI tool that helps you turn a list of files into a prompt that you can feed into an LLM.
https://github.com/3rd/promptpack/assets/59587503/0c243caf-fbd2-4f2e-a343-fac2b089a4ff
## Installation
PromptPack is hosted on NPM, so you can either:
- install `promptpack` globally with your preferred package manager (ex. `npm install -g promptpack`)
- or run it directly with `npx/pnpx/bunx promptpack`
## Usage
**Interactive mode**
This is the default (any only right now) mode, which lets you interactively navigate, select, and package files into a prompt, and copy it to the system clipboard.
Navigate up and down with arrows or `k`/`j`, expand/collapse directories with `Tab` or `Enter`, mark the files you want to include with `Space`, and press `y` to copy the prompt.
Tokens are estimated for GPT-4/GPT-3.5 using [https://github.com/dqbd/tiktoken](https://github.com/dqbd/tiktoken).