codemancer is a command line tool that uses the OpenAI API
to generate code based on a given prompt and input file. It can change
code in-place or create brand new files.
You can use it as a versatile and efficient AI-powered programming assistant that simplifies code generation, streamlines development tasks, and boosts productivity.
💫 You can now try
codemancer with our own (free but
rate-limited) OpenAI proxy, with GPT-4 enabled.
npm install -g codemancer
your own OpenAI API key, you need to set the
OPENAI_API_KEY environment variable.
codemancer works best using GPT-4, and will use it by
default. If you do not have access and receive a 404, you can use the
GPT-3.5 model instead via
-m "gpt-3.5-turbo", but code
generations will be much less reliable.
codemancer -i input_file_path -p "break the /recipe/<id> route into /recipe/<id>/info and /recipe/<id>/image"
codemancer -i input_file_path -o output_file_path -p "extract inlined types into interfaces in a separate file"
codemancer -o output_file_path -p "I need an AppleScript to wipe Safari history on restart"
codemancer -p "what's a bulletproof regex for validating emails"
codemancer -i input_file_path -m gpt-3.5-turbo -t 0.5 -p "change all variable names to obscure animals"
GPL License - This code was largely written by AI with some human guidance.