Skip to content

AIMLDev726/maahelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MaaHelper v1.0.0

Advanced AI-Powered Coding Assistant with Real-time Analysis & Git Integration

Created by Meet Solanki (AIML Student)

PyPI version

Python 3.8+

License: MIT

✨ Features

🎯 Core Features

  • 🎨 Rich CLI: Real-time streaming, beautiful panels, markdown/code rendering

  • πŸ€– Multi-Provider AI: OpenAI, Groq, Anthropic, Google, Ollama

  • πŸ“ AI File Analysis: file-search <filepath> for code/data/doc files

  • πŸ” Secure API Key Management: Local encrypted storage in C:/Users/<username>/.maahelper/

  • πŸ’¬ Interactive Chat: Persistent conversation history, context-aware

  • πŸš€ Async Performance: Fast streaming, low memory, instant startup

  • πŸ“Š Live Stats: Session, file, and model metrics

πŸ†• New in v1.0.0

  • πŸ€– Custom Agent Prompts (Vibecoding): Specialized AI workflows for coding tasks

  • πŸ” Dynamic Model Discovery: Auto-fetch latest models from all providers

  • πŸ“Š Real-time Code Analysis: Live error detection and suggestions

  • πŸ”§ Smart Git Integration: AI-powered commit messages and branch suggestions

  • ⚑ Enhanced Performance: Rate limiting, memory management, and caching

πŸš€ Quick Start

Installation

pip install maahelper

πŸ““ Complete Tutorial

NEW: Interactive Jupyter notebook with step-by-step guide!

# Download and run the complete tutorial

jupyter notebook MaaHelper_Getting_Started.ipynb

The notebook covers:

  • βœ… Installation & API key setup

  • βœ… Basic to advanced usage

  • βœ… All new v0.0.5 features

  • βœ… Pro tips and workflows

Usage

# Start the CLI

maahelper



# Try new v0.0.5 commands

> prompts             # πŸ†• List custom AI agent prompts

> code-review         # πŸ†• AI-powered code review

> bug-analysis        # πŸ†• Deep bug analysis

> discover-models     # Auto-discover latest AI models

> analyze-start       # Start real-time code analysis

> git-commit          # AI-powered smart commits



# Or run via Python

python -m maahelper.cli.modern_enhanced_cli

API Key Setup

On first run, you'll be prompted to enter API keys for Groq, OpenAI, etc. These are securely stored in:


C:/Users/<username>/.maahelper/config.json

You can manage, edit, or delete keys via the Rich UI manager:

maahelper-keys

🎯 Core Commands

Basic

  • help β€” Show help

  • exit, quit, bye β€” Exit

  • clear β€” Clear history

  • status β€” Show config

File

  • file-search <filepath> β€” AI file analysis

  • files β€” Show files

  • dir β€” Show directory

Config

  • providers β€” List providers

  • models β€” List models

πŸ€– Supported AI Providers

Provider Models Notes
Groq Llama 3.1, Llama 3.2, Mixtral, Gemma ⚑ Fastest & Free
OpenAI GPT-4, GPT-3.5-turbo 🧠 Most capable
Anthropic Claude 3, Claude 2 πŸ“ Great for analysis
Google Gemini Pro, Gemini Flash πŸ” Multimodal support
Ollama Local models 🏠 Privacy-focused

πŸ“ File Analysis Example

You: file-search src/main.py



πŸ€– AI Assistant

Analyzing your Python file...



File Analysis: src/main.py



File Type: Python Source Code

Size: 1.2KB

Language: Python 3.8+



### Key Components:

- Main Function: Entry point with argument parsing

- Error Handling: Comprehensive try-catch blocks

- Dependencies: requests, json, argparse



### Code Quality:

βœ… Good Clean structure and readable code

⚠️ Suggestion: Add type hints for better maintainability

⚠️ Suggestion: Consider adding docstrings



### Recommendations:

1. Add input validation for user arguments

2. Implement logging for better debugging

3. Consider async/await for API calls

🎨 Rich CLI Features

  • Live Streaming: See AI responses in real-time

  • Syntax Highlighting: Code blocks with proper formatting

  • Progress Indicators: Visual feedback for operations

  • Interactive Menus: Beautiful provider and model selection

  • Error Handling: Elegant error messages with helpful suggestions

πŸ”§ Configuration

API Key Management

MaaHelper uses a secure local configuration system:


C:\Users\{username}\.maahelper\

β”œβ”€β”€ config.json          # Encrypted API keys

β”œβ”€β”€ conversation_history/ # Chat sessions

└── logs/                # Application logs

Environment Variables

# Recommended method

export GROQ_API_KEY="gsk_..."

export OPENAI_API_KEY="sk-..."

export ANTHROPIC_API_KEY="sk-ant-..."

export GOOGLE_API_KEY="AIza..."

πŸ“Š Performance

  • Streaming Speed: Up to 500+ tokens/second with Groq

  • Memory Usage: < 50MB typical usage

  • Startup Time: < 2 seconds cold start

  • File Analysis: Processes files up to 10MB

πŸ› οΈ Development

Requirements

  • Python 3.8+

  • Rich >= 13.0.0

  • OpenAI >= 1.0.0

  • Cryptography >= 3.4.0

Installation for Development

git clone https://github.com/AIMLDev726/maahelper.git

cd maahelper

pip install -e .

πŸ“ Examples

Basic Chat

You: Explain async/await in Python



πŸ€– AI Assistant

# Async/Await in Python



**Async/await** is Python's way of handling asynchronous programming...

File Analysis

You: file-search requirements.txt



πŸ€– AI Assistant

## Dependency Analysis



Your project has **12 dependencies**:

- **Core**: openai, rich, cryptography

- **Optional**: anthropic, google-generativeai

- **Development**: pytest, black, flake8

Code Review

You: Review this function for bugs



πŸ€– AI Assistant

## Code Review Results



βœ… **Good Practices**:

- Clear function naming

- Proper error handling



⚠️ **Issues Found**:

- Missing input validation on line 15

- Potential memory leak in loop (line 23)

Demo Video

Watch the demo

πŸ“š Documentation

πŸ““ Getting Started

πŸ—οΈ Development

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository

  2. Create your feature branch (git checkout -b feature/AmazingFeature)

  3. Commit your changes (git commit -m 'Add some AmazingFeature')

  4. Push to the branch (git push origin feature/AmazingFeature)

  5. Open a Pull Request

πŸ—οΈ Development Setup

# Clone the repository

git clone https://github.com/AIMLDev726/maahelper.git

cd maahelper



# Install in development mode

pip install -e .



# Run tests

pytest tests/



# Check code structure

cat CODE_STRUCTURE.md

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

Created by Meet Solanki (AIML Student)

πŸ™ Acknowledgments

  • Built with Rich for beautiful CLI

  • Powered by OpenAI and multiple AI providers

  • Thanks to the open-source Python community


⭐ Star this repository if you find it helpful!

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published