Skip to main content

A command-line tool to quickly gather and format code for AI prompts

Project description

Promptdump

A command-line tool to quickly gather and format code and directory structures for AI prompts. This can be useful for creating prompts for e.g. Google AI Studio, which has a large context limit.

  • 📁 Formats the relevant files in an entire codebase into a prompt.
  • 📋 Copies output to clipboard by default for quick pasting into AI tools.

Installation

# Install using pipx (recommended)
pipx install promptdump

# Or run without installing
uvx promptdump

Usage

Examples

Scan current directory (default extensions: .md, .py, .cpp, .hpp, .js, .ts, .java, .go, .rs, .c, .h) and copy to clipboard:

promptdump

Scan specific file types:

# Only Python and JavaScript files
promptdump .py .js

Include specific files by name:

# Include specific files regardless of extension
promptdump -f pyproject.toml README.md

Combine file types and specific files:

# Include Python files and specific config files
promptdump .py -f requirements.txt config.json

Scan a different directory:

promptdump -d /path/to/project

Save output to a file:

promptdump -o output.txt

Save output to stdout (useful for piping to other commands):

promptdump -o -

Use a custom exclude file (default: .gitignore):

promptdump -e .gitignore_custom

Enable verbose output:

promptdump -v

Options

  • [EXTENSIONS] - File extensions to include (e.g., .py .js .ts)
  • -f, --files [FILES ...] - Include specific files by name (e.g., README.md) AI- -d, --directory PATH - Directory to scan (default: current directory)
  • -o, --output FILE - Write output to file instead of clipboard
  • -e, --exclude FILE - File containing patterns to exclude (default: .gitignore)
  • -v, --verbose - Enable verbose output
  • --help - Show help message and exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptdump-0.2.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptdump-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file promptdump-0.2.0.tar.gz.

File metadata

  • Download URL: promptdump-0.2.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for promptdump-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3f540a6b0abaa813dd5244396c8e6daf4a5f438e8af3bcb6e07e9fb512d7253d
MD5 adc1c3b2af8bce49bb7d08f1701db7f3
BLAKE2b-256 c6932fbfddb82c5d5348a102acd7c400a996fb3d412147bffead16d9218c6566

See more details on using hashes here.

File details

Details for the file promptdump-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for promptdump-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 931421cf735a2b1cdf160b815073dcc9dbd59308c9172ee9b17f273bcc7466df
MD5 a5e7563c946c7be7988524e1370bddf3
BLAKE2b-256 b8bed28e9c4e0e41e920800de1b5521003566d5f5bb8b6a031266db2dbabeb60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page