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

Devin · LLMReleased 2026-09-18

How to Use Ternary Bonsai 2 27B in Devin

Ternary Bonsai 2 27B suits code debugging, math problems, and long-document analysis. Compared with Ternary Bonsai 27B, it retains more of its full-precision baseline's benchmark performance, according to PrismML.

Prompts to try with Ternary Bonsai 2 27B in Devin

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

Use Ternary Bonsai 2 27B to investigate the failing test in this project. Trace the relevant functions, propose the smallest fix, and run the focused test after editing.

Ternary Bonsai 2 27BDevin
Try asking
  • Use Ternary Bonsai 2 27B to explain how this project's main request handler reaches the database. Cite file paths and function names, and flag anything the code does not establish.

  • Use Ternary Bonsai 2 27B to review the current diff for boundary errors. Give one concrete failing input for each suspected bug before proposing a change.

  • Use Ternary Bonsai 2 27B with medium reasoning effort to compare the README requirements with the implementation. Return a short list of mismatches with file references.

  • Use Ternary Bonsai 2 27B to inspect the project's scheduling algorithm. Check its complexity, empty-input behavior, and tie handling, then propose focused regression tests.

How to set up Ternary Bonsai 2 27B in Devin

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

Use Spiral's MCP server

  1. Add a custom MCP

    Open Customize › MCPs. Click + and choose New MCP. Fill in:

  2. Sign in to Spiral and approve

    In Customize › MCPs, open Spiral and choose Connect. Spiral opens: sign in, pick the organization and click Authorize. No API key.

  3. Check it

    On Spiral's configuration page, click Test tools. Devin lists Spiral's tools.

Use the Spiral skill

  1. Send Devin 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 Ternary Bonsai 2 27B

    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": "prism-ml/ternary-bonsai-2-27b",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Devin finds Ternary Bonsai 2 27B on Spiral, shows the price and runs it.

Ternary Bonsai 2 27B providers and prices

Spiral runs Ternary Bonsai 2 27B through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
PrismML: Ternary Bonsai 2 27B
prism-ml/ternary-bonsai-2-27b

Settings you can ask for

Ask Devin for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top ka whole number from 0
Top p0 to 1
Logprobson or off
Max tokens1 to 32768

The most output tokens to generate.

Temperature0 to 2
Top logprobs0 to 20
Presence penalty-2 to 2
Reasoning effortnone, medium, or xhighxhigh

How much the model reasons.

Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of PrismML: Ternary Bonsai 2 27B is on its tool page: open its card above.

What can you do with Ternary Bonsai 2 27B in Devin?

Ternary Bonsai 2 27B can help trace behavior across a repository and reason through proposed fixes. Give it the failure, relevant files, and a concrete acceptance check.

Trace a bug across source files

Give Ternary Bonsai 2 27B the failing behavior and relevant source code. Ask it to trace the execution path, propose a small fix, and identify a regression check.

Explain an unfamiliar repository

Ask Ternary Bonsai 2 27B to map an entry point through the relevant modules, citing the functions responsible for each step.

Review an algorithm

Have Ternary Bonsai 2 27B examine code for boundary cases, explain its time complexity, and suggest inputs that could expose a defect.

Check a mathematical solution

Supply a problem and a proposed solution to Ternary Bonsai 2 27B. Ask it to find the first incorrect step and check the corrected result against the original conditions.

Compare lengthy specifications

Give Ternary Bonsai 2 27B the text of two specifications. Request changed requirements, conflicting statements, and short supporting passages.

Answer questions from reference text

Provide Ternary Bonsai 2 27B with relevant documentation and a focused question. Require supporting passages and an explicit statement when the answer is absent.

Prepare an incident review

Ask Ternary Bonsai 2 27B to compare a supplied event timeline with a runbook. Request contradictions, unresolved questions, and evidence for each proposed explanation.

Questions about Ternary Bonsai 2 27B in Devin

Can Devin use Ternary Bonsai 2 27B?

Yes. Add Spiral to Devin as an MCP server, and Devin can find and run Ternary Bonsai 2 27B like any built-in tool.

How much does Ternary Bonsai 2 27B cost in Devin?

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

Do I need an OpenRouter account to use Ternary Bonsai 2 27B in Devin?

No. Spiral runs Ternary Bonsai 2 27B on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Ternary Bonsai 2 27B in Devin?

About two minutes: add a custom MCP, then sign in to Spiral and approve, then check it.

Does Devin wait while Ternary Bonsai 2 27B runs?

Ternary Bonsai 2 27B runs in the background. Devin starts the run, checks on it and gives you the text, json when it's ready.

What is Ternary Bonsai 2 27B useful for?

Start with code debugging, math problems, or questions that require comparing several passages of text. PrismML highlights math and coding performance close to the full-precision baseline and lists long-document analysis as an intended use.

How much context does Ternary Bonsai 2 27B support?

PrismML documents a 262K-token context window. For document questions, ask for supporting passages alongside the answer so you can check the result.

How does it compare with Ternary Bonsai 27B?

PrismML reports that Ternary Bonsai 2 27B retains over 98% of its full-precision baseline's aggregate benchmark performance, versus 95% for Ternary Bonsai 27B. These are maker-reported benchmark results, so test the tasks you intend to run.

Which sampling settings should I start with?

For reasoning generation, PrismML recommends temperature 1.0, top-p 0.95, and top-k 20. Use those as a starting point and compare results on your own examples.

How can I get shorter responses?

PrismML recommends medium reasoning effort for shorter responses; the model defaults to xhigh. Also specify the length and format you want for the final answer.

Get started

Start using Ternary Bonsai 2 27B in Devin

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

Paste this into Devin:

Set up Devin

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