Skip to main content

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.py or @src/.
  • 🎨 Premium UI: Stylish and readable output powered by the rich library.
  • 🌍 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

  1. Clone the repository:

    git clone https://github.com/bugraakdemir/gai-cli.git
    cd gai-cli
    
  2. Install dependencies:

    pip install -e .
    

🛠️ Usage

Note: Both gai and gai-ag commands 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gai_ag-1.6.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gai_ag-1.6.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file gai_ag-1.6.0.tar.gz.

File metadata

  • Download URL: gai_ag-1.6.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gai_ag-1.6.0.tar.gz
Algorithm Hash digest
SHA256 2fc33321edc884fb0083faecbe03368b8c871a82dbbcf9e8b01359b8238b8b6b
MD5 75b603433b731a54b06b16a7a0428aae
BLAKE2b-256 e06c9e12b940fea10714904ac338ce1c0437112871b159bf4498aa977e27f72b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gai_ag-1.6.0.tar.gz:

Publisher: publish.yml on BugraAkdemir/gai-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gai_ag-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: gai_ag-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gai_ag-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8600af40538df28f997c379ab7121f968c21d8dc3b6263d8aef8d23bacfbde07
MD5 44986fe58c766d0af724147c222111bf
BLAKE2b-256 5a81221071627647579077b4f8ab78b3bccc05a3f1adcd51695c562cef654bca

See more details on using hashes here.

Provenance

The following attestation bundles were made for gai_ag-1.6.0-py3-none-any.whl:

Publisher: publish.yml on BugraAkdemir/gai-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page