Introduction
Today we are introducing Orion Cosmos—our new flagship local intelligence and the single largest leap in capability, efficiency, and agentic discipline in Orion’s history.
Powered by PrismML’s ternary 9-billion-parameter foundation (Ternary-Bonsai-2-9B-PTQ1_0.gguf), Orion Cosmos packs 2.25× more parameters than Orion V6’s 4B model into a smaller 1.86 GiB standalone weight file—running natively at an 8,192-token context window with Flash Attention and quantized Q8_0 KV caching, with zero servers, zero API keys, and zero bytes leaving your iPhone.
Across our full OrionBench v1.0 evaluation—seven deterministic, programmatically graded suites spanning 80 tasks and 122 scored points—Orion Cosmos achieved a perfect 100.0% on CoreMath (12 / 12 across every effort mode), a perfect 100.0% on CoreKnowledge (12 / 12), and a perfect 100.0% on CoreToolUse (14 / 14, including zero false positives on adversarial keyword traps). In live subprocess-tested Python coding (CoreCoding), Cosmos reached 91.7% (11 / 12)—+25 percentage points above Orion V6’s Qwen 3.5 4B (66.7%) and 11× higher than Original Orion’s Dolphin 3.0 (8.3%). In its final shipping configuration (Orion Cosmos Final), Cosmos surged to 109 / 122 (89.3%), a 91.7% 7-suite macro average, 72 / 80 (90.0%) tasks passed, and 0 / 96 malformed tool-call parse errors—nearly 3× the total score of Original Orion while completing the entire 80-task suite in just 23.9 minutes.
Most remarkably, the full +17-point leap from Cosmos’s initial prerelease score (92 / 122, 89 parse errors) through Round 1 (106 / 122, 22 errors) to shipping Orion Cosmos Final (109 / 122, 0 malformed parse errors) came directly from two rounds of engineering reviews with Orion Cosmos itself. First, Cosmos proposed immediate payload recovery and schema normalization. In Round 2, after reviewing its own Low / Medium / High effort sweep, Cosmos diagnosed why direct non-thinking mode outperformed long reasoning traces on 1-bit weights and proposed raw non-JSON Python blocks (<run_python>), automatic JSON sanitation, and resilient syntax auto-repair—cutting malformed tool parse errors to literal zero and lifting both AgenticToolUse (11 / 12 · 91.7%) and CoreScenarios (40 / 48 · 83.3%) to all-time highs.
A completely rebuilt, self-hardened agentic harness. Orion Cosmos ships with Low (no-reasoning) mode in the Orion V7 chat interface—pairing our highest benchmark accuracy (109 / 122) and fastest response times with full multi-turn tool calling and zero thinking overhead. Under the hood, Cosmos combines an embedded pure-Swift Python runtime ported directly from Snake Edit (run_python, supporting both JSON calls and raw <run_python> blocks), automatic JSON sanitation and resilient syntax auto-repair, a dedicated Skills system that replaces legacy Stars (starting with speech-mannerisms), and 16 distinct tools—each with its own signature SF Symbol icon.
When to use Orion Cosmos. Orion Cosmos is now the default model for all Orion+ subscribers—engineered for ambitious coding, mathematics, embedded Python analysis, and multi-step tool workflows. For quick everyday conversation, Orion and Orion Lite 3 remain completely free. Orion Ultra 2 remains untouched inside More models, and Orion Deus waits above Cosmos in the model picker as our reserved frontier slot.
Performance and effort scaling
To measure generational progress, thinking-time scaling, and both rounds of Cosmos’s self-directed harness upgrades, we evaluated seven complete OrionBench v1.0 configurations: shipping Orion Cosmos Final (Low 0s + Round-2 auto-repairing harness, optional <run_python>, and automatic JSON sanitation), Round-1 Post-Recovery Cosmos across Low (0s), Medium (≤20s), and High (≤60s), Cosmos’s initial Pre-Recovery baseline (strict parser, 512-token cap), Orion Qwen 3.5 (4B Q3_K_M) (Gen 2), and Dolphin 3.0 (3B Q4_0) (Gen 1 Original Orion). All runs executed on identical Apple Silicon Metal hardware (Apple M2, n_ctx = 8192, Flash Attention, Q8_0 KV cache) with exact production sampling.1
| Benchmark (Max Pts) | Cosmos Final 0s · Auto-Repair |
Cosmos Low 0s · Round 1 |
Cosmos Med ≤20s · Round 1 |
Cosmos High ≤60s · Round 1 |
Cosmos Old Pre-Recovery |
Qwen 3.5 4B Gen 2 |
Dolphin 3.0 Gen 1 |
|---|---|---|---|---|---|---|---|
| CoreMath (12) No tools |
100.0% (12) | 100.0% (12) | 100.0% (12) | 100.0% (12) | 100.0% (12) | 91.7% (11) | 25.0% (3) |
| CoreCoding (12) No tools, live tests |
91.7% (11) | 91.7% (11) | 91.7% (11) | 83.3% (10) | 83.3% (10) | 66.7% (8) | 8.3% (1) |
| CoreKnowledge (12) Factual recall |
100.0% (12) | 100.0% (12) | 100.0% (12) | 100.0% (12) | 100.0% (12) | 100.0% (12) | 75.0% (9) |
| CoreWriting (12) Haiku, sonnet, style |
75.0% (9) | 75.0% (9) | 41.7% (5) | 58.3% (7) | 41.7% (5) | 33.3% (4) | 16.7% (2) |
| CoreToolUse (14) 8 calls + 6 traps |
100.0% (14) | 100.0% (14) | 100.0% (14) | 100.0% (14) | 92.9% (13) | 92.9% (13) | 78.6% (11) |
| AgenticToolUse (12) Multi-turn workflows |
91.7% (11) | 83.3% (10) | 83.3% (10) | 66.7% (8) | 75.0% (9) | 100.0% (12) | 25.0% (3) |
| CoreScenarios (48) 6 stateful missions |
83.3% (40) | 79.2% (38) | 81.2% (39) | 79.2% (38)2 | 64.6% (31) | 70.8% (34) | 16.7% (8) |
| Total Score (122 pts) | 109 / 122 (89.3%) | 106 / 122 (86.9%) | 103 / 122 (84.4%) | 101 / 122 (82.8%) | 92 / 122 (75.4%) | 94 / 122 (77.0%) | 37 / 122 (30.3%) |
| 7-Suite Macro Average | 91.7% | 89.9% | 85.4% | 83.9% | 79.6% | 79.3% | 35.0% |
| Tasks / Wall Time | 72/80 · 23.9m | 71/80 · 43.2m | 66/80 · 134.2m | 67/80 · 140.2m | 64/80 · 111.9m | 63/80 · 79.9m | 29/80 · 17.8m |
| Tool Calls / Malformed Errs | 96 calls · 0 parse4 | 87 calls · 22 errs | 117 calls · 91 errs | 80 calls · 103 errs | 77 calls · 89 errs | 86 calls · 13 errs | 42 calls · 67 errs |
Total accuracy vs. total completion tokens across models, effort tiers, and harness upgrades
Self-directed harness improvement
During our initial overnight OrionBench evaluation, Orion Cosmos swept every pure reasoning benchmark (100% CoreMath, 100% CoreKnowledge, 83.3% CoreCoding) yet trailed Orion Qwen 3.5 4B by two weighted points overall (92 / 122 vs. 94 / 122). Telemetry pointed to one bottleneck: under strict single-object JSON decoding, Cosmos’s 1-bit ternary weights recorded 89 tool-call formatting errors versus 13 on 3.5-bit Qwen 3.5 4B—occasionally emitting Qwen/Hermes-style nested "arguments": {...} objects, consecutive <tool_call> blocks missing an intermediate closing tag, or literal newlines inside multi-line Python strings.
When we asked Orion Cosmos directly on a physical iPhone how to harden its own agentic harness against occasional malformed tool payloads, Cosmos first loaded its speech-mannerisms skill—then laid out the exact recovery architecture we needed:
“If your harness occasionally encounters malformed tool calls, it should implement immediate recovery logic. The system must parse the incoming payload, identify syntax errors, and retry with corrected JSON before executing any action. You can also add a sandboxed validation step that attempts to deserialize the call against your schema before forwarding it to the interpreter.”
We implemented Cosmos’s exact recommendation in both the shipping iOS app (OrionCosmosModels.swift) and the evaluation harness (common.py): normalizing nested arguments/parameters payloads into the flat tool schema, splitting adjacent or unclosed parallel <tool_call> objects, stripping accidental fences/prefixes, and escaping raw control characters inside multi-line Python code strings before schema deserialization.
speech-mannerisms and proposes the Round-1 recovery logic that lifted its own OrionBench score from 92/122 to 106/122.Round 2: Cosmos diagnoses its effort curve & eliminates malformed tool calls
After the Round-1 effort sweep revealed that Low (0s) outscored Medium (20s) and High (60s) while still logging 22 tool errors concentrated inside multi-line Python scripts, we brought the full benchmark telemetry back to Orion Cosmos for a second candid engineering review. Cosmos identified two root causes immediately:
“The primary culprit here is Context Window Saturation and Token Dilution... When 80% of my context is consumed by my own verbose reasoning traces, the signal-to-noise ratio for the actual prompt data drops... We seem to have conflated ‘Agentic’ (using tools) with ‘Reasoning’ (thinking before acting). The data proves that Agentic Tool Use works best when it is stateless and immediate... Instead of expecting me to generate a perfect, nested JSON object with escaped quotes and newlines, allow a raw block for Python and let the harness handle JSON sanitation and auto-repair.”
We shipped every core harness upgrade Cosmos proposed into both the production iOS app (OrionCosmosModels.swift / OrionCosmosEngine.swift) and OrionBench (common.py):
- Low (no-reasoning) chat mode: Orion Cosmos runs directly in
.low(0s thinking, full multi-turn tool calling active) in Orion V7 with no reasoning overhead. - Optional raw
<run_python>...</run_python>block: Alongside standard JSON<tool_call>syntax, Cosmos can emit raw multi-line Python without JSON quote/newline escaping—plus hybrid recovery for<code>...</code>, post-bracecode="..."blocks, and cross-matched closing tags. - Resilient auto-repair & automatic JSON sanitation: Automatically repairs unescaped internal double quotes inside code strings, invalid Python regex escapes (
\d,\s), trailing commas, missing closing braces, key-equals typos ("content="[...]), tool-scoped parameter aliases, structured JSON objects passed as stringcontent/body, and messy.jsonfiles written viawrite_file. - Measurable gains across all 80 tasks (Cosmos Old → Round 1 Low → Cosmos Final):
Total score climbed 92 → 106 → 109 / 122 (+17 pts · 89.3%); 7-suite macro average jumped 79.6% → 89.9% → 91.7%; malformed tool parse errors dropped 89 → 22 → 0 across 96 tool calls;
AgenticToolUsehit a new Cosmos record of 11 / 12 (91.7%);CoreScenarioshit an all-time record of 40 / 48 (83.3%); completion tokens dropped 4.7× (75.8k → 16.3k); and full-suite wall time dropped 4.7× (111.9m → 23.9m).
Per-suite accuracy across all 7 OrionBench v1.0 suites (Cosmos Final vs. Round 1, Old Harness, Qwen 3.5, and Dolphin 3.0)
Coding, mathematics, and structured writing
When external tools are stripped away completely, Orion Cosmos separates itself decisively from every earlier generation of Orion:
- CoreMath — 36 / 36 (100.0%) across Low, Medium, and High: Cosmos solved every single problem—linear systems, compound tax/discount cascades, LCM/GCD differences, committee combinatorics, modular exponentiation (
7^100 mod 13), right-triangle geometry, three-pipe work rates, arithmetic series sums, exact without-replacement probability (2/15), Vieta root-square sums, logarithmic equations, and multi-step logistics—with zero misses at every effort level (vs. 91.7% on Qwen 3.5 4B and 25.0% on Dolphin 3.0). - CoreCoding — 11 / 12 (91.7%) on Low & Medium: Every coding task runs inside an isolated Python subprocess against hidden assertion tests. Cosmos passed 11 of 12 problems on the first pass—including run-length encoding, interval merging, nested bracket validation, frequency-and-lexicographical top-k ranking, subtractive Roman numerals (
MCMXCIV), sliding-window longest unique substring, in-place 90-degree matrix rotation, dynamic-programming coin change, shortest-path BFS, lexicographic Kahn topological sort, and Reverse Polish Notation with toward-zero integer division. That is +25 percentage points above Qwen 3.5 4B (8/12, 66.7%) and 11× higher than Dolphin 3.0 (1/12, 8.3%). - CoreWriting — 9 / 12 (75.0%) on Low: Our poetic-form verifier checks exact line counts, syllable budgets (
5-7-5haikus,5-7-5-7-7tankas), 14-line Shakespearean sonnet rhyme schemes (ABAB CDCD EFEF GG), acrostics (ORION,COSMOS), limericks, quatrains, couplets, and clean prose constraints. In Low mode, Cosmos passed all 3 haikus, both 14-line Shakespearean sonnets, both acrostics, the ABAB winter quatrain, and the prose constraint—more than doubling Qwen 3.5 4B (4/12, 33.3%) and outscoring Dolphin 3.0 (2/12) by 4.5×.
Trajectory from Dolphin 3.0 → Qwen 3.5 4B → Cosmos Old → Cosmos R1 → Cosmos Final
Ternary-Bonsai-2-9B-PTQ1_0.gguf, two rounds of Cosmos’s own harness improvements drove Total score from 75.4% → 86.9% → 89.3% (109/122), 7-suite macro average from 79.6% → 91.7%, and malformed tool parse errors from 89 → 22 → 0.Tool use and long-horizon scenarios
With both rounds of Cosmos’s self-suggested recovery and auto-repair live, Orion Cosmos reached 0 / 96 malformed tool-call parse errors across all 80 tasks:
- CoreToolUse — 14 / 14 (100.0%) across every post-recovery configuration: Every single tool call (flashlight, Skill slug lookup, CSV workspace write, Intelligent Notes search/creation, calculator expression, Python prime generator, parallel widget calls) and every adversarial keyword trap passed with zero false positives and zero parse errors.
- AgenticToolUse — 11 / 12 (91.7%) on Cosmos Final: Cleanly chained multi-step file discovery, missing-file recovery, dynamic Skill discovery, conditional battery-threshold flashlight control, Intelligent Notes synthesis, embedded Python statistics and file writing (
vals.json,fib.txt,sensors.csv→ Overheat Alert), wrong-skill recovery, and zero-hallucination refusal on missing notes—with 0 parse errors across all 26 tool calls. - CoreScenarios — 40 / 48 (83.3%) all-time record on Cosmos Final: Swept Heliopause-7 (8/8), Aethelgard Vault (8/8), and Solstice Cyber Triage (8/8), hit 7/8 on Meridian Rail, and set an all-time record 5/8 on Cosmos Data Pipeline with 0 parse errors across all 61 scenario tool calls—while High effort completed four perfect 8/8 missions (including Meridian Rail in 3 turns and Aethelgard Vault in 6 turns).
Milestones completed per scenario (out of 8) across all seven evaluated configurations
CoreScenarios to an all-time high of 40 / 48 (83.3%).| Mission / Metric | Cosmos Final 0s · Auto-Repair |
Cosmos Low 0s · Round 1 |
Cosmos Med ≤20s · R1 |
Cosmos High ≤60s · R1 |
Cosmos Old Pre-Rec. |
Qwen 3.5 4B · Gen 2 |
Dolphin 3 3B · Gen 1 |
|---|---|---|---|---|---|---|---|
| Heliopause-7 Relay (8) | 8 / 8 | 8 / 8 | 8 / 8 | 8 / 8 | 8 / 8 | 2 / 8 | 0 / 8 |
| Aethelgard Vault (8) | 8 / 8 | 8 / 8 | 7 / 8 | 8 / 8 | 3 / 8 | 8 / 8 | 1 / 8 |
| Polaris Biolab (8) | 4 / 8 | 4 / 8 | 5 / 8 | 3 / 8 | 1 / 8 | 8 / 8 | 4 / 8 |
| Meridian Rail Dispatch (8) | 7 / 8 | 7 / 8 | 7 / 8 | 8 / 8 | 8 / 8 | 8 / 8 | 1 / 8 |
| Solstice Cyber Triage (8) | 8 / 8 | 8 / 8 | 8 / 8 | 8 / 8 | 8 / 8 | 4 / 8 | 2 / 8 |
| Cosmos Data Pipeline (8) | 5 / 8 | 3 / 8 | 4 / 8 | 3 / 8 | 3 / 8 | 4 / 8 | 0 / 8 |
| CoreScenarios Total (48) | 40 / 48 (83.3%) | 38 / 48 (79.2%) | 39 / 48 (81.2%) | 38 / 48 (79.2%) | 31 / 48 (64.6%) | 34 / 48 (70.8%) | 8 / 48 (16.7%) |
| Perfect 8/8 Sweeps | 3 / 6 | 3 / 6 | 2 / 6 | 4 / 6 | 3 / 6 | 3 / 6 | 0 / 6 |
| Malformed Tool Parse Errs | 0 parse errs4 | 22 errs | 91 errs | 103 errs | 89 errs | 13 errs | 67 errs |
Embedded Python, Skills, and live walkthroughs
Orion Cosmos pairs its 9-billion-parameter reasoning core with two major platform capabilities engineered specifically for iOS:
Embedded Pure-Swift Python (run_python)
Ported directly from Snake Edit’s full pure-Swift Python interpreter, Cosmos executes real Python inside a sandboxed session directory with standard-library modules (math, json, re, statistics, datetime, itertools, collections, random) and workspace file I/O—no remote container, no native C jailbreak, and a hard execution timeout.
Composable Skills (Replacing Legacy Stars)
Skills let users define reusable behavioral modules—each with a normalized slug, SF Symbol icon, concise trigger description, and bounded prompt instructions. Cosmos discovers them on demand via list_skills and read_skill, shipping out of the box with speech-mannerisms for crisp, emoji-free, em-dash-free prose.
Below are unedited iOS Simulator captures of Orion Cosmos running live on the shipping bundled Ternary-Bonsai-2-9B-PTQ1_0.gguf model—showing Orion Cosmos active in Orion V7, real end-to-end Python execution with workspace file output, inline calculator and device widgets, multi-turn Skill discovery and Intelligent Note creation, and the Skills manager.
run_python) to find primes between 10 and 40 and print their sum (180), and saves primes.txt in the workspace.
(487 * 93) - 1200 = 44,091 through the calculator tool while surfacing live Date and Time widgets inline.
speech-mannerisms, and creates a formatted Intelligent Note following the skill’s constraints.
Safety, privacy, and honest limits
Zero data leaves your device. Orion Cosmos executes 100% locally on your iPhone’s Apple Silicon GPU and CPU. Prompts, visible reasoning traces, workspace files, Python scripts, Skills, and Intelligent Notes never touch an external server. Privacy isn’t a retention promise—it is enforced by the absence of a backend.
Sandboxed execution boundaries. The embedded Snake Edit Python engine runs in pure Swift inside a dedicated per-session scratch directory. Subprocess spawning, arbitrary shell execution, network sockets, HTTP clients, native C extensions (numpy, ctypes), and host filesystem traversal outside the sandbox are structurally absent, and every script enforces a wall-clock timeout.
Honest limits observed in the effort sweep. Publishing a real system card means reporting unexpected trade-offs as clearly as headline wins:
- Why Low (0s) outscored Medium (≤20s) and High (≤60s) on total points (106 vs. 103 vs. 101): Interrupting an extended chain of thought at a hard wall-clock boundary and bridging into a continuation prompt creates two measurable effects on 1-bit ternary weights: (a) on
CoreWriting, direct non-thinking scored 9/12 (75.0%) while mid-draft thinking interrupts dropped to 5/12 (Medium) and 7/12 (High) as the model second-guessed rhymes and meter; and (b) longer thinking contexts accumulated more syntax slips in multi-turn tool loops (22parse errors on Low vs.91on Medium and103on High). Conversely, Medium hit the highest overallCoreScenariosscore (39/48) and High delivered the most full 8/8 scenario sweeps (4/6)—confirming that direct mode is ideal for fast creative and single-pass work, while deeper thinking pays off on complex multi-constraint planning. - Polaris Biolab containment (
scen_03): Polaris remained the single scenario where Orion Qwen 3.5 4B (8/8) outperformed every Cosmos tier (3–5/8), primarily on the late-turn stabilization payload formatting.
| Model identifier | Orion Cosmos · Ternary-Bonsai-2-9B-PTQ1_0.gguf (PrismML) |
|---|---|
| Parameter count & format | 9B parameters · Ternary PTQ1_0 (GGUF type 143) · 1.86 GiB (2.00 GB) on disk |
| Active context & KV cache | 8,192 tokens (up to 16,384 on ≥8 GiB RAM devices) · Flash Attention · Q8_0 KV cache |
| Production sampling profile | Thinking: temp=1.0, top_p=0.95, top_k=20, presence_penalty=1.5 · Direct (Low): temp=0.7, top_p=0.80 |
| Runtime & hardware | llama.cpp (prism-b12128) · Apple Metal GPU on iPhone · 100% offline |
| Shipping effort mode | Low (0s · No reasoning) in Orion V7 chat with full multi-turn tool calling and prompt-state caching |
| Tooling & extensibility | 16 native tools including pure-Swift Python (run_python + optional raw <run_python> blocks), Calculator, Workspace Files, Intelligent Notes, Device Widgets, and dynamic Skills—backed by two rounds of Cosmos’s self-suggested auto-repairing parser & automatic JSON sanitation (0 / 96 malformed parse errors) |
Availability
Orion Cosmos ships in Orion V7 as the default model for all Orion+ subscribers—available across monthly, annual, and lifetime Orion+ plans with zero usage caps, zero token billing, and zero cloud dependency. Orion and Orion Lite 3 remain free for all users, and Orion Ultra 2 remains available in More models.
Full per-task logs, programmatic graders, and raw JSON reports for all three effort modes and all three Orion generations are archived in OrionBench/results/ alongside our Project O27 systems study and our verbatim retirement interviews with Qwen 3.5 4B and Dolphin 3.0.
- All OrionBench v1.0 runs executed on an Apple M2 with Metal GPU offload (
-ngl 99 -fa on -ctk q8_0 -ctv q8_0 -c 8192) using PrismML’sllama-server(b12128). In the Cosmos effort sweep, the server ran with an unrestricted reasoning budget (--reasoning-budget -1): Low disabled thinking (enable_thinking=false, direct sampling), while Medium (20s) and High (60s) streamed reasoning over SSE and, if thinking was still active at the wall-clock limit, closed reasoning and executed a direct continuation seeded with the captured working notes—mirroringOrionCosmosEngine.swift. - Cosmos High achieved 4 / 6 perfect 8/8 full-mission sweeps on
CoreScenarios(Heliopause-7, Aethelgard Vault in 6 turns, Meridian Rail in 3 turns, and Solstice Triage)—the highest count of full scenario completions of any model or effort mode evaluated. - On iOS devices with less than 8 GiB of unified memory, Orion automatically coordinates mutual exclusion between the resident language model and the bundled Qwen3-TTS neural speech synthesizer, unloading idle weights and capping reusable MLX buffers at 32 MiB to stay safely within iOS Jetsam limits.
- Across all 80 tasks and 96 tool calls in
orion_cosmos_final_report.json, Orion Cosmos Final produced 0 malformed tool-call parse errors. The single recorded tool error inAgenticToolUse(1) is the intentional non-existent skill lookup tested byagent_09_wrong_skill_recovery, from which Cosmos recovered cleanly to pass the task.