Spiral gives your agent every tool with one account. Browse the tools →

Windsurf · LLM

How to Use Morph V3 Fast Batch in Windsurf

Morph V3 Fast Batch merges proposed code edits into complete source code, making it useful for routine fixes and refactors. Morph lists Morph V3 Large for trickier edits.

Prompts to try with Morph V3 Fast Batch in Windsurf

Copy an example into Windsurf, or ask in your own words.

Read src/auth.ts and prepare a null check before session creation. Use Morph V3 Fast Batch to merge the edit into the complete original, then run the authentication tests.

Morph V3 Fast BatchWindsurf
Try asking
  • Apply the approved refactor to src/parser.py with Morph V3 Fast Batch. Mark unchanged sections in the update and show me the resulting diff.

  • Use Morph V3 Fast Batch to merge the prepared API method replacements into src/client.ts. Combine changes to that file in one request and run the type checker.

  • Merge the approved regression tests into tests/test_parser.py using Morph V3 Fast Batch. Preserve the existing tests and run the parser suite.

  • Use Morph V3 Fast Batch to apply the reviewed deletion in src/legacy.ts. Include context around the removed block and inspect the diff for unrelated deletions.

How to set up Morph V3 Fast Batch in Windsurf

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Morph V3 Fast Batch

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "morph/morph-v3-fast:batch",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Windsurf finds Morph V3 Fast Batch on Spiral, shows the price and runs it.

Morph V3 Fast Batch providers and prices

Spiral runs Morph V3 Fast Batch through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Morph: Morph V3 Fast (batch)
morph/morph-v3-fast:batch

Settings you can ask for

Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Max tokens1 to 38000

The most output tokens to generate. On a reasoning model the reasoning tokens count toward it: a cap too low for the effort can end with no answer (finish_reason length).

Temperature0 to 2

Every API field of Morph: Morph V3 Fast (batch) is on its tool page: open its card above.

What can you do with Morph V3 Fast Batch in Windsurf?

Apply planned fixes and refactors to project files with Morph V3 Fast. Let the coding agent prepare each edit, then inspect the merged result and run the relevant tests.

Apply reviewed bug fixes

Merge a proposed null check or error-handling fix into the original code.

Complete small refactors

Apply an agreed function refactor while marking surrounding code to keep.

Update API call sites

Merge prepared replacements for changed method names or arguments.

Insert approved tests

Merge proposed test cases into existing test code without replacing the whole suite in the edit snippet.

Remove obsolete code

Apply a planned deletion, showing surrounding context and marking the sections to retain.

Combine review corrections

Apply several approved edits to the same source file in one merge request.

Questions about Morph V3 Fast Batch in Windsurf

Can Windsurf use Morph V3 Fast Batch?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Morph V3 Fast Batch like any built-in tool.

How much does Morph V3 Fast Batch cost in Windsurf?

Up to $0.003214 per run at the default inputs. $0.52 per 1M input tokens, $0.78 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

Do I need an OpenRouter account to use Morph V3 Fast Batch in Windsurf?

No. Spiral runs Morph V3 Fast Batch on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Morph V3 Fast Batch in Windsurf?

About two minutes: add the server, then sign in, then check it.

Does Windsurf wait while Morph V3 Fast Batch runs?

Morph V3 Fast Batch runs in the background. Windsurf starts the run, checks on it and gives you the text, json when it's ready.

What is Morph V3 Fast best used for?

Use it to apply an already planned code change. Give it the original code and an edit snippet, and it returns the merged code.

How should I format a code-edit request?

Separate the change description, complete original code, and proposed update with <instruction>, <code>, and <update> tags. Use // ... existing code ... inside the update to mark sections you want to keep.

Why did a merge remove code I wanted to keep?

Check the update snippet for missing existing-code markers. Morph warns that omitting these markers can cause deletions.

Which programming languages does Morph V3 Fast support?

Morph documents Python, TypeScript, JavaScript, Go, Rust, Java, C++, Ruby, PHP, Swift, and Kotlin among its supported programming languages.

How much code can Morph V3 Fast Batch return?

The batch model supports up to 38,000 output tokens within an 81,920-token context window. Budget for the complete merged code, including unchanged sections.

Get started

Start using Morph V3 Fast Batch in Windsurf

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Windsurf:

Set up Windsurf

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options