Alican Rowe
Work / Flagship systems

P0xter

A prompt router using rules for complexity, privacy and cost. Routing requires no model call.

How it connects to PHLASMA

P0xter routes prompts. PHLASMA Studio runs structured CAD and cloth jobs and saves geometry and check records. The separate tower CAD loop calls the same local Qwen model P0xter uses. Direct dispatch from P0xter to Studio is planned.

Purpose and result

The purpose is to spend one person's subscriptions and local machines sensibly: plain arithmetic is meant to go to a calculator and not a model, private and routine work stays on a local model, and nothing is billed without a switch being turned on.

Three things are kept apart on this page. The configured policy is what the rules say should happen. The 23 passing tests exercise that policy against local mocks, not real models. Live behaviour was recorded on 29 and 30 November, and two more requests were recorded on 1 December and are shown below. In one of them an arithmetic question written as a sentence was not caught by the calculator rule and was answered by the local model, so the calculator route has no live recording on this page. Answer quality has not been measured, so nothing here claims that the chosen route gives the best answer.

System overview

Input

Phone or browser

A prompt enters the private server.

Policy

Rules on the host

Check arithmetic, privacy, task complexity and available routes.

Available routes

Calculator or local model

Arithmetic the rule recognises goes to the calculator. Both recorded requests below were answered by the workstation’s local model.

Current configuration. The subscription route is switched off. The second local host is planned.

Two recorded requests1 December 2026

Router app on a phone: the question what is 1840 mm divided by 16, the answer 115 mm, route Tower 4090, free, 15.8 seconds

An arithmetic question in a sentence. The router scored it easy and kept it on the local model. The calculator route was not used for this one. Route line as recorded: Tower 4090, free, 15.8 s. The running app is still labelled PHLASMA Router in its header; it is P0xter, the program this page describes.

Router app on a phone: explain a mortise-and-tenon joint in two sentences, answered by the local model, free, 7.1 seconds

A routine question, answered by the local model in 7.1 s. Project notes were attached, so the answer opens with a line about them.

Both were typed into the running app on Auto and captured from the app itself. Each cost nothing and stayed on the workstation. Route and result records · How they were captured

RoutingRules, not a model

A classifier model would spend tokens to save tokens. The router scores each prompt with fixed rules instead: length, and patterns such as a request for a proof, a design, hard engineering or depth. A score of 2 makes a prompt medium and 5 makes it hard.

The order of preference is fixed. A deterministic tool goes first when it can answer exactly. Local machines take routine and private work. A subscription route is used only for harder work, only when the prompt is not private and only while its allowance has room. A separately billed route is never chosen automatically. If a route fails, the prompt can only move to another route that satisfies the same data and spending rules.

Six decisions, computed by the policy code

PromptTier, scoreRoute chosenReason given
what is 18% of 2450?easy, −2CalculatorPlain arithmetic, no model. Answer: 18% of 2450 = 441.
what is a mortiseeasy, −2Local modelRoutine task, kept on your own machine.
Summarise this note in two sentences…easy, −2Local modelRoutine task, kept on your own machine.
What is my bank account routing number format?easy, −2Local modelPrivate pattern matched, kept on your own machine.
Prove that the XPBD stretch constraint converges…hard, 5Local modelHarder task, but no subscription route was available.
Debug this race condition, think carefully and find the root cause…hard, 6Local modelHarder task, but no subscription route was available.

Computed on 1 December 2026 with the calculator and the local model marked available, the second local machine not set up and the subscription route off, matching the recorded state of the live instance. These six rows are computed by the policy code, not recorded from the running app, and model answers are not shown in the table. The calculator row is the only evidence of that route here.

ArchitectureOne process

PartWhat it does
ClientPhone or browser, an installed web app of static files. HTTPS inside a private network, access code on every call.
ServerOne Python process on the standard library HTTP server.
JobsOne thread per prompt, events buffered so a client can re-attach.
PolicyRule scoring, tier chains, cost arithmetic.
BackendsOpenAI-compatible HTTP, the Anthropic SDK, command-line tools.
StoreSQLite: conversations, messages, cost and outcome per answer.
ConfigSettings, keys and access code, all on the host.

One process, SQLite, threads. One user and a handful of prompts a minute. There is nothing to operate beyond one file and one folder.

The server holds the keys and makes the calls. The phone never has a key, and the local model stays on localhost.

A task outlives the client. Answers stream as lines over plain HTTP, and a phone that slept can re-attach to a running job.

Subscriptions are used through their own unmodified command-line tools. The router never reads, stores or forwards a subscription login.

Money rulesEnforced on the host

Every route is marked free, plan or metered. Metered routes cannot run until paid use is switched on, and never without a price. Before each metered call the worst case is checked against a daily and a monthly limit. Subscription routes have a cap per day and per week, and stop being used once a provider reports a limit. Nothing spills into paid use.

Considered and left out

OptionWhy not now
A web framework and a separate front-end buildA second runtime for six screens and about ten routes.
PostgreSQL, a vector store, a job queueNo concurrent writers, no retrieval yet, one host.
A routing libraryTwo wire formats cover every provider in use.
Calling providers from the browserKeys on the phone and no server-side tasks. Never.

StatusAs of 1 December 2026

Working
  • The routing policy, the calculator route, the cost arithmetic and the web client's server, as code.
  • Automatic routing is the default. A person can still pin a prompt to a model by hand.
Tested
  • The router's test file passes, 23 of 23, run for this page against local mocks.
  • The six routing decisions above were computed for this page by the policy code itself.
Recorded, not re-checked here
  • The project log of 29 and 30 November records the router installed on a private workstation with one RTX 4090, a routed job answered by the local model at no cost, and the phone client reaching it over a private network.
  • Two requests were recorded on that machine on 1 December and are shown above with their answers, token counts and times: 15.8 s and 7.1 s, both on the local model at no cost. No other live logs are shown.
Switched off or absent
  • The subscription route is off. Hard prompts stay on the local model.
  • Separately billed routes are disabled.
  • A second local machine is configured as a route but has not been set up.
Planned
  • Send proven task types to the local model automatically and escalate only after a failed check.
  • Judge automatic routing on recorded outcomes: cost per answer that was marked good.

Elsewhere

p0xter.com is the standalone P0xter site. mothron.com covers Mothron, the planned local model for the DGX Spark, which is not built.

Limits

One user, one host, one process. The scoring rules are hand-written and have not been measured against outcomes. Apart from the two recorded requests, no live usage figures are published. The subscription route and the second machine are not in use, so every computed example above ends on the calculator or the local model, and both recorded requests ended on the local model.