
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
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
codemancerwith our own (free but rate-limited) OpenAI GPT-4 proxy.
https://user-images.githubusercontent.com/1714782/227892213-8cfdcbdb-3dae-4043-b155-9164e1104bc1.mp4
npm install -g codemancer
To use codemancer with your own OpenAI API key, you need to set the OPENAI_API_KEY environment variable.
export OPENAI_API_KEY=your_api_key_here
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.
Modify a file in-place based on a prompt, useful for iterating on functionality, addressing review comments, resolving conflicts, or refactoring.
codemancer -i input_file_path -p "break the /recipe/<id> route into /recipe/<id>/info and /recipe/<id>/image"
Useful for generating a new file with similar functionality, readmes, or interface definitions (e.g. rpc).
codemancer -i input_file_path -o output_file_path -p "extract inlined types into interfaces in a separate file"
For generating blank slate code for new projects, one-offs, or scripts.
codemancer -o output_file_path -p "I need an AppleScript to wipe Safari history on restart"
Ask questions, get answers and suggestions.
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.
FAQs
Code with GPT-4 from your command line
The npm package codemancer receives a total of 2 weekly downloads. As such, codemancer popularity was classified as not popular.
We found that codemancer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.