An AI-powered Go programming tool that helps you generate Go programs based on text assignments.
Toy Programmer is an advanced tool built with Dagger that leverages AI to automatically generate Go programs from text descriptions. It consists of two main modules:
- ToyProgrammer: The main application that takes programming assignments as input and generates Go code.
- ToyWorkspace: A supporting module that provides a containerized environment for code generation and testing.
- AI-Powered Code Generation: Generate Go programs from simple text descriptions
- Containerized Environments: Uses Docker containers for isolated development
- QA Automation: Optional AI-driven QA testing for generated code
- Build Verification: Ensures generated code builds successfully
- Go 1.23.2+
- Dagger (v0.17.0-llm.4+)
- Docker
Clone the repository:
git clone https://github.com/yourusername/toy-programmer.git
cd toy-programmer
// Create an instance of ToyProgrammer
programmer := &ToyProgrammer{}
// Generate a Go program based on an assignment
result := programmer.GoProgram("write a simple HTTP server", false)
// Create an instance of ToyProgrammer
programmer := &ToyProgrammer{}
// Generate a Go program with QA testing
result := programmer.GoProgram("write a simple HTTP server", true)
- The user provides a programming assignment as a text description
- ToyProgrammer uses an AI model to interpret the assignment
- The AI generates Go code in a ToyWorkspace container
- The code is built to ensure it compiles successfully
- If QA testing is enabled, another AI instance tests and documents the functionality
main.go
: Contains the ToyProgrammer implementationtoy-workspace/
: Contains the ToyWorkspace implementationinternal/
: Internal packages and generated code
This project includes AI-assisted development tools in the .ai
folder for improving code quality and consistency. See .ai/README.md for details.
[Add license information here]
[Add contribution guidelines here]