Skip to content

mickey4653/mergesense-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– MergeSense AI - Complete Project

AI-powered Git Merge Conflict Resolver - A complete solution with both a Next.js web application and VS Code extension.

VS Code Extension Next.js App License


πŸ“ Project Structure

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)

πŸš€ Quick Start

Option 1: VS Code Extension (Recommended)

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 extension

Option 2: Next.js Web Application

The 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:3000

🎯 What is MergeSense AI?

MergeSense 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.

✨ Key Features

  • πŸ€– 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

πŸ“¦ Components

1. VS Code Extension (merge-sense-ai-vscode/)

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

2. Next.js Web Application (merge-sense-ai/)

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


πŸ› οΈ Development

Prerequisites

  • Node.js 18+
  • VS Code 1.74+ (for extension development)
  • n8n workflow running with webhook endpoint

Setup Both Projects

# 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 install

Running

VS Code Extension:

  1. Open merge-sense-ai-vscode in VS Code
  2. Press F5 to launch Extension Development Host
  3. Test the extension in the new window

Next.js App:

cd merge-sense-ai
npm run dev
# Open http://localhost:3000

πŸ“š Documentation

VS Code Extension

Web Application


πŸ”§ Configuration

Both projects require an n8n webhook URL:

VS Code Extension

Add to VS Code settings:

{
  "mergeSenseAI.webhookUrl": "http://localhost:5678/webhook/git/conflict/resolve"
}

Next.js App

Create .env.local:

N8N_WEBHOOK_URL=http://localhost:5678/webhook/git/conflict/resolve

πŸš€ Deployment

VS Code Extension

cd merge-sense-ai-vscode
npm run package
# Creates merge-sense-ai-0.1.0.vsix

Next.js App

Deploy to Vercel, Netlify, or any Node.js hosting:

cd merge-sense-ai
npm run build
npm start

🀝 Contributing

Contributions are welcome! Please see individual project READMEs for contribution guidelines.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“„ License

See LICENSE file for details


πŸ™ Acknowledgments


⭐ Show Your Support

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

About

AI-powered Git Merge Conflict Resolver - VS Code extension and web app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors