A production-ready Python CLI tool for Google AI Studio.
Project description
gai-ag (Gemini Autonomous Agent)
gai-ag is a professional, fast, and intelligent command-line tool that brings the Google Gemini API to your terminal. It features an advanced "Agent" mode that can both answer questions directly and perform automatic modifications on your project.
- Autonomous Agent Mode: Automatically fixes errors, runs tests, and generates solutions.
- Project Brain: Creates a
.gai/folder in each project to store history, state, and errors. - Smart Scanning: Caches project structure and prioritizes critical files to save tokens.
- Polyglot Support: Automatically detects Flutter, Node.js, and Python projects.
✨ Features
- 🤖 Agent Mode: Analyzes files in your project, plans requested changes (code writing, file creation, deletion, moving), and applies them with your approval.
- 💬 Interactive Chat: Communicate fluently with Gemini through a multi-modal chat interface.
- 📁 Context Injection (@): Add files as context to your chat using
@file.pyor@src/. - 🎨 Premium UI: Stylish and readable output powered by the
richlibrary. - 🌍 Multi-language Support: English and Turkish language options.
- 🔒 Secure Operations: File system operations are restricted to the project directory.
🚀 Installation
From PyPI (Easiest)
pip install gai-ag
For Development
-
Clone the repository:
git clone https://github.com/bugraakdemir/gai-cli.git cd gai-cli
-
Install dependencies:
pip install -e .
🛠️ Usage
Note: Both
gaiandgai-agcommands work in the terminal!
One-time Question
gai "What are list comprehensions in Python?"
# or
gai-ag "What are list comprehensions in Python?"
Interactive Mode (Chat & Agent)
Start the interactive mode by simply typing gai or gai-ag:
gai
# or
gai-ag
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gai_ag-2.0.0.tar.gz.
File metadata
- Download URL: gai_ag-2.0.0.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5a490c1e9977a8dd9d49fc06700e381a8dc4d0094ef304bab52435ee489a95f
|
|
| MD5 |
18dc035a5d775e0e00396e4aecf5509a
|
|
| BLAKE2b-256 |
880adb7194eac8920cb085ff76e0f912a4c07d255557ba92491fe4d7f57467cd
|
Provenance
The following attestation bundles were made for gai_ag-2.0.0.tar.gz:
Publisher:
publish.yml on BugraAkdemir/gai-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gai_ag-2.0.0.tar.gz -
Subject digest:
c5a490c1e9977a8dd9d49fc06700e381a8dc4d0094ef304bab52435ee489a95f - Sigstore transparency entry: 823662125
- Sigstore integration time:
-
Permalink:
BugraAkdemir/gai-cli@a540dc99681e0113e5325912e85f7a43b4dfd3f5 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/BugraAkdemir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a540dc99681e0113e5325912e85f7a43b4dfd3f5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gai_ag-2.0.0-py3-none-any.whl.
File metadata
- Download URL: gai_ag-2.0.0-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36a8c3088e295b1554b13b7a89db436e57191368ac30d5d14ac27dd7b5d7f87e
|
|
| MD5 |
3130710b8fb36c05933107fe5986480b
|
|
| BLAKE2b-256 |
54e151614606151cb15eed21486d80a76accbc8be981bcf5cb7cb2998b0a7427
|
Provenance
The following attestation bundles were made for gai_ag-2.0.0-py3-none-any.whl:
Publisher:
publish.yml on BugraAkdemir/gai-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gai_ag-2.0.0-py3-none-any.whl -
Subject digest:
36a8c3088e295b1554b13b7a89db436e57191368ac30d5d14ac27dd7b5d7f87e - Sigstore transparency entry: 823662153
- Sigstore integration time:
-
Permalink:
BugraAkdemir/gai-cli@a540dc99681e0113e5325912e85f7a43b4dfd3f5 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/BugraAkdemir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a540dc99681e0113e5325912e85f7a43b4dfd3f5 -
Trigger Event:
push
-
Statement type: