summarize-diff
Version:
Summarize Diff is a tool that leverages AI models (OpenAI, Anthropic, and DeepSeek) to summarize git differences. It aids developers in quickly understanding code changes and is particularly useful for crafting PR descriptions.
47 lines (29 loc) • 1.12 kB
Markdown
# Summarize Diff
Summarize Diff is a tool that leverages AI models (OpenAI, Anthropic, and DeepSeek) to summarize git differences. It aids developers in quickly understanding code changes and is particularly useful for crafting PR descriptions.
**Demo:**

## Prerequisite
- Checkout to the branch you want to compare
- Provide your own API key(s) for the AI providers you wish to use. Your API keys are stored locally on your device and never transmitted anywhere except to the respective AI providers.
## Features
- Fetches git differences.
- Summarizes the differences using various AI models.
- Supports multiple AI providers and models
- Privacy-focused: API keys are stored securely on your local device only - no tracking or telemetry
## Usage
To run the tool without installing:
```bash
npx summarize-diff
```
Or, install it globally:
```bash
npm install -g summarize-diff
```
Then run:
```bash
summarize-diff
```
### Options:
- `--reset`: Removes all saved values.
- `--model`: Change the OpenAI model.
- `--help`: Display help for commands.