AI-powered Git Merge Conflict Resolver - A complete solution with both a Next.js web application and VS Code extension.
This is a monorepo containing two related projects:
.
βββ merge-sense-ai/ # Next.js web application
β βββ app/ # Next.js app directory
β βββ lib/ # Shared utilities
β βββ components/ # React components
β βββ README.md # Web app documentation
β
βββ merge-sense-ai-vscode/ # VS Code extension
β βββ src/ # TypeScript source
β βββ media/ # WebView assets
β βββ docs/ # Documentation & screenshots
β βββ README.md # Extension documentation
β
βββ README.md # This file (root overview)
The VS Code extension is the main product. See the VS Code Extension README for complete setup.
cd merge-sense-ai-vscode
npm install
npm run compile
# Press F5 in VS Code to run extensionThe web app provides a browser-based interface. See the Web App README for details.
cd merge-sense-ai
npm install
npm run dev
# Open http://localhost:3000MergeSense AI uses AI (via n8n workflows) to automatically resolve Git merge conflicts. Instead of manually comparing conflict markers, let AI do the heavy lifting while you review and approve.
- π€ AI-Powered Resolution: Automatically resolves Git merge conflicts using AI
- π Auto-Detection: Automatically detects conflicts when you open files
- π Side-by-Side Diff: View original and resolved code side-by-side
- β Multiple Options: Accept HEAD, Incoming, or AI-merged version
- π― Confidence Scoring: See AI confidence levels for each resolution
- π Production Ready: API key authentication, timeout handling, error recovery
- π¨ Beautiful UX: Status bar integration, success toasts, inline previews
The main product - a VS Code extension that integrates directly into your editor.
Features:
- Status bar integration
- Command palette commands
- Inline diff preview
- One-click apply & save
- Success toast notifications
- Confidence tooltips
Documentation: VS Code Extension README
A web-based interface for resolving conflicts in the browser.
Features:
- Browser-based conflict resolution
- Monaco editor integration
- Real-time AI analysis
- Confidence visualization
Documentation: Web App README
- Node.js 18+
- VS Code 1.74+ (for extension development)
- n8n workflow running with webhook endpoint
# Clone the repository
git clone <your-repo-url>
cd gmr-resolut-n8n
# Setup VS Code Extension
cd merge-sense-ai-vscode
npm install
npm run compile
# Setup Next.js App (optional)
cd ../merge-sense-ai
npm installVS Code Extension:
- Open
merge-sense-ai-vscodein VS Code - Press
F5to launch Extension Development Host - Test the extension in the new window
Next.js App:
cd merge-sense-ai
npm run dev
# Open http://localhost:3000- README - Complete extension documentation
- QUICK_START.md - Get started in 5 minutes
- DEMO.md - Demo guide and presentation script
- API_KEY_SETUP.md - API key authentication setup
- README - Web app documentation
- ENV_SETUP.md - Environment setup
Both projects require an n8n webhook URL:
Add to VS Code settings:
{
"mergeSenseAI.webhookUrl": "http://localhost:5678/webhook/git/conflict/resolve"
}Create .env.local:
N8N_WEBHOOK_URL=http://localhost:5678/webhook/git/conflict/resolvecd merge-sense-ai-vscode
npm run package
# Creates merge-sense-ai-0.1.0.vsixDeploy to Vercel, Netlify, or any Node.js hosting:
cd merge-sense-ai
npm run build
npm startContributions are welcome! Please see individual project READMEs for contribution guidelines.
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
See LICENSE file for details
- Built with VS Code Extension API
- Powered by n8n workflows
- Uses Next.js for web interface
- Uses AI for intelligent conflict resolution
If you find MergeSense AI helpful, consider:
- β Starring the repository
- π Reporting bugs
- π‘ Suggesting features
- π’ Sharing with your team
Made with β€οΈ for developers who hate merge conflicts