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

Amp · LLMReleased 2025-07-07

How to Use Morph V3 Large in Amp

Morph V3 Large merges proposed code edits into existing source and returns the complete updated code. Compared with Morph V3 Fast, it targets complex refactors where merge accuracy matters more than speed.

Prompts to try with Morph V3 Large in Amp

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

Read src/auth.ts and prepare a null check before session creation. Use Morph V3 Large to merge it with the complete current source, marking unchanged sections in the update, then run the relevant tests.

Morph V3 LargeAmp
Try asking
  • Prepare a refactor that extracts the repeated validation logic in src/orders.ts into one helper. Use Morph V3 Large to merge the helper and call-site changes together, preserving unrelated code.

  • Add explicit parameter and return types to the exported functions in src/formatters.ts. Prepare the intended signatures first, then use Morph V3 Large to merge the update with the complete original source and run the type checker.

  • Turn the approved review comments for src/client.ts into one update. Use Morph V3 Large to merge all changes together with a specific instruction and existing-code markers, then show the resulting diff.

  • Prepare the approved error-handling change for each affected Python module. Use Morph V3 Large separately for each complete original source and update pair, then run the focused tests.

How to set up Morph V3 Large in Amp

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

Use Spiral's MCP server

  1. Add the server

    No header and no client ID or secret: Amp registers itself with Spiral.

    amp mcp add spiral https://api.spiral.ai/mcp
  2. Sign in

    Start amp. Amp opens Spiral's sign-in page in your browser: sign in, pick the organization and click Authorize. No API key.

  3. Check it
    amp mcp doctor

Use the Spiral skill

  1. Send Amp 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 Large

    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-large",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

Morph V3 Large providers and prices

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

OpenRouterLLM
Morph: Morph V3 Large
morph/morph-v3-large

Settings you can ask for

Ask Amp for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Logprobson or off
Max tokens1 to 131072

The most output tokens to generate.

Temperature0 to 2
Top logprobs0 to 20

Every API field of Morph: Morph V3 Large is on its tool page: open its card above.

What can you do with Morph V3 Large in Amp?

Apply prepared fixes and complex refactors to project code with Morph V3 Large. Let the coding agent plan the change, then send complete original source and a specific update for merging.

Apply a reviewed bug fix

Give Morph V3 Large the current source and a prepared fix, such as a null check before session creation. Return the complete updated code for review.

Merge a complex refactor

Apply a prepared refactor that changes several functions in one module. State the intended change explicitly and mark the sections that should stay.

Add type annotations

Merge proposed TypeScript annotations or Python type hints into existing code. Supply the intended signatures in the update rather than asking the merge step to design them.

Apply several review comments together

Combine prepared changes to the same source into one update. Review the merged result as a single change instead of applying each suggestion separately.

Process a maintenance queue

Have an agent prepare maintenance edits, then use Morph V3 Large to merge each update with its corresponding current source. Validate the results before accepting them.

Merge edits during a language migration

Apply prepared signature and call-site changes in languages such as Java, Go, or Rust. Keep the migration decisions in the planning agent and send specific updates for merging.

Questions about Morph V3 Large in Amp

Can Amp use Morph V3 Large?

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

How much does Morph V3 Large cost in Amp?

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

Do I need an OpenRouter account to use Morph V3 Large in Amp?

No. Spiral runs Morph V3 Large 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 Large in Amp?

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

Does Amp wait while Morph V3 Large runs?

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

What is Morph V3 used for?

Morph V3 applies proposed code changes to existing source and returns the complete updated code. Have your agent decide what to change and prepare the update before handing off the merge.

How does Morph V3 Large differ from Morph V3 Fast?

Morph recommends Morph V3 Large for complex refactors where merge accuracy matters more than speed. Morph V3 Fast targets quicker edit application.

What should a Morph V3 prompt contain?

Use <instruction> for the specific change, <code> for the complete original source, and <update> for the proposed edit. Mark unchanged sections with // ... existing code ... rather than silently omitting them.

Which programming languages can Morph V3 edit?

Morph documents code merging for Python, TypeScript, JavaScript, Go, Rust, Java, C++, Ruby, PHP, Swift, and Kotlin. Supply the original source and the proposed change in the same language.

How much code can Morph V3 Large handle?

Morph V3 Large has a 262,144-token context window and supports up to 131,072 output tokens. Budget for the complete updated source in the response, even when the requested edit is small.

Get started

Start using Morph V3 Large in Amp

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

Paste this into Amp:

Set up Amp

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