Back to Skills

morph-apply

Fast file editing via Morph Apply API (10,500 tokens/sec, 98% accuracy)

3,369stars254forksUpdated 1/23/2026

Security Assessment

Safe(100/100)
Security Score100/100

About morph-apply

The morph-apply skill enables fast, AI-powered file editing through the Morph Apply API. It allows users to make quick changes to files without needing to read the entire contents first. This tool processes files at an impressive speed of 10,500 tokens per second with 98% accuracy, making it particularly useful for scenarios where large files need to be modified but reading them would be inefficient or time-consuming. By placing edits intelligently, based on the provided markers, it ensures that the changes occur in the correct context, saving both time and computing resources.

FAQ

How do I use morph-apply for fast file editing?

To use morph-apply, run the script with the necessary parameters: file path, instruction for the change, and the code snippet containing markers for the edit. This will instruct the AI to apply the edit at the right location in the file without needing to read its entire contents.

What is the performance of morph-apply?

Morph-apply processes files at a speed of 10,500 tokens per second with 98% accuracy in placing the edits. This high speed and accuracy make it suitable for large files or batch editing.

Do I need to install any specific tools to use morph-apply?

Yes, you need to have the `morph` server configured in the mcp_config.json file with a valid `MORPH_API_KEY` to run morph-apply.

What is the difference between morph-apply and Claude's Edit tool?

Morph-apply is designed for fast edits in large files where reading the entire content is not necessary, while Claude Edit is ideal for small, precise edits in files that are already in context.

Can morph-apply handle very large files?

Yes, morph-apply is particularly suited for very large files (greater than 500 lines), where reading the file would consume too many tokens. It allows batch edits to be applied quickly without loading the whole file into memory.

Install morph-apply

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill