Back to all projects
Cortex Zero — by Purkora

Cortex Zero

Local AI research · 0.3.0rc1

Cortex Zero uses a progressive semantic parser to route supported requests to configured workflows. An optional local model of about 1 billion parameters helps resolve eligible ambiguity.

See routing benchmarks View source code
Routing logic · Simplified
Read requestChoose next step

Routing benchmark

Cortex Zero 0.3.0rc1 · 160 synthetic routing prompts. Moving from weighted to progressive routing with the same Lemonade model improved accuracy by 18.75 percentage points.

Progressive + Lemonade accuracy
83.75%134 of 160, up from 65.00%
Fewer model calls
94.5%55 down to 3
Fewer false routes
80.8%52 down to 10
Median deterministic routing
~1 msAMD Ryzen AI 7 350
Routing accuracy by configuration
  • Weighted index62.5%100/160 correct · 51 false routes · 0 model calls
  • Weighted + Lemonade65%104/160 correct · 52 false routes · 55 model calls
  • Progressive engine83.125%133/160 correct · 9 false routes · 0 model calls
  • Progressive + Lemonade83.75%134/160 correct · 10 false routes · 3 model calls
Suite-level accuracy
SuiteWeighted + LemonadeProgressive + Lemonade
Regression (97)85.6%86.6%
Difficult (30)30.0%70.0%
Independent (33)36.4%87.9%

Hardware and runtime

AMD Ryzen AI 7 350, Radeon 860M, Lemonade Server 2026.49.0 and Gemma 3 1B Instruct Q4_K_M. Inference for the comparison ran on CPU. A separate Vulkan smoke test exercised the Radeon 860M. ROCm inference remains unverified.

What the results cover

On the difficult and independent sets, the final configuration recognized 17/17 out-of-scope and 18/18 typo-heavy cases. Raw rows show 4/17 correct in the ambiguity category and 5/18 correct clarifications. Three model calls provide limited evidence about model reliability. The benchmark measures routing on synthetic prompts.

The release record reports 154 passing automated tests. The independent safety retest records 40 passing safety tests with an inert runner.

How progressive semantic routing works

The parser resolves supported paths before the model is considered. The selected workflow handles its own tools, knowledge and verification.

Request path from input to evidence
  1. Input and safety checks

    Receive the request, apply safety rules and resolve any pending consent. Normalize the input and recognize supported phrases.

  2. Progressive semantic routing

    Advance competing paths and identify intent, entities, scope, target and parameters. Validate each candidate against route constraints.

  3. Optional local inference

    Use the small local model for eligible competing read-only paths. The engine can choose a valid route, ask for clarification, or return no match.

  4. Knowledge and execution

    Load versioned knowledge-pack content. For supported procedures, validate the operation, enforce execution rules and wait for explicit consent when required.

  5. Verification and evidence

    Check applicable outcomes and record the route, steps and result. Report uncertainty when a check cannot establish the outcome.

Read the architecture and source references

Historical benchmark · 89.7% with fine-tuned Llama 3.2 1B

BENCHMARK RESULTS · HELD-OUT V4

How accurately does it route?

89.7%

Routing accuracy with fine-tuned Llama 3.2 1B

87 of 97 requests routed correctly, compared with 75 of 97 using the index alone. The run logged 7 false routes vs. 14 for the index alone.

Six configurations on the same 97 prompts
ConfigurationAccuracyFalse routes
Llama 3.2 1B · fine-tuned
89.7%
7
LFM2.5 1.2B · fine-tuned
87.6%
8
Gemma 3 1B · untuned
87.6%
9
Llama 3.2 1B · untuned
66.0%
10
LFM2.5 1.2B · untuned
80.4%
11
Index only (no model)
77.3%
14

Purkora scored 97 synthetic prompts once before using them for tuning. Two separate labelers had to agree on each expected result. Only 12 prompts were out of scope. This measures route selection, not whether a workflow completes a task or how it performs on live traffic.

Illustrative routing examples

Branch match

“Summarize these notes.” If a notes workflow is available, the router selects it and the workflow handles the summary.

Ask for clarification

“Work on that file.” The router asks which file and what the user wants done.

No match

When no configured branch fits a clear request, the router can return no match rather than choosing an unrelated workflow.

These are examples of the routing design, not live outputs or benchmark results.