BOB AI is an advanced local artificial intelligence system designed to understand, generate, and interact with programming code across multiple languages. It serves as your personal programming assistant with capabilities in code analysis, generation, and screen interaction.
- Multi-language support (Python, JavaScript, Java, C++, Rust, Go)
- Intelligent code parsing and understanding
- Template-based code generation
- Automatic code formatting
- Syntax validation and optimization
- Real-time screen capture and analysis
- OCR capabilities for code recognition
- UI element detection and interaction
- Visual feedback system
- Repository analysis and pattern recognition
- Continuous learning from user interactions
- Extensible knowledge base
- Automated improvement system
- Python 3.8 or higher
- CUDA-compatible GPU (recommended)
- 16GB RAM minimum
- SSD Storage
# Clone the repository
git clone https://github.com/yourusername/bob-ai.git
cd bob-ai
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt# Install language-specific formatters
pip install black # Python formatter
npm install -g prettier # JavaScript formatter
sudo apt-get install clang-format # C++ formatter (Linux)from bob_ai.core import BOBController
# Initialize BOB AI
bob = BOBController()
# Analyze code
analysis = bob.analyze_code("your_code_here")
# Generate code
new_code = bob.generate_code("create a function that sorts a list")
# Screen interaction
bob.capture_screen()
bob.detect_elements()# Generate a Python function
code = bob.generate_code("""
Create a function that:
- Takes a list of numbers
- Removes duplicates
- Sorts in descending order
- Returns the top 5 elements
""", language="python")
print(code)# Learn from a GitHub repository
bob.learn_from_repository("https://github.com/username/repo")
# Get insights
insights = bob.get_repo_insights()bob_ai/
โโโ core/ # Core functionality
โโโ analyzers/ # Code analysis modules
โโโ generators/ # Code generation modules
โโโ screen/ # Screen interaction components
โโโ learning/ # Learning system modules
โโโ models/ # ML models
โโโ templates/ # Code templates
โโโ utils/ # Utility functions
Create a config.yaml file in the project root:
languages:
enabled:
- python
- javascript
- java
- cpp
- rust
- go
screen:
capture_interval: 0.1
confidence_threshold: 0.8
ocr_lang: eng
learning:
repo_limit: 10
analysis_depth: 3
update_interval: 86400# Run all tests
pytest tests/
# Run specific test category
pytest tests/test_analyzer.py# Generate documentation
cd docs
make html- Fork the repository
- Create your 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.
- Microsoft's CodeBERT for code understanding models
- OpenAI's GPT for inspiration in code generation
- The open-source community for various tools and libraries
- High memory usage with large repositories
- OCR accuracy limitations with certain fonts
- Performance impact on systems without GPU
- IDE integration plugins
- Voice command support
- Extended language support
- Cloud sync capabilities
- Collaborative features
- Project Link: https://github.com/yourusername/bob-ai
- Documentation: https://bob-ai.readthedocs.io/
- Issues: https://github.com/yourusername/bob-ai/issues
Made with โค๏ธ by [Homer]# Bob