Hi, this is my side project, you can feel free to fork and use it.
This is an AI agent that can edit, read, write, and run Python files, powered by Gemini API.
To use this AI agent, follow these steps:
- Create a virtual environment:
python3 -m venv .venv
- Activate the virtual environment:
source .venv/bin/activate
- Install dependencies using uv:
pip install uv uv pip install -r requirements.txt
UV is a very fast Python package installer and resolver, written in Rust. You can install it using pip:
pip install uv
-
Create a
.env
file in the root directory. -
Add your Gemini API key to the
.env
file. You can get your API key by going to https://aistudio.google.com/apikey:GEMINI_API_KEY='YOUR_API_KEY'
-
Activate the virtual environment (if you haven't already):
source .venv/bin/activate
-
Run the
main.py
file with your prompt:python3 main.py "your_prompt"
-
--verbose
: This argument prints the full command that the AI agent uses, providing more transparency and debugging information. Example:python3 main.py "your_prompt" --verbose