Skip to content

andyjessop/builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Builder

Note: This entire project has been generated by AI, through an iterative process whereby it constantly improves itself in response to user direction via the prompt.

Overview

The Builder project is a Go program that automates the process of generating and updating code based on user prompts. It leverages the power of AI to generate code and README files, making it easier for developers to iterate on their projects.

Features

  • Generates code based on user prompts
  • Overwrites specified files with the generated code
  • Creates a new Git branch for each code generation iteration
  • Generates a README.md file describing the purpose and functionality of the main code file
  • Utilizes the Anthropic API for AI-powered code generation
  • Handles API errors and retries failed requests
  • Escapes and unescapes HTML entities in the generated code
  • Trims unnecessary whitespace and backticks from the generated code

Usage

  1. Set the API_KEY environment variable in a .env file.
  2. Run the program with the --file flag to specify the file path to overwrite with the generated code.
  3. Enter a prompt describing the desired changes or additions to the code.
  4. The program will generate new code based on the prompt and overwrite the specified file.
  5. A new Git branch will be created with the generated code and README.md file.
  6. The changes will be committed to the new branch.

Configuration

  • API_KEY: The API key for the Anthropic API, set in the .env file.
  • --file: The file path to overwrite with the generated code (default: ./main.go).

Dependencies

Contributing

Contributions to the Builder project are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on the project's GitHub repository.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages