An intelligent coding practice tool that leverages OpenAI to generate coding challenges, evaluate solutions, and provide detailed feedback. It helps developers improve their coding skills through interactive practice sessions with AI-generated exercises.
- 💻 Various programming concepts
- 📊 Detailed feedback and scoring
- 🔄 Interactive practice sessions
- 🎓 Educational feedback with specific improvements
- Clone the repository:
git clone https://github.com/mihirrd/aide.git
cd aide- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install required packages:
pip3 install -r requirements.txt- Create .env file
- Set up your API keys as environment variables:
export OPENAI_API_KEY='your-openai-key'set OPENAI_API_KEY=your-openai-key- Run the tool:
python run.py-
Choose a programming language and Programming concept from the available options.
-
Review the generated code challenge and implement your solution.
-
Type 'DONE' on a new line when finished with your solution.
-
Review your feedback and score.
Add new concepts to the programming_concepts list in the CodePracticeTool class:
self.programming_concepts = [
"existing_concept",
"new_concept_1",
"new_concept_2"
]-
API Key Errors
- Ensure environment variables are set correctly
- Verify API keys are valid and have necessary permissions
-
JSON Parsing Errors
- The tool includes fallback JSON extraction
- Check if your selected LLM provider is returning valid JSON
-
Network Issues
- Verify internet connection
- Check if the LLM provider's service is available
If you encounter issues:
- Check the error message for specific details
- Verify your configuration
- Check the provider's API documentation
- Report issues on the project's GitHub page
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request