https://github.com/cpulvermacher/lgtm
A Visual Studio Code extension for reviewing changes in git using GitHub Copilot Chat
https://github.com/cpulvermacher/lgtm
ai code-review copilot copilot-chat git review vscode vscode-extension
Last synced: 7 months ago
JSON representation
A Visual Studio Code extension for reviewing changes in git using GitHub Copilot Chat
- Host: GitHub
- URL: https://github.com/cpulvermacher/lgtm
- Owner: cpulvermacher
- License: mit
- Created: 2024-08-01T15:47:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-05T12:14:15.000Z (7 months ago)
- Last Synced: 2025-04-05T13:22:51.292Z (7 months ago)
- Topics: ai, code-review, copilot, copilot-chat, git, review, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=cpulvermacher.lgtm
- Size: 1.63 MB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# LGTM - AI Code Review
[](https://github.com/cpulvermacher/lgtm/releases)

[](https://github.com/cpulvermacher/lgtm/actions/workflows/node.js.yml)
[](./LICENSE)
Review source code changes in Git using GitHub Copilot Chat.
To start, open Copilot Chat and send one of the following messages:
- `@lgtm /review` to review changes between two branches, commits, or tags. You can specify git refs using e.g. `/review develop main`, or omit the second or both arguments to select refs interactively.
- `@lgtm /branch` to review changes between two branches.
- `@lgtm /commit` to review changes in a single commit.
You'll receive review comments grouped by file after selecting the desired revisions in the quick select.

## Features
- Uses Copilot Chat for reviewing changes, so only a GitHub Copilot subscription is required. Source code data is sent only to Copilot, which you presumably trust already.
- Allows adding custom instructions via the Lgtm: Custom Prompt setting to e.g. change the language of review comments.
- Allows choosing other language models via Lgtm: Chat model setting (default: GPT-4o). Some models need to be enabled in the Copilot settings first.
- Review content remains in chat history, so you can ask follow-up questions to Copilot (without `@lgtm`).
## Limitations
- Since this project is still work in progress, quality of comments may be mixed. This should improve in future versions.
- For now, only language models provided by GitHub Copilot Chat can be used via the `vscode.lm` API.
- For larger change sets you may encounter rate-limiting errors from Copilot. Please wait for the indicated time before retrying.
## Data Usage
Source code checked into Git and selected for review and commit messages will be sent to GitHub Copilot.
Avoid using it on repositories where you would not use Copilot.