PRetty Smart
PRetty Smart turns Logitech devices into a focused pull request review console for Visual Studio Code.
It connects a Logitech Actions SDK plugin with a local VS Code extension so reviewers can navigate PR changes, draft review comments, manage review comments, and submit final GitHub reviews without leaving their review flow.
What it does
PRetty Smart is designed for GitHub pull request review workflows in VS Code.
Core features:
- Navigate pull request changes from a Logitech device.
- Navigate existing GitHub review comments.
- Generate and refine review comment drafts.
- Select between multiple draft variants.
- Add the selected draft at the current review cursor.
- Delete the current review comment.
- Submit final reviews as:
- Comment
- Approve
- Request Changes
- Use a display-only review panel in VS Code for the selected comment or draft.
- Keep AI output as editable draft text. PRetty Smart does not modify code automatically.
Components
PRetty Smart has two parts:
Logitech plugin
- Built with the Logitech Actions SDK.
- Provides actions and adjustments for Logitech devices.
- Sends command names to a local VS Code bridge at
http://127.0.0.1:56789/command.
VS Code extension
- Receives local commands from the Logitech plugin.
- Integrates with the GitHub Pull Requests extension.
- Handles PR navigation, draft generation, comment handoff, and final review submission.
Requirements
- Visual Studio Code
- Logi Options+
- PRetty Smart Logitech plugin
- PRetty Smart VS Code extension
- GitHub Pull Requests VS Code extension
- A GitHub repository opened in VS Code
- An active pull request opened or checked out through the GitHub Pull Requests extension
- Optional: GitHub Copilot or an OpenAI API key for AI draft generation
Supported workflow
Typical review flow:
- Open VS Code.
- Open a GitHub repository.
- Open or checkout a pull request using the GitHub Pull Requests extension.
- Use Logitech controls to navigate changes.
- Generate or refine comment variants.
- Select the preferred draft.
- Add the selected draft at the current review cursor.
- Navigate or delete review comments as needed.
- Submit the final review as Comment, Approve, or Request Changes.
Recommended Logitech layout
MX Creative Keypad
Page 1: daily PR review
| Key |
Action |
| 1 |
Previous Change |
| 2 |
Next Change |
| 3 |
Add Draft at Cursor |
| 4 |
Refine Comment Variants |
| 5 |
Previous Review Comment |
| 6 |
Next Review Comment |
| 7 |
Delete Review Comment |
| 8 |
Submit Review Comment |
| 9 |
Approve PR |
Page 2: final decisions and utilities
| Key |
Action |
| 1 |
Request Changes |
| 2 |
Summarize PR |
| 3 |
Suggest Improvements |
| 4 |
Previous Draft Option |
| 5 |
Next Draft Option |
| 6 |
Copy Draft |
| 7 |
Clear Draft |
| 8 |
Open VS Code Extension |
| 9 |
Ping VS Code |
MX Creative Dialpad
| Control |
Action |
| Dial rotate |
Smart Review Dial |
| Scroll / roller |
Review Cursor Scroll |
| Button 1 |
Previous Change |
| Button 2 |
Next Change |
| Button 3 |
Refine Comment Variants |
| Button 4 |
Add Draft at Cursor |
AI behavior
PRetty Smart can use AI to draft review text. AI output is always a draft.
It may send selected review text, changed file names, diff snippets, and short untracked file previews to the configured AI provider. It does not send the entire repository automatically. It does not modify code automatically.
Supported AI modes:
auto: tries VS Code / GitHub Copilot language models first, then OpenAI if configured.
copilot: uses VS Code language models through GitHub Copilot.
openai: uses the configured OpenAI-compatible API endpoint.
disabled: disables AI draft generation.
OpenAI API keys are stored locally in VS Code SecretStorage.
Commands
Main commands:
PRetty Smart: Ping VS Code
PRetty Smart: Next Change
PRetty Smart: Previous Change
PRetty Smart: Refine Comment
PRetty Smart: Refine Here
PRetty Smart: Next Draft Option
PRetty Smart: Previous Draft Option
PRetty Smart: Add Selected Draft at Cursor
PRetty Smart: Next Review Comment
PRetty Smart: Previous Review Comment
PRetty Smart: Delete Current Review Comment
PRetty Smart: Submit Review Comment
PRetty Smart: Submit Review Approve
PRetty Smart: Submit Review Request Changes
PRetty Smart: Summarize PR
PRetty Smart: Suggest Improvements
PRetty Smart: Copy Draft
PRetty Smart: Clear Draft
PRetty Smart: Set OpenAI API Key
PRetty Smart: Clear OpenAI API Key
PRetty Smart: Diagnose Review Providers
PRetty Smart: Diagnose GitHub Internal Comments
Settings
| Setting |
Default |
Description |
prettySmart.bridgePort |
56789 |
Local port used by the Logitech plugin to talk to VS Code. |
prettySmart.aiProvider |
auto |
AI provider: auto, copilot, openai, or disabled. |
prettySmart.copilotModelFamily |
gpt-4o |
Preferred VS Code language model family when using Copilot. |
prettySmart.openaiBaseUrl |
https://api.openai.com/v1 |
Base URL for the OpenAI-compatible API. |
prettySmart.openaiModel |
gpt-4o-mini |
Model used for OpenAI draft generation. |
prettySmart.maxDiffChars |
12000 |
Maximum diff/context characters included in AI review context. |
prettySmart.providerHandoffAutoPaste |
false |
Attempts to paste copied draft into provider UI after opening comment flow. |
Troubleshooting
The Logitech plugin opens the marketplace page instead of running an action
That means the Logitech plugin could not reach the PRetty Smart VS Code bridge. Open VS Code, install/enable the PRetty Smart VS Code extension, and make sure the bridge is listening on 127.0.0.1:56789.
GitHub Pull Requests is missing
Install the GitHub Pull Requests extension for VS Code. PRetty Smart depends on it for GitHub PR review workflows.
No active PR is found
Open or checkout a pull request through the GitHub Pull Requests extension, then run the PRetty Smart command again.
Approve or Request Changes fails
GitHub may block reviews on your own pull request or on repositories where your account lacks review permissions. Test with a second GitHub account or a PR where you are allowed to review.
AI draft generation fails
Use local fallback drafts, install/sign in to GitHub Copilot, or set an OpenAI API key with PRetty Smart: Set OpenAI API Key.
Limitations
- GitHub PR workflows require the GitHub Pull Requests extension.
- GitLab, Azure DevOps, and Bitbucket provider support is not complete in version 0.1.0.
- PRetty Smart relies on the active PR model inside VS Code.
- PRetty Smart does not replace GitHub’s permission checks.
- PRetty Smart does not automatically modify code.
Version
Current release target: 0.1.0.