Skip to content

Commit 92eee5e

Browse files
morphedit as edit tool
1 parent e0cf193 commit 92eee5e

5 files changed

Lines changed: 264 additions & 246 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ OPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bas
4848
XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash
4949
```
5050

51+
### Morph Fast Apply (Optional)
52+
53+
For faster, more accurate code edits, opencode can integrate with [Morph](https://morphllm.com) - an AI model specialized for code merging at 4500+ tokens/second with 98.8% accuracy.
54+
55+
```bash
56+
# Enable Morph Fast Apply
57+
export MORPH_API_KEY=your_api_key
58+
```
59+
60+
When enabled, opencode's edit tool automatically uses Morph's intelligent code merging instead of search-and-replace, supporting multiple edits and `// ... existing code ...` syntax.
61+
5162
### Documentation
5263

5364
For more info on how to configure opencode [**head over to our docs**](https://opencode.ai/docs).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Use this tool to make an edit to an existing file.
1+
🚀 MORPH FAST APPLY - Use this tool to make an edit to an existing file.
22

33
This will be read by a less intelligent model, which will quickly apply the edit. You should make it clear what the edit is, while also minimizing the unchanged code you write.
44
When writing the edit, you should specify each edit in sequence, with the special comment // ... existing code ... to represent unchanged code in between edited lines.

0 commit comments

Comments
 (0)