π€ AI-Powered Git Conversations | Transform your Git experience with natural language assistance
Built for the OpenAI Hackathon - An intelligent Git workflow assistant that understands natural language and provides smart Git command suggestions.
- Natural Language Interface: Ask questions like "How do I commit my changes?" or "I want to undo my last commit"
- Context-Aware Suggestions: AI understands your repository state and provides personalized advice
- Safety Validations: Prevents destructive operations with intelligent warnings
- Interactive Chat: Real-time conversations with your AI Git assistant
- Intelligent Commit Messages: AI analyzes code changes and generates meaningful commit messages
- Workflow Detection: Automatically detects GitFlow, GitHub Flow, and other workflows
- Branch Management: Smart suggestions for creating, merging, and managing branches
- Conflict Resolution: AI-guided merge conflict resolution
- Risk Assessment: Commands are categorized as safe, moderate, or destructive
- Confirmation Prompts: Destructive operations require explicit confirmation
- Alternative Suggestions: Safer alternatives for risky operations
- Rollback Guidance: Help with undoing operations when needed
- Python 3.13+
- Git repository
- Internet connection (for AI model download)
- Clone the repository
git clone https://github.com/TheCoder2010-create/gitflow-ai-.git
cd gitflow-ai-- Install dependencies
pip install -r requirements.txt- Initialize GitFlow AI
python gitflow_cli.py init# Ask AI about Git operations
python gitflow_cli.py ask "How do I commit my changes?"
# Interactive conversation mode
python gitflow_cli.py ask --interactive
# Get enhanced Git status
python gitflow_cli.py status
# Run demo
python gitflow_cli.py demo# Start the web server
python web/api.py
# Open browser to http://localhost:5000The web interface provides a beautiful, interactive experience:
- Landing Page: Professional SaaS-style presentation
- AI Chat Modal: Real-time conversations with the AI assistant
- Interactive Demos: Click feature cards to try functionality
- Quick Actions: Common Git operations at your fingertips
POST /api/ask- AI conversation endpointGET /api/status- Repository statusPOST /api/commit- Commit message generationGET /api/demo- Demo conversationsGET /api/health- Health check
GitFlow AI/
βββ src/
β βββ gitflow_ai.py # Core AI system
βββ web/
β βββ index.html # Landing page
β βββ styles.css # Styling
β βββ script.js # Frontend logic
β βββ api.py # Flask API server
βββ .kiro/specs/ # Project specifications
βββ gitflow_cli.py # CLI interface
βββ requirements.txt # Dependencies
βββ README.md # This file
- GitStateAnalyzer: Analyzes repository state
- GPTModelService: Manages AI model interactions
- GitCommandParser: Parses natural language to Git commands
- SimpleGitAI: Main conversation system
- Flask API: Web service layer
- Interactive Frontend: Modern web interface
# Test AI conversation system
python test_ai_conversation.py
# Test API integration
python test_api_integration.py
# Test CLI functionality
python gitflow_cli.py demoUser: "How do I commit my changes?" AI: I understand you want to commit your staged changes. Here's what I suggest:
- β
git commit -m "your message"- This will create a new commit with your staged changes.
User: "I want to undo my last commit but keep the changes" AI: I understand you want to undo the last commit while preserving your changes:
- π¨
git reset --soft HEAD~1- This removes the last commit but keeps your changes in the staging area. β οΈ Warning: This is a destructive operation!
python web/api.py- Vercel: Deploy the web folder
- Heroku: Use the included Procfile
- Docker: Containerized deployment ready
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This project was built for the OpenAI Hackathon to demonstrate:
- AI-Powered Developer Tools: Natural language interfaces for technical tasks
- GPT-OSS Integration: Using open-source language models effectively
- User Experience: Making complex Git operations accessible to all developers
- Safety & Reliability: AI systems that prevent user errors
- Live Demo: GitFlow AI Demo
- Documentation: Full Docs
- API Reference: API Docs
- Hackathon Submission: OpenAI Hackathon
Manav Sutar
- GitHub: @TheCoder2010-create
- Email: sutarmanav557@gmail.com
- OpenAI for the hackathon opportunity
- Hugging Face for transformer models
- The open-source community for amazing tools
- Git for being the foundation of modern development
Built with β€οΈ for developers who want to Git things done faster! π


