A toy AI coding agent built with the Google Gemini API. It can explore a working directory, read files, write files, and execute Python scripts in a sandboxed location to iteratively complete tasks.
- Function calling via Gemini's tool API
- Iterative agent loop with bounded iterations
- Tools: get_files_info, get_file_content, write_file, run_python_file
- Install dependencies with
uv sync - Add your
GEMINI_API_KEYto a.envfile - Set
WORKING_DIRECTORYinconfig.py - Run:
uv run main.py "your prompt here"
main.py— entry point and agent loopfunctions/— tool implementationscall_function.py— dispatches function calls from the modelprompts.py— system promptconfig.py— configuration constants