JRedeker/opencode-morph-fast-apply ? reverse-engineered prompt

Reverse engineered prompt

Build me an OpenCode plugin that connects to Morph’s Fast Apply API so the model can make fast, partial code edits with lazy markers like // ... existing code ... instead of needing exact matches.

I want it to work like a real editing tool, with good safety checks so it does not delete whole files by accident when markers are missing, and it should return a clean unified diff after each change. It should also have a nice branded TUI style message for edits, and if Morph fails for any reason, it should fall back gracefully and suggest using the normal edit tool.

Please make it easy to install in OpenCode with a simple config and an environment variable for the API key. If needed, look up the current Morph docs online so the API integration is correct. Keep the implementation clean, tested, and ready to use from a TypeScript project.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab