Skip to content

angusgee/proompt-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proompt Cat

npm versionLicensenpm downloads

Turbocharge your software development workflows by leveraging the power of AI.

When seeking coding help from AI models like GPT-4, you want to:

  1. Give the model as much relevant context as possible without exceeding the token limit.
  2. Name your files and use delimiters to help the AI understand the content.
  3. Explicitly instruct the model with clear and unambiguous prompts.

However, copying your project files, naming them, and delimiting them manually, is time consuming.

Also, you won't know you're going to exceed the token limit until you do:

ChatGPT exceeded token limit error message

⚡ The Solution ⚡

Proompt Cat solves these issues for you.

Run the script from your folder and select the files you want to include. The token count is dynamically updated:

Proompt Cat CLI - choose files

Next, choose to add on a pre-proompt:

Proompt Cat CLI - choose a prompt

The contents of your project files are individually named, delimited, and concatenated together, then copied to your clipboard.

You get the optimum context from your project with only a few key presses. 🚀🚀

Remember to paste in your requirements or error messages into the LLM chat window if you chose 5. or 6:

ChatGPT window with placeholder text showing

ChatGPT window with error message pasted into prompt

💡 Pro tip: iterate! It pays to have the AI check its answers. You can also combine prompts - first review your code for bugs, then again for vulnerabilities, and so on.

Getting started

  1. Start by running this command to install the tool globally using npm.
npm install -g proompt-cat
  1. Now you should be able to run the script from any project folder.
proompt-cat

Contributing and Reporting Bugs

We welcome contributions to Proompt Cat and appreciate your help in making this tool even more money 💲💲!

Here's how you can contribute or report bugs:

Reporting Bugs

If you encounter a bug or unexpected behavior:

  1. First, check the existing issues to see if the bug has already been reported.
  2. If not, open a new issue.
  3. Provide a clear and descriptive title.
  4. In the description, include:
    • Steps to reproduce the bug
    • Expected behavior
    • Actual behavior
    • Your operating system and Node.js version
    • Any relevant error messages or screenshots

Contributing Code

If you'd like to contribute code:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes, ensuring you follow the project's coding style.
  4. Add or update tests as necessary.
  5. Ensure all tests pass by running npm test.
  6. Commit your changes with a clear and descriptive commit message.
  7. Push your branch to your fork.
  8. Open a pull request against the main repository's main branch.

Suggesting Enhancements

Have an idea to improve Proompt Cat?

  1. Open a new issue.
  2. Label it as an enhancement.
  3. Clearly describe your suggestion, including:
    • The problem it solves
    • How it should work
    • Any potential drawbacks

We appreciate your contributions!

About

Command line tool for improved AI workflows

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published