A specialized AI agent for Git repository management, optimized for AMD Ryzen™ AI PCs with NPU acceleration.
- Natural Language Processing: Ask Git questions in plain English
- Smart Command Generation: Get context-aware Git command suggestions
- Safe Execution: Interactive confirmation before running commands
- NPU Accelerated: Optimized for AMD Ryzen AI processors
- Real-time Analysis: Instant repository context awareness
- Educational Explanations: Understand the "why" behind commands
- AMD Ryzen™ AI PC with NPU and iGPU
- Windows 10 or newer
- Python 3.10
- Git 2.40.1+
- Ryzen AI Software
-
Setup Ryzen AI Environment
Follow the official Qwen1.5-7B-Chat Setup Guide -
Clone Repository
git clone https://github.com/yourusername/gitbot-amd.git cd gitbot-amd -
Install Dependencies
pip install -r requirements.txt
Start the GitBot:
python main.pyUser: How to add all untracked files and enter custom commit message 'add new gamma branch'?
LLM: To add all untracked files and create a commit...
Cleaned commands: ['git add .', 'git commit -m "Add new gamma branch"']
Do you want to run: `git add .`? [Y/N] y
Running: git add .
Do you want to run: `git commit -m "Add new gamma branch"`? [Y/N] y
Running: git commit -m "Add new gamma branch"
quit: Exit the programexec: Execute extracted commands from previous response
-
Context Analysis
- Scans repository using
GitRepoParser - Builds detailed context snapshot
- Scans repository using
-
AI Processing
- Utilizes Qwen1.5-7B-Chat model
- NPU-accelerated inference
- Hybrid ONNX runtime
-
Command Handling
LoadingsequenceDiagram User->>+GitBot: Natural Language Query GitBot->>+NPU: Process Query NPU-->>-GitBot: Formatted Response GitBot->>User: Show Commands User->>GitBot: exec/confirm GitBot->>Git: Execute Verified Commands -
Safety Features
- Regex-based command validation
- Interactive confirmation flow
- Command sanitization
- Currently CLI-only interface
- Requires specific AMD hardware
- Limited to Git operations
- English-only queries (v1.0)
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
Apache 2.0 - See LICENSE for details
- AMD Ryzen AI Software Team
- Hugging Face Transformers Library
- ONNX Runtime Team