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-2.0.0.tar.gz (27.0 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-2.0.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

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

Hashes for gai_ag-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c5a490c1e9977a8dd9d49fc06700e381a8dc4d0094ef304bab52435ee489a95f
MD5 18dc035a5d775e0e00396e4aecf5509a
BLAKE2b-256 880adb7194eac8920cb085ff76e0f912a4c07d255557ba92491fe4d7f57467cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for gai_ag-2.0.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-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

Hashes for gai_ag-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36a8c3088e295b1554b13b7a89db436e57191368ac30d5d14ac27dd7b5d7f87e
MD5 3130710b8fb36c05933107fe5986480b
BLAKE2b-256 54e151614606151cb15eed21486d80a76accbc8be981bcf5cb7cb2998b0a7427

See more details on using hashes here.

Provenance

The following attestation bundles were made for gai_ag-2.0.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