Skip to content

vitorhf-dev/ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It's a AI Agent that can edit files in the designated working directory, it uses google gemini as a LLM.

Usage instructions:

You will need uv to use this AI Agent, you can install it by using the command:

curl -LsSf https://astral.sh/uv/install.sh | sh

And verify the version to make sure it is installed: uv --version

Go to the directory where the Agent files are located, with the command:

cd /home/user/ai-agent <- your username in place of "user"

And activate venv with the command:

uv venv .venv (optional if use uv run main.py)

And then:

source .venv/bin/activate (optional if you use uv run)

then:

uv pip install -r requirements.txt (or uv pip install -e .)

Use the command uv run main.py "(prompt here)", for example, if I wanted to make a change to calculator.py in the calculator/pkg/calculator.py file path, for it to fix a bug, I would use:

uv run main.py "fix the bug, because 3 + 7 * 2 shouldn't be 20, calculator/pkg/calculator.py"

It will run the functions it has access to, and edit the file. Be very careful to what you give the LLM access to in your filesystem and python interpreter.

For now it can only edit Python files (.py), just put the files you want it to edit inside the ai agent folder (preferably as a folder like "test project -> project.py") and put the correct directory when prompting the agent to make the changes.

About

An very simples Ai Agent I made for my boot.dev course, it can edit files from the designated working directory based on instructions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages