Mergelock
Detect hidden semantic merge conflicts and breaking changes between parallel Git branches before merging.
Mergelock functions as a Git-native merge gate designed to catch subtle semantic conflicts that standard Git merges overlook, such as altered function signatures with outdated callers, deleted symbols still in use, and duplicate definitions. By combining git merge-tree with tree-sitter parsers across TypeScript, JavaScript, and Python, it inspects commit data directly without modifying the local working tree. It is built to maintain code integrity across parallel branches, making it ideal for integration into pre-push hooks, CI workflows, and multi-agent AI coding environments via its MCP server interface.
Key Features
01Performs non-destructive analysis via git merge-tree without altering your working tree
020 GitHub stars
03Identifies duplicate function definitions across branches by name or near-identical body
04Integrates seamlessly as a CLI utility, GitHub Action, Docker container, or MCP server for AI agents
05Provides AST-aware semantic checks for TypeScript, JavaScript, and Python alongside standard Git conflict detection
06Detects signature changes with mismatched callers and deleted symbols still referenced elsewhere
Use Cases
01Validating local feature branches against the target upstream branch prior to opening a pull request
02Catching semantic incompatibilities between parallel AI coding agents operating on concurrent branches
03Automating merge verification in CI pipelines to block broken builds before landing in production branches