Open Commit
AI-powered commit message generator for VS Code using Opencode.

Features
- 🤖 AI-Generated Commit Messages - Automatically generates commit messages based on your code changes using Opencode AI
- 📝 Conventional Commits - Follows industry-standard Conventional Commits specification
- 🎯 Smart Integration - Seamlessly integrates with VS Code's Source Control panel
- 🌍 Multi-language Support - Available in English and Russian
- ⚡ Fast & Efficient - Uses local Opencode for quick generation
- 🛑 Cancellable - Stop generation at any time
Requirements
- Opencode must be installed and available in your system PATH
- Git repository initialized in your workspace
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Open Commit"
- Click Install
From VSIX
- Download the latest
.vsix file from releases
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click "..." menu → "Install from VSIX..."
- Select the downloaded file
Install Opencode
See installation instructions at Opencode repository.
Development
Prerequisites
- Node.js 18+ and npm/yarn
- VS Code
Setup
# Clone the repository
git clone https://github.com/anomalyco/open-commit.git
cd open-commit
# Install dependencies
npm install
# or
yarn install
Build
# Compile TypeScript
npm run compile
# or
yarn compile
# Watch mode for development
npm run watch
# or
yarn watch
Package
# Create VSIX package
npm run package
# or
yarn package
Install Locally
# Build and install in one command
npm run build-and-install
# or
yarn build-and-install
# Or manually install the VSIX (version will be substituted automatically)
code --install-extension open-commit-$(node -p "require('./package.json').version").vsix
Update Dependencies
# Update all dependencies
npm update
# or
yarn upgrade
# Check for outdated packages
npm outdated
# or
yarn outdated
Usage
Generate Commit Message
- Make changes to your code
- Open Source Control panel (Ctrl+Shift+G)
- Click the Opencode icon in the Changes section
- Wait for AI to generate the commit message
- Review and commit
Keyboard Shortcuts
- Generate commit message: Click Opencode icon in Source Control
- Stop generation: Click stop icon during generation
Generated messages follow Conventional Commits:
<type>(<scope>): <subject>
<body>
Types:
feat - New feature
fix - Bug fix
docs - Documentation
style - Code style changes
refactor - Code refactoring
perf - Performance improvements
test - Tests
chore - Maintenance tasks
ci - CI/CD changes
build - Build system changes
Example:
feat(auth): add JWT token validation
Implement JWT token validation middleware to secure API endpoints.
Includes token expiration check and signature verification.
Configuration
Currently, the extension works out of the box with Opencode. Future versions will include customizable settings.
Troubleshooting
"Opencode not found"
Make sure Opencode is installed and available in your PATH:
opencode --version
"No changes to commit"
Make sure you have uncommitted changes in your Git repository.
"Git extension not found"
Ensure VS Code's built-in Git extension is enabled.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
Credits
Powered by Opencode AI.