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.1.0.tar.gz (13.7 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.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for promptdump-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5042fa574529d3a3a5faf4309d70bd6aa33b54bb7317207c3527bf9c70a758d
MD5 83cfd73a2cf4a0e8b79dd32512ba9365
BLAKE2b-256 7db5a038d9ffdfeb3f28a99e0427388ce2013e606ab0de153348bf7d0cc2ec80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: promptdump-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for promptdump-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 968bfc2802e29d541b4c294707aed223a0794303444efba1e582d601c9999396
MD5 35210e5ca9c552c74ca07c3c6b984839
BLAKE2b-256 afd7b37085e9dc479b126a52f7f8fe224348bc465548846d6e6874f767d0ebb2

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