git-agent icon indicating copy to clipboard operation
git-agent copied to clipboard

Langchain Agent utilizing OpenAI Function Calls to execute Git commands using Natural Language

Git Agent

git-agent is a Langchain-based Agent utilizing OpenAI Function calling that enables execution of Git commands using nothing but natural language inputs!

Watch the video below to see it in action!

https://github.com/jupyterjazz/git-agent/assets/45267439/c1c524bb-a42f-49b0-940a-7e5a4c722217

Install

  1. Install git-agent
pip install git+https://github.com/jupyterjazz/git-agent.git
  1. Set your OPENAI_API_KEY
export OPENAI_API_KEY=<your key>

Usage

Move to any repository you have locally, and ask git-agent to show diffs, stage/restore files in natural language!

git-agent <your instruction>

In this example, git-agent will locate files associated with docarray and provide the corresponding diffs only for those files.

Screenshot 2023-06-14 at 13 34 44