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!
GitAgentDemo.mp4
- Install
git-agent
pip install git+https://github.com/jupyterjazz/git-agent.git
- Set your OPENAI_API_KEY
export OPENAI_API_KEY=<your key>
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](https://private-user-images.githubusercontent.com/45267439/245777790-6c9c662b-f03a-442f-a2d4-19e43604be65.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzgxNTQsIm5iZiI6MTczOTE3Nzg1NCwicGF0aCI6Ii80NTI2NzQzOS8yNDU3Nzc3OTAtNmM5YzY2MmItZjAzYS00NDJmLWEyZDQtMTllNDM2MDRiZTY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA4NTczNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjODRlOThiM2NlOWQzZWI2ODMwNTg1YjhkNDRmZTY4NDJjMzcwZTQ1MTc4ZTExYzA2YmQzYWVhMmQ0ZDVlM2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.20MDO-F5wXUjrE36n53SIUBUEy8LrFG_6Tv8u_aXbL4)