An intelligent code helper application built with Streamlit that combines a live code editor, terminal execution, and AI-powered assistance for multiple programming languages.
- 📝 Interactive Code Editor - Syntax highlighting for Python, JavaScript, Java, C++, and Go
- ⚡ Live Code Execution - Run Python code instantly with real-time output
- 🤖 AI Assistant - Get intelligent help with coding questions and debugging
- 💬 Chat Interface - Persistent conversation history with context awareness
- 🔧 Terminal Integration - Execute code with proper error handling and timeout protection
- 🎛️ Customizable Settings - Toggle between explanation modes and clear chat history
Clean and intuitive interface with code editor, terminal, and chat
Structured responses with analysis, code fixes, and explanations
- Clone the repository
git clone https://github.com/hari7261/CodeMaster-LLM.git
cd CodeMaster-LLM
- Install dependencies
pip install -r requirements.txt
- Install Ollama (for AI functionality)
- Download from ollama.ai
- Install the required model:
ollama pull gemma3
- Run the application
streamlit run app.py
Create a requirements.txt
file with:
streamlit>=1.46.0
ollama>=0.5.0
streamlit-code-editor>=0.1.22
- Code Editor: Write your code in the left panel with syntax highlighting
- Run Code: Click "Run Code" to execute Python scripts in the terminal
- AI Chat: Ask questions about programming, get code fixes, and explanations
- Settings: Toggle explanation modes and manage chat history
The AI provides structured responses:
- Analysis: Problem identification
- Explanation: What's wrong and why
- Code: Clean solution with minimal comments
- Implementation: How the fix works
- Summary: Key takeaways
- Problem: Quick issue identification
- Code: Direct solution
- Summary: Brief explanation
- Python Path: Automatically detects your Python installation
- Timeout: 10-second execution limit for safety
- Languages: Support for Python execution (others for syntax highlighting)
- AI Model: Uses Gemma3 via Ollama
CodeMaster-LLM/
├── app.py # Main Streamlit application
├── requirements.txt # Python dependencies
├── README.md # Project documentation
├── screenshot1.png # Interface screenshot
└── screenshot2.png # AI assistant screenshot
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Streamlit - For the amazing web framework
- Ollama - For local AI model execution
- streamlit-code-editor - For the code editor component
Hariom Kumar - @hari7261
Project Link: https://github.com/hari7261/CodeMaster-LLM
⭐ If you found this project helpful, please give it a star!