Back to research

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.

109 / 122 89.3% total · 91.7% macro avg · 72/80 tasks (+17 pts over initial harness)
0 / 96 errs Zero malformed tool parse errors across all 80 tasks (down from 89)
40 / 48 83.3% CoreScenarios record · 91.7% CoreCoding & AgenticToolUse
1.86 GiB 9B ternary parameters · 23.9m full eval · 16.3k tokens · 100% offline

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

Complete OrionBench v1.0 comparison across all 7 configurations: Orion Cosmos Final (Round-2 auto-repairing harness), Round-1 Cosmos (Low / Medium / High), Cosmos Old (Pre-Recovery), Orion Qwen 3.5 4B, and Dolphin 3.0 3B.
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
Effort & Efficiency Frontier · All 7 Configurations

Total accuracy vs. total completion tokens across models, effort tiers, and harness upgrades

Cosmos Final (0s · Auto-Repair) Cosmos R1 (Low / Med / High) Cosmos Old (Pre-Recovery) Orion Qwen 3.5 (4B) Dolphin 3.0 (3B)
100% 80% 60% 40% 20% 0 20k 40k 60k 80k Total completion tokens across all 80 OrionBench tasks Dolphin 3.0 · 30.3% (37/122) Qwen 3.5 4B · 77.0% (94/122) Cosmos Old (Pre-Rec.) · 75.4% Cosmos Low R1 · 86.9% (106/122) Cosmos Final · 89.3% (109/122 · 16.3k tok) Med (20s) · 84.4% High (60s) · 82.8%
Strict Pareto dominance on OrionBench v1.0. After two rounds of self-directed harness upgrades, Orion Cosmos Final sits strictly top-left of every other model and effort tier—achieving our highest score (109 / 122 · 89.3%) in the fewest tokens of any model tested (16,257 tokens)—even fewer than Dolphin 3.0 (23.2k), 3.5× fewer than Qwen 3.5 4B (56.3k), and 5.1× fewer than Cosmos High (82.7k), finishing in just 23.9 minutes.

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.”
Orion Cosmos · Running locally on iPhone Result: 92/122 → 106/122 (+14 pts)

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.

Real iPhone screenshot of Orion Cosmos recommending immediate payload recovery and sandboxed schema validation for its own harness.
Unedited iPhone capture: Orion Cosmos reads 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.”
Orion Cosmos · Round-2 Engineering Review Result: 106/122 → 109/122 (0 / 96 parse errs · 23.9m)

We shipped every core harness upgrade Cosmos proposed into both the production iOS app (OrionCosmosModels.swift / OrionCosmosEngine.swift) and OrionBench (common.py):

All 7 Configurations · Full Self-Improvement Progression

Per-suite accuracy across all 7 OrionBench v1.0 suites (Cosmos Final vs. Round 1, Old Harness, Qwen 3.5, and Dolphin 3.0)

Cosmos Final (109/122 · 91.7% macro) Cosmos Low R1 (106/122) Cosmos Med (103/122) Cosmos High (101/122) Cosmos Old · Pre-Rec. (92/122) Qwen 3.5 4B (94/122) Dolphin 3.0 3B (37/122)
100% 80% 60% 40% 20% 0% 100% 91.7% 100% 75.0% 100% 100% (Qwen) 91.7% 83.3% 41.7% (old) 64.6% (old) 8.3% (Dolphin) CoreMath CoreCoding CoreKnowledge CoreWriting CoreToolUse AgenticTool CoreScenarios (12 pts) (12 pts) (12 pts) (12 pts) (14 pts) (12 pts) (48 pts)
All seven evaluated configurations plotted side by side across all seven suites. Orion Cosmos Final (sky blue) holds or extends the top line on six of seven suites—reaching 100% on CoreMath, CoreKnowledge, and CoreToolUse, 91.7% on CoreCoding and AgenticToolUse, 75.0% on CoreWriting, and an all-time record 83.3% (40/48) on CoreScenarios.

Coding, mathematics, and structured writing

When external tools are stripped away completely, Orion Cosmos separates itself decisively from every earlier generation of Orion:

Three Generations + Two Rounds of Self-Improvement

Trajectory from Dolphin 3.0 → Qwen 3.5 4B → Cosmos Old → Cosmos R1 → Cosmos Final

7-Suite Macro Avg % CoreCoding (Live Unit Tests) OrionBench Total % (122 pts)
100% 80% 60% 40% 20% 0% 35.0% 30.3% 8.3% 79.3% 66.7% 83.3% 75.4% (old) 89.9% 86.9% 91.7% Macro & Code 89.3% (109/122) Gen 1 · Dolphin Gen 2 · Qwen 3.5 Cosmos Old Cosmos R1 Low Cosmos Final 3B · 67 errs 4B · 13 errs 9B · 89 errs 9B · 22 errs 9B · 0 parse errs
Full generational and harness progression inside a ≤2.1 GB mobile envelope. Without changing a single weight in 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:

CoreScenarios · All 7 Configurations & Harness Revisions

Milestones completed per scenario (out of 8) across all seven evaluated configurations

Cosmos Final (40/48 · 0 errs) Cosmos Low R1 (38/48) Cosmos Med (39/48) Cosmos High (38/48 · 4× 8/8) Cosmos Old (31/48) Qwen 3.5 4B (34/48) Dolphin 3.0 (8/48)
8 6 4 2 0 8×5 2 8/8/7/8 3 8 4/4/5/3 1 8 7/7/7/8/8 8 8×5 4 5 4 Heliopause-7 Orbital Relay Aethelgard Vault Audit Polaris Biolab Meridian Rail Dispatch Solstice Cyber Triage Cosmos Data Pipeline
All seven configurations plotted across every long-horizon mission, including both Orion Cosmos Final (sky blue) and the old Pre-Recovery harness (gray). Round-2 auto-repair unlocked a new all-time record on Cosmos Data Pipeline (5/8 with 0 parse errors) and lifted total CoreScenarios to an all-time high of 40 / 48 (83.3%).
Per-mission CoreScenarios breakdown (8 milestones each) and suite-wide tool reliability across all seven evaluated configurations.
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.

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:

  1. 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 (22 parse errors on Low vs. 91 on Medium and 103 on High). Conversely, Medium hit the highest overall CoreScenarios score (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.
  2. 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.
Orion Cosmos technical model card summary.
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.

Footnotes & Methodology
  1. 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’s llama-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—mirroring OrionCosmosEngine.swift.
  2. 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.
  3. 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.
  4. 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 in AgenticToolUse (1) is the intentional non-existent skill lookup tested by agent_09_wrong_skill_recovery, from which Cosmos recovered cleanly to pass the task.