A digital assistant that writes code and collaborates with humans on git repositories.
Go to file
Moby von Briesen b9b0b9cf12 It's working
Implement cobra and stuff
Right now there is just one root command
You can set a config file, or pass flags in via CLI
Haven't figured out how to use env variables yet
But if you run the root command,
It'll check the repo for issues, and generate an LLM prompt
You can copy-paste it to the LLM chat, then copy-paste the response to a
different file
Then press enter in the CLI tool, and it will parse the response and
open a PR with the change
2023-04-22 21:41:28 -04:00
cmd It's working 2023-04-22 21:41:28 -04:00
llm It's working 2023-04-22 21:41:28 -04:00
pullpal It's working 2023-04-22 21:41:28 -04:00
vc It's working 2023-04-22 21:41:28 -04:00
.gitignore Initial commit (part 2) 2023-04-22 14:50:15 -04:00
LICENSE Initial commit 2023-04-22 11:56:31 -04:00
Makefile It's working 2023-04-22 21:41:28 -04:00
README.md Update README.md 2023-04-22 12:11:28 -04:00
go.mod It's working 2023-04-22 21:41:28 -04:00
go.sum It's working 2023-04-22 21:41:28 -04:00
main.go It's working 2023-04-22 21:41:28 -04:00

README.md

Pull Pal

A digital assistant that writes code and collaborates with humans on git repositories.

This tool is based on a previous experiment/proof of concept.

Overview

The specific goals/functions of this tool may change over time, but the initial target functionality includes:

  • "Bot" functionality (i.e. something that runs on a server somewhere and works mostly independently):
    • Monitoring open issues in a git repository, and automatically creating code changes (e.g. Github PRs) according to details in issue
    • Monitoring comments created on a code change, and updating the change accordingly
    • Integrates with OpenAI's GPT API (I'm still on the waitlist for this so may not be fully tested for a little bit)
  • CLI functionality (i.e. something that accomplishes similar behavior to the bot functionality, but requires more human intervention):
    • Command to generate LLM prompt based on git repository issues (prompt can then be copied to a chatbot)
    • Command to generate a code change based on LLM response to prompt (e.g. output from above point copied to this command)

Potential Evolution (future features following first foray)

  • Gerrit support
    • including alternate sources for issue tracking + code changes
  • Feedback/bug catching on code changes made by humans (add comments on changes)
  • General LLM interface support - allow using local LLM, non-GPT APIs, etc...

Contributing

I encourage contributing directly to this repository, or forking it and using it to accomplish other goals. If you would like to work together on this project, please contact me via email at mobyvb@gmail.com.

License

The license is GPL 3.0, which basically means that you can freely use/distribute/modify the code here, as long as you maintain the GPL 3.0 or a more permissive license. You can build a product out of this tool and even try to make money from it. However, you cannot close-source code that you derived from this project. Keep it open for others to use. Don't be a jerk.