gptswe is a command-line tool that converts the contents of a Git repository into a text format readable by large language models like GPT-4, adds a p

GitHub - lwneal/gptswe: The GPT Software Engineer command-line tool

submited by
Style Pass
2023-03-17 20:00:14

gptswe is a command-line tool that converts the contents of a Git repository into a text format readable by large language models like GPT-4, adds a prompt telling the AI what to do, and copies the whole thing into your clipboard so you can paste it into a chat window.

When the AI has finished doing your work for you, follow its instructions and copy and paste its generated code back into your text editor as needed.

Run the command again with -m | sh to automatically generate a commit message crediting GPT-4 as the author (and yourself as the reviewer).

If no instructions are provided, gptswe will default to the prompt Identify and fix any obvious bugs in a terse but elegant style. Output a brief explanation of each fix.

By default, gptswe will warn if your total input (files plus prompt) is over 4097 tokens (the limit for GPT-3.5-turbo). Adjust this limit with --max-tokens

Output to stdout (default), to a file (using -o output.txt) or directly to the clipboard (using -c). Uses pyperclip for clipboard access.

Leave a Comment