Skip to content

Many command line tools, bookmarklets and apps for productivity using the OpenAI chat completion API that models ChatGPT

License

Notifications You must be signed in to change notification settings

stoerr/chatGPTtools

Repository files navigation

My ChatGPT tools

These are some of growing set of tools and experiments around ChatGPT. I started writing this for my own use in my sparetime and am extending it whenever I need something, but most of that is already pretty stable, so you are welcome to use them, too! I'll mark things that are new and thus unstable. As far as the tools are web-based, they are deployed at the Github site of this project.

https://chatGPTtools.stoerr.net/chatgpttools/0README.html If you'd like to know what I'm professionally doing with ChatGPT, this might be more interesting for you.

If you find something interesting, please contact me! You will also find many ChatGPT related things on my Blog , and there is also my Developers Tool Bench which I'm growing.

Disclaimer: You know how it is - this is one of my sparetime projects and you're not paying me for that, so no warranties. But please do send me bug reports and suggestions.

I'm happy if you use it, I'm even happier if you tell me about your experiences and maybe some successful prompts or prompt fragments you used, and I'll jump up and down with joy if you link to my project or post about it somewhere. :-)

By the way: if you like to use AI for software development, you might like some of my other ai tools like the Co-Developer GPT engine, with which you let ChatGPT look at your local projects and help you with your coding, including modifing your code and run and fix builds, or the AI based code generation pipeline - a command line tool that can support you in systematically using AI to generate code / documentation during software development.

What's here

  • bin/ contains a number of scripts around ChatGPT that help me in my daily work and might be interesting for you. See below (script list). Mostly for accessing various OpenAI APIs, but can sometimes also be used for compatible APIs.
  • public/ contains some pages that I often use to access ChatGPT quickly - the [chat.openai.com] (https://chat.openai.com/) interface is a bit annoying at times. See [public/0README.html].
  • docs/ has stuff that is available at https://chatGPTtools.stoerr.net/ - see below.
  • templates/ some templates for use with bin/chatgptapplytemplate - basically an extended prompt with examples for ChatGPT to do something given a file.
  • [personal/] contains an experiment to create a quick chat interface that supplies ChatGPT with a kind of long term memory.
  • ChatGPTTricks.md contains a growing number of tipps and tricks around using ChatGPT and Github Copilot as a software developer etc. I intend to collect there much of the ChatGPT section in [my blog] (http://www.stoerr.net/blog.html), in short form.

Bookmarklets deployed at https://chatGPTtools.stoerr.net/

  • The ChatGPT Bookmarklet lets you summarize any webpage using ChatGPT, ask questions and more.
  • The Grab Styles Bookmarklet lets you select an element from a page and extract it's HTML and applying CSS rules,
  • e.g. to ask ChatGPT questions about it.
  • There is also a Dictation App that uses the OpenAI whisper API to transcribe your speech into a textarea.

Script list in bin/

There is a couple of scripts in bin/ which you might like. The main script is chatgpt , which allows to access ChatGPT chat completion API from the command line in various ways; the other scripts usually use that for the AI functions. Here is a list of the scripts, of course generated by ChatGPT through project-bin/_makescriptlist using AI Code Generation Pipeline :-)

  • a4ocr Converts scanned A4 images into markdown format using optical character recognition.
  • chatgpt Submits prompts for processing and manages conversation states, allowing for various input formats and response configurations.
  • chatgptapplytemplate Applies a specified template to a given file and outputs the result.
  • chatgptcreateimage Generates an image based on a textual prompt using OpenAI's DALL-E 3 model.
  • chatgptdictate Records audio from the microphone and converts it to text.
  • chatgptembedding Generates embeddings for text input using a specified model.
  • chatgptextractcodeblock Extracts and prints the contents of a code block delimited by triple backticks from standard input.
  • chatgptfixfile A script to modify a file based on a provided prompt and display the differences from the original.
  • chatgptjq Extracts and processes JSON data from standard input or a specified file using a dynamically generated jq command.
  • chatgptlistmodels Lists all available models for use.
  • chatgptpromptlib Retrieves and outputs prompt fragments based on specified keys or search criteria from a designated library.
  • chatgptsearchascript This script searches for a suitable command line utility to perform a specified task based on a given description.
  • chatgptspeak Generates audio from input text using text-to-speech models.
  • chatgptsummarizefile Creates a summary of a specified file.
  • chatgptsummarizeurl Fetches the content of a URL and summarizes the text.
  • chatgpttokentool Counts, estimates, and manipulates tokenized text from an input file.
  • chatgpttranscription Transcribes audio files into text format using a specified model and language.
  • claude claude - Submits a prompt for conversation and prints the response to standard output.
  • createJavaUnittest Generates a JUnit 4 test for a specified Java file.
  • findfilewithpattern findfilewithpattern searches for files matching a specified IntelliJ style pattern.
  • findprogram Searches for programs in the PATH based on a given description of their functionality.
  • q Asks for a quick answer to a given prompt.
  • qa Asks for a quick answer using audio input to dictate the prompt.
  • suggestbash Generates a command line based on a provided task description and manages conversation states.
  • suggestfish Generates a fish command line based on a provided task description.
  • toolsconfigFromCodevActions Prints a configuration file usable with specified tools based on conventions for actions in the Co-Developer GPT Engine.
  • urltotext Fetches the content of a URL and outputs it as plain text with metadata.

About

Many command line tools, bookmarklets and apps for productivity using the OpenAI chat completion API that models ChatGPT

Topics

Resources

License

Stars

Watchers

Forks