AGA — AI GitHub Assistant
An AI-powered GitHub automation assistant that automates file deployment, repository health audits, README synthesis, and commit message generation — available as a Python library, CLI tool, and interactive Gradio web UI.
Features
- AI File Deployment — Upload local files and commit them directly to any repository branch with intelligent commit messages.
- Repository Management — Programmatically create, browse, list, and delete repositories with automatic branch resolution (
main/master). - Deep Architectural & Health Analyzer — Evaluate repository metrics (stars, forks, open issues, license, documentation) with Groq-powered AI architectural audits.
- Multi-Style README Generator — Synthesize tailored documentation (
professional,startup,open_source,hackathon,minimal). - Dual Interfaces — Run interactively in your browser with Gradio or from the terminal with the
agacommand. - Reusable Python Library — Import core clients (
GitHubClient,AIEngine,RepoAnalyzer,ReadmeGenerator,ProjectScanner) directly in your own applications.
Tech Stack
Installation
pip install aga-ai-github-assistant
Requirements: Python 3.9+
Configuration
Set your API credentials in your environment or in a .env file in your working directory (see .env.example):
GITHUB_TOKEN=ghp_your_personal_access_token_here
GROQ_API_KEY=gsk_your_groq_api_key_here
# Optional: AI Model Configuration (Default: llama-3.3-70b-versatile)
# Supported models depend on your Groq Cloud tier. Common alternatives include:
# - openai/gpt-oss-120b
# - qwen/qwen3.8-27b
# - llama-3.1-8b-instant
GROQ_MODEL=llama-3.3-70b-versatile
# Optional: Server & UI Configuration
PORT=7860
HOST=0.0.0.0
GRADIO_SHARE=False
Quick Start
1. Web Application
Launch the interactive web UI using either the CLI entrypoint or the module runner:
# Using the CLI
aga launch --port 7860
# Or using the Python module
py -m app.main
Open your browser at http://127.0.0.1:7860.
2. Command Line Interface (CLI)
# Create a new repository
aga create-repo my-new-project --description "Built with AGA" --public
# Analyze a repository (URL, owner/repo, or git link)
aga analyze https://github.com/torvalds/linux
# Interactively push files or folders with AI commit messages
aga push
3. Python Library API
You can import and use AGA's core components directly inside your own Python projects:
from aga import GitHubClient, AIEngine, RepoAnalyzer, ReadmeGenerator, ProjectScanner
# 1. Initialize Clients
gh = GitHubClient("ghp_your_token")
ai = AIEngine("gsk_your_groq_key")
# 2. Push a file (automatically falls back to repository default branch)
status = gh.push_file(
repo_name="owner/repo",
path="src/index.py",
content="print('Hello from AGA')",
commit_message="feat: initialize project",
)
print(status)
# 3. Analyze a repository
analyzer = RepoAnalyzer(gh, ai)
analysis = analyzer.analyze("https://github.com/owner/repo")
print("Scores:", analysis["scores"])
print("AI Report:", analysis["report"])
# 4. Generate a README
readme_gen = ReadmeGenerator(ai)
markdown = readme_gen.generate(
project_summary="FastAPI backend with a React dashboard for real-time analytics",
style="startup",
)
print(markdown)
# 5. Scan a local directory for languages and frameworks
scanner = ProjectScanner()
stats = scanner.scan_path("./my-project")
print("Languages:", stats["languages"])
print("Frameworks:", stats["frameworks"])
Public Python API Reference
| Class / Function | Module | Description |
|---|---|---|
GitHubClient(token) |
aga.core.github_client |
Wrapper for GitHub REST operations (create, list, get contents, push, delete). |
AIEngine(api_key, model=None) |
aga.core.ai_engine |
Groq Llama 3.3 LLM engine for commits, READMEs, and audits. |
RepoAnalyzer(github_client, ai_engine) |
aga.modules.analyzer |
Combines quantitative repository metrics with AI architectural reports. |
ReadmeGenerator(ai_engine) |
aga.modules.readme_gen |
Generates structured Markdown READMEs in 5 distinct styles. |
ProjectScanner() |
aga.modules.uploader |
Recursively inspects folders for languages, frameworks, and file counts. |
Release Notes & Changelog
v1.3.5 (Maintenance & Quality Release)
- Packaging Integrity: Fixed build isolation and directory traversal that previously bundled extraneous files into distribution wheels.
- Public API Exports: Exported core classes directly from
agaroot namespace and defined__version__. - Fast CLI Startup: Made Gradio imports lazy in CLI commands, reducing
aga --helpexecution latency. - Robust URL Parsing:
RepoAnalyzerandGitHubClientnow safely parse URLs with.git, subpaths (/tree/main),http://, and shorthandowner/repo. - Dynamic Branch Resolution:
push_filenow automatically detects and targets the repository'sdefault_branch(main,master, etc.) when no branch is explicitly passed. - Directory Traversal Protection: Enhanced
_sanitize_pathto strip path escapes and leading slashes safely. - Safe Explorer Handling: Protected Gradio UI against unhandled
DataFrameerrors and directory selection exceptions. - Automated Test Suite: Added 67 comprehensive unit, integration, and CLI tests with 100% pass rate.
License
MIT License. See LICENSE for details.
Metadata
Release files for aga-ai-github-assistant 1.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aga_ai_github_assistant-1.3.5.tar.gz | 22.3 kB | Without provenance | Details for aga_ai_github_assistant-1.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aga_ai_github_assistant-1.3.5-py3-none-any.whl | Python 3 | none | any | Details for aga_ai_github_assistant-1.3.5-py3-none-any.whl |
Total release size: 44.4 kB
Release files / aga_ai_github_assistant-1.3.5.tar.gz
| Download URL | aga_ai_github_assistant-1.3.5.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0f470a3d7c0d9871db2ef9fa269545026dfbb7b58e90c08b7edbb7a582605d7
|
|
BLAKE2b-256 checksum How to use checksums |
de4c8e82fbea8f490a77abfd0b0577a545c2868d433d5c3b3cd13fcec46986d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.0
|
Release files / aga_ai_github_assistant-1.3.5-py3-none-any.whl
| Download URL | aga_ai_github_assistant-1.3.5-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7d4314e1939d4f732405310ac099f49d0f83345edbe6043887050b22d2f698a
|
|
BLAKE2b-256 checksum How to use checksums |
e9f84ad1a9e73acb26d720c81a385e20bb505fc5c96e9d6c1e479a6ff5d6d899
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.0
|
Security for aga-ai-github-assistant 1.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.