Automate pull request drafting and code reasoning with your Git history – powered by LLMs and Git hooks.
PRBuddy-Go is a lightweight CLI assistant that integrates into your Git workflow. It automatically generates pull request drafts after every commit and helps you understand your changes with natural language summaries.
Whether you're working solo or in a team, PRBuddy helps you keep your code explainable and your PRs professional — effortlessly.
- LLM-powered PR Drafts: Hooks into
post-committo auto-generate contextual pull request messages. - Quick Assist Chat: Get fast, contextual help from an LLM in your terminal.
- "What did I just do?" summaries with
prbuddy-go what - Optional Git hook installation during
init - Cleanup with
prbuddy-go remove
Before using PRBuddy-Go, make sure the following are installed on your system:
- Go 1.20 or later
- Git (with a local repository)
- Ollama – a local LLM runtime for running models like
llama3orcodellama.
PRBuddy-Go uses Ollama to run large language models locally for generating PR drafts and summaries.
Follow the official instructions at https://ollama.ai/download
Clone and build manually:
git clone https://github.com/soyuz43/PRbuddy.git
cd PRbuddy
go build -o prbuddy-gocd your-project/
prbuddy-go init # Installs Git hook + .git/pr_buddy_db
git add .
git commit -m "feat: add logging" # Triggers PR draft generationPRBuddy-Go will use:
- The model set via the extension (
/extension/model) PRBUDDY_LLM_MODELenvironment variable- The most recently pulled model (auto-detected)
- If no models are found, PRBuddy will automatically run
qwen3locally via Ollama.
| Command | Description |
|---|---|
init |
Setup PRBuddy in current repo; installs optional Git hook |
post-commit |
Used internally by the hook to draft PR messages |
what |
Summarize local changes since last commit |
quickassist [query] |
Ask the LLM anything, or run interactive CLI chat |
remove |
Uninstall PRBuddy from the repo |
- Uses Git hooks to run logic after commits
- Detects branch, commit, diff context
- Sends data to an LLM backend (e.g., OpenAI, local model?)
- Generates structured PR drafts
- Stores metadata in
.git/pr_buddy_dbfor traceability
✅ You can disable or uninstall anytime using:
prbuddy-go remove
PRBuddy reads your local Git data and may transmit code context to an LLM service. Make sure you're comfortable with the models you're using and consider privacy policies if sensitive code is involved.
This project is in early development. Bug reports, ideas, and PRs are welcome!
MIT © soyuz43