Romelium/mpatch

Applies diffs based on context, not line numbers. Useful for AI-generated code.

43
/ 100
Emerging

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.

AI-assisted-development software-development code-refactoring developer-workflow version-control
No Package No Dependents
Maintenance 6 / 25
Adoption 15 / 25
Maturity 15 / 25
Community 7 / 25

How are scores calculated?

Stars

11

Forks

1

Language

Rust

License

MIT

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.