一键导入
morph-apply
Fast file editing via Morph Apply API (10,500 tokens/sec, 98% accuracy)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fast file editing via Morph Apply API (10,500 tokens/sec, 98% accuracy)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create git commits with user approval and no Claude attribution
Create or update continuity ledger for state preservation across clears
Create handoff document for transferring work to another session
Generate comprehensive PR descriptions following repository templates
Deep interview process to transform vague ideas into detailed specs. Works for technical and non-technical users.
Search Mathlib for lemmas by type signature pattern
| name | morph-apply |
| description | Fast file editing via Morph Apply API (10,500 tokens/sec, 98% accuracy) |
| allowed-tools | ["Bash","Read"] |
Fast, AI-powered file editing using the Morph Apply API. Edit files without reading them first. Processes at 10,500 tokens/sec with 98% accuracy.
Use // ... existing code ... (or language-appropriate comments) to mark where edits go:
# ... existing code ...
try:
result = process()
except Exception as e:
log.error(e)
# ... existing code ...
The API intelligently places your edit in the right location.
uv run python -m runtime.harness scripts/mcp/morph_apply.py \
--file "src/auth.py" \
--instruction "Add error handling to login function" \
--code_edit "# ... existing code ...
try:
user = authenticate(credentials)
except AuthError as e:
log.error(f'Auth failed: {e}')
raise
# ... existing code ..."
uv run python -m runtime.harness scripts/mcp/morph_apply.py \
--file "src/api.py" \
--instruction "Add debug logging" \
--code_edit "# ... existing code ...
logger.debug(f'Processing request: {request.id}')
# ... existing code ..."
uv run python -m runtime.harness scripts/mcp/morph_apply.py \
--file "src/types.ts" \
--instruction "Add user validation" \
--code_edit "// ... existing code ...
if (!user) throw new Error('User not found');
if (!user.isActive) throw new Error('User inactive');
// ... existing code ..."
| Parameter | Description |
|---|---|
--file | File path to edit (required) |
--instruction | Human description of the change (required) |
--code_edit | Code snippet with markers showing where to place edit (required) |
| Tool | Best For |
|---|---|
| morph-apply | Fast edits, don't need to read file first, large files, batch edits |
| Claude Edit | Small precise edits when file is already in context |
Use morph-apply when:
Use Claude Edit when:
Requires morph server in mcp_config.json with MORPH_API_KEY.