Skip to content

← All work

CS-10 · 2026 · ongoing

Mizan AI, a private financial adviser at home

A finance assistant that answers questions about my money and helps me decide, without any of it going to a cloud AI. A local model on a Mac mini fills in a form and words a sentence; code computes every figure and checks every answer.

My role
Product owner and architect; built with Claude Code
When
2026 · ongoing
Status
Live demo · being extended
72 / 72Measured
Evaluation questions passed
Qwen 3 14B on invented questions, each graded by the exact result it must produce
1Measured
Connection the brain may open
To the model. No internet, no DNS, no local network; a probe proves it on every setup
0Measured
Figures computed by the model
Every number comes from the semantic layer; a check rejects any sentence with a number that is not one of them
From question to answer
  1. QuestionIn my own words, typos included
  2. FormThe model fills a JSON schema; it can only pick what exists
  3. ChecksCode corrects what the model missed or invented
  4. Semantic layerMetricFlow computes every figure
  5. Wording checkEvery number must be one of the figures
  6. AnswerWith "How I got this"

A question becomes a small form filled in by the model. Code checks and corrects the form, the semantic layer computes the figures, the model words a sentence, and a check confirms every number in it before it is shown with a trace of how it was made.

The Mizan AI chat on a phone. Asked "How much did I spend on groceries last month?", it answers "You spent $902.25 on Groceries in October 2026." Under it, "How I got this" is open: what it understood, how spending is defined, the checks it ran, and the figures it used.
Proof: the assistant in the demo

A screenshot of the interactive demo, not a mock-up, on the invented household. Every answer carries "How I got this": what it understood, the definition of the figure, and the checks it passed.

Try it yourself →

Scope note. Every example here, and the interactive demo, uses an invented household.

The problem

I wanted to ask my finances questions in plain words (“did I spend more on groceries this month?”, “should I buy these $650 speakers?”) and trust the answers. A cloud chatbot would mean sending my ledger to someone else’s server. And any language model asked for a number will happily make one up.

So: the model runs at home, it never produces a figure itself, and every answer shows how it was made.

What it does

It’s a chat inside Mizan, my finance app. It answers questions about spending, income, savings and net worth, understands typos and follow-ups (“and in September?”), weighs decisions against my real numbers, and remembers things I tell it. It says plainly when it can’t do something, like moving money.

Every answer has a “How I got this”: what it understood, how the figure is defined, which night’s data it used, and the checks it passed.

How it stays honest

The model gets two small jobs: fill in a form, and word a sentence. Code does everything else.

  1. The model fills a form: which metric, which period, which category. The form only allows options that exist, so it can’t invent a category.
  2. Code checks the form against the question and fixes what the model missed.
  3. The semantic layer computes the figures. The model never does maths.
  4. The model words a sentence, and code rejects it if it contains any number that isn’t one of the figures. After two misses, code writes the sentence itself.

The model

Qwen 3 14B, running in Ollama on a Mac mini at home. It needs about 9 GB of memory and has no internet access. I compared four models on the same test questions: a larger, faster one scored almost as well but needed twice the memory, and a smaller one passed only after the code checks above were added. In the end, the checks mattered more than the model’s size.

Private by design

  • No cloud AI is involved at any step.
  • The model server runs as its own locked-down user, cut off from the internet, keeping no history.
  • The code that reads my data can open exactly one connection: to the model.
  • Logs record timings and status, never a question or an answer.
  • When I want a second opinion, I can ask an outside AI myself, by hand. Nothing is sent for me: the prompt is scrubbed of my amounts, dates and names first, and the answer I paste back is weighed against my own figures.

Tested before every change

72 invented questions, each graded by the exact result it must produce. A model, prompt or code change ships only if no score drops. Qwen 3 14B passes all 72, including 15 written after tuning so they couldn’t be tuned for.

My role

I was the product owner and architect. I decided what the assistant may do and what it must refuse, what the model is trusted with, and what the tests must prove. I wrote the test questions and graded the models. The code was written with Claude Code, on invented data only.

What’s not done

  • It can’t act yet. Next: changes with a preview, a confirmation and an undo.
  • Advice can reason loosely. The checks stop made-up numbers, not a real number used for the wrong point, so treat advice as a sounding board.
  • Speed. Figures take 5–10 seconds; advice usually under a minute.

What this shows

Using a language model where correctness matters: constrained output, one source of truth for numbers, checks on every answer, and a test suite as the release gate. Plus the judgement to give a model only the jobs it does reliably.