🧙♂️ GitWiser: AI-powered Git Assistant for VS Code
GitWiser is a VS Code extension that helps developers generate meaningful commits, understand code changes, and quickly regain repository context directly inside VS Code.
It solves a common problem developers face:
- “What should I write in this commit?”
- “What exactly changed here?”
And then comes the classic developer moment:
"When you open your unfinished project from months ago"
"I don't understand my own code!? What was I even working on?!"
GitWiser acts as a lightweight AI layer on top of your Git workflow, helping you write better commits, understand changes, and quickly regain project context.
ℹ️ GitWiser requires a Gemini API key to use AI-powered features.
Get your API key from Google AI Studio
🤖 Commands
1. GitWiser: Generate Commit Message
Generates commit messages using:
- staged git diff
- current branch
- repository contribution guidelines
Also suggests workflow improvements based on repository contribution guidelines
2. GitWiser: Refine Commit Message
Improves existing commit messages while preserving developer intent.
Uses:
- staged git diff
- current branch
- contribution guidelines
Works directly with Git’s COMMIT_EDITMSG workflow inside VS Code.
3. GitWiser: Explain Changes
Explains staged git changes in simple, human-readable language.
Useful when:
- reviewing changes
4. GitWiser: Resume Project Context
Analyzes:
- recent commits
- project history
- repository documentation
to help developers quickly regain context when returning to a project.
📋 Features
🟣 Repository Context Awareness
GitWiser uses multiple sources of repository context including:
- staged diffs
- Git branches
- commit history
README.mdCONTRIBUTING.md
to generate more relevant and repository-consistent responses.
🟣 Native VS Code Markdown Preview
Outputs are rendered directly inside VS Code using native markdown previews for a clean and readable workflow.
🟣 Lightweight Workflow Integration
Designed to work alongside existing Git workflows without requiring external tools or Git hooks.
🟣 Contribution Guide Awareness
GitWiser understands repository contribution conventions through CONTRIBUTING.md analysis.
📝 Example Workflow
-
Stage your changes
git add file1, file2, file3... -
Open the Command Palette
Ctrl + Shift + P -
Run
GitWiser: Generate Commit Message -
Instantly receive a formatted AI-generated commit suggestion inside VS Code.
🪛 Setup
-
Install GitWiser from the VS Code Marketplace
-
Open VS Code Settings
-
Search for:
GitWiser: Gemini API Key -
Paste your Gemini API key
Get your Gemini API key from: Google AI Studio
Additional Documentation
💡 Why GitWiser?
While tools like Copilot can assist with code, GitWiser focuses specifically on:
- Git workflows
- Repository context recovery
- Commit quality
- reducing developer cognitive load
Most developers rely on scattered tools or manual effort to understand their own project history. GitWiser brings that context directly into the editor.
It acts as a lightweight AI assistant for version control workflows.
🔮 Future Improvements
- Explanations for previous commits and Git history
- Interactive chat-based repository assistance
- Additional repository context sources
- Customizable output styles
- GitHub integration
- Inline commit refinement workflows