经 AI Skill Hub 精选评估,系统代理器源 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
导航代理器源,导航代理为系统代理不为分数数据,使用为工具列表的代理器源。
系统代理器源 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
导航代理器源,导航代理为系统代理不为分数数据,使用为工具列表的代理器源。
系统代理器源 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:cargo install(推荐) cargo install mpatch # 方式二:从源码编译 git clone https://github.com/Romelium/mpatch cd mpatch cargo build --release # 二进制在 ./target/release/mpatch
# 查看帮助 mpatch --help # 基本运行 mpatch [options] <input> # 详细使用说明请查阅文档 # https://github.com/Romelium/mpatch
# mpatch 配置说明 # 查看配置选项 mpatch --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export MPATCH_CONFIG="/path/to/config.yml"
mpatch is a contextual patching program/library tailored towards the "messy" world of modern software development. Different from standard patch and git apply, which require line number/context to be exact matches, mpatch utilizes fuzzy matching, looking for patches based on the context around the change in the code.
This tool was created to easily apply diffs produced by LLMs (ChatGPT, Gemini, Claude, Copilot), since they tend to hallucinate the exact line numbers or the context around the patch.
🐍 Python Developer? We have official Python bindings! Check out the mpatch PyPI package and Python documentation.
---
Though supported by mpatch, this file format (<<<<, ====, >>>>) does not include any file path information.
mpatch from CLI: If the provided file contains only conflict markers, mpatch will try to patch a file called patch_target.mpatch as a library: The format can be used by the patch_content_str function if your target file content is stored in memory.In case of a multiple file patching or using mpatch from CLI, it is recommended to use the Unified Diffs format (with --- and +++).
---
git diff command).-c or --clipboard.mpatch searches for matches using every CPU core via rayon.--dry-run.---
We provide pre-compiled binaries for Windows, macOS, and Linux.
Using cargo-binstall (Fastest):
cargo binstall mpatch
Manual Download: 1. Go to the Releases Page. 2. Download the archive for your architecture (see table below). 3. Extract and add to your PATH.
| Platform | Architecture | Target | Notes |
|---|---|---|---|
| **macOS** | Universal | universal-apple-darwin | **Best for Mac.** Runs natively on M1/M2/M3 & Intel. |
| x64 | x86_64-apple-darwin | Older Intel Macs. | |
| ARM64 | aarch64-apple-darwin | Apple Silicon (M1/M2/M3). | |
| **Windows** | x64 | x86_64-pc-windows-msvc | Standard 64-bit Windows. |
| ARM64 | aarch64-pc-windows-msvc | Surface Pro X, Parallels. | |
| **Linux** | x64 | x86_64-unknown-linux-gnu | Ubuntu, Debian, Fedora, etc. |
| x64 (Static) | x86_64-unknown-linux-musl | **Alpine Linux**, Docker containers. | |
| ARM64 | aarch64-unknown-linux-gnu | Raspberry Pi 4/5, AWS Graviton. | |
| ARM64 (Static) | aarch64-unknown-linux-musl | Alpine on ARM64. | |
| ARMv7 | armv7-unknown-linux-gnueabihf | Older Raspberry Pi (2/3), IoT. | |
| ARMv7 (Static) | armv7-unknown-linux-musleabihf | Static binaries for ARMv7. |
cargo install mpatch
---
mpatch is designed to be the patching engine for AI coding agents and tools. It exposes a robust Rust API.
Add to Cargo.toml:
[dependencies]
mpatch = "1.5.0"
If you want to treat partial applications (where some hunks fail) as an error, use the try_ variants.
use mpatch::{parse_single_patch, try_apply_patch_to_content, ApplyOptions, StrictApplyError};
let original_content = "fn main() { println!(\"Old\"); }";
let diff_content = "--- a/main.rs\n+++ b/main.rs\n@@ -1 +1 @@\n-fn main() { println!(\"Old\"); }\n+fn main() { println!(\"New\"); }";
let patch = parse_single_patch(diff_content)?;
let options = ApplyOptions::exact();
// Returns an Err if any hunk fails to apply
match try_apply_patch_to_content(&patch, Some(original_content), &options) {
Ok(result) => println!("Success: {}", result.new_content),
Err(StrictApplyError::PartialApply { report }) => {
eprintln!("Patch partially applied. {} hunks failed.", report.failure_count());
}
Err(e) => eprintln!("Hard error: {}", e),
}
导航代理器源上一下为工具列表的代理器源。很不为系统代理不为分数数据。为工具列表的代理器源上一下为工具列表的代理器源。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:系统代理器源 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | mpatch |
| 原始描述 | 开源AI工作流:Applies diffs based on context, not line numbers. Useful for AI-generated code.。⭐17 · Rust |
| Topics | workflowaiautomationclicode-generation |
| GitHub | https://github.com/Romelium/mpatch |
| License | MIT |
| 语言 | Rust |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端