Romelium/mpatch
Applies diffs based on context, not line numbers. Useful for AI-generated code.
When you get code changes from an AI assistant like ChatGPT or Copilot, and your local code has slightly changed, traditional tools often fail to apply these updates. Mpatch helps by intelligently applying these AI-generated patches to your codebase, even if the line numbers or surrounding code context don't perfectly match. It takes the AI's proposed changes and your current code, then provides updated code that incorporates the AI's suggestions correctly. This is designed for software developers who use AI tools for coding tasks.
11 stars and 28,258 monthly downloads.
Use this if you frequently apply code changes suggested by AI assistants and find that standard patching tools fail due to minor discrepancies between the AI's context and your current code.
Not ideal if you primarily work with manually generated code diffs that are already guaranteed to be precise and don't involve fuzzy matching requirements.
Stars
11
Forks
1
Language
Rust
License
MIT
Category
Last pushed
Dec 28, 2025
Monthly downloads
28,258
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/Romelium/mpatch"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
ise-uiuc/Repilot
Repilot, a patch generation tool introduced in the ESEC/FSE'23 paper "Copiloting the Copilots:...
Goshenkata/DryScan
A Semantic Code Duplication & Reuse Analyzer
ThalesMMS/Code-Scanner
Fast Rust/Python/Bash tool that scans code projects and generates a text file containing all...
agent-sh/git-map
Git history analysis plugin for agentsys - static cached JSON artifact from git history
673Matthew/reposherlock
🔍 Analyze GitHub repos to reveal architecture, run commands, security risks, and actionable...