Prerequisites
1
Generate Code Snippets
Add instructions for formatting edits somewhere in the system prompt for your LLM of choice. See our edit tool definition if you’re building an agent.
2
Merge with Instant Apply
Pass the abbreviated edit snippet along with the initial code to the Instant Apply endpoint.
3
Parse Final Code from Response
Collect the merged code from the response json.