Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

promptfusion

agency-kit9MIT1.0.2

A CLI tool to concatenate all text files in your CWD with headers for GPT prompt engineering.

text, concatenate, CLI, Current Working Directory, GPT, tokens, tokenizer, ChatGPT, prompt engineering, token-count, text manipulation, file concatenation, command line interface, GPT-3, prompt generation, AI text processing, natural language processing, NLP tools, content assembly, bulk text processing, script automation, developer tools, code generation, data preprocessing, machine learning utilities, GPT prompt toolkit, text preprocessing, automated concatenation, programming productivity, text analysis tools, text transformation, file processing utility, openai integration, language model preparation, content generation, text batching, text utilities, software development tools, text parsing, batch processing

readme

promptfusion

It copies entire directory contents to your clipboard for pasting into prompts.

  • Automatically bails if the contents will be more than the GPT-4 token limit.
  • Any file it ignores, it still adds them to the list of files for complete context.
  • copy out just a pretty directory tree if you want that for context (it's appended to the full contents string by default).
  • Ignores:
    • common media formats
    • common lock files

Usage

npm i -g promptfusion

Simply, promptf will copy all CWD contents to your clipboard.

Options:

promptf input output like this promptf ./src ./my-output.txt

If you put an output file path it will write to that text file, not copy to clipboard.

promptf --map to copy the directory tree only.

Todo

Rewrite in Rust. Just kidding, it's pretty fast.


<written by 🤖>

changelog

promptfusion

1.0.2

Patch Changes

  • Update package information and add license.

1.0.1

Patch Changes

  • Convert project to Typescript