How to Use Ternary Bonsai 2 27B in Gemini CLI
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 Gemini CLI
Copy an example into Gemini CLI, 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.
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 Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: Gemini CLI 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.
Up to $0.002667 per run at the default inputs. $0.0975 per 1M input tokens, $0.65 per 1M output tokens.
Settings you can ask for
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Logprobs | on or off | ||
| Max tokens | 1 to 32768 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 | ||
| Presence penalty | -2 to 2 | ||
| Reasoning effort | none, medium, or xhigh | xhigh | How much the model reasons. |
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 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 Gemini CLI?
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.
More on Ternary Bonsai 2 27B and Gemini CLI
Overview
Ternary Bonsai 2 27B in other agents
Questions about Ternary Bonsai 2 27B in Gemini CLI
Can Gemini CLI use Ternary Bonsai 2 27B?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Ternary Bonsai 2 27B like any built-in tool.
How much does Ternary Bonsai 2 27B cost in Gemini CLI?
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 Gemini CLI plan is separate.
Do I need an OpenRouter account to use Ternary Bonsai 2 27B in Gemini CLI?
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 Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Ternary Bonsai 2 27B runs?
Ternary Bonsai 2 27B runs in the background. Gemini CLI 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.
Start using Ternary Bonsai 2 27B in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


