ZiliangZiliang

Site navigation

  • Mortgage comparison
  • Japan tax calculator
  • Programming
  • Algorithms
  • Machine learning
  • Misc
Engineering
Contact
中文

Site navigation

  • Mortgage comparison
  • Japan tax calculator
  • Programming
  • Algorithms
  • Machine learning
  • Misc
Engineering
Contact
Skip to live demos

Ziliang Zhang · AI applications · Data · Backend

One human.Infinite agents.

AI coding agents write the code; I write the specs, tests and guardrails that keep it honest. The results: a digit recognizer that runs in your browser, an LLM explainer backend with sign-in and quotas, and this site itself — merged only after automated checks.

Try the live demos How this site is built
spec & decision records
27
automated check scripts
25
test accuracy, in-browser model
98.4%
An endless loop: spec, build, verify, shipA light travels around the site’s ∞ logo through four stages.01SPEC02BUILD03VERIFY04SHIP
spec → agent build → automated checks → review & ship, on repeat.

01 · Live demos

Real models, real numbers. Running now.

No sign-in, no screenshots. Draw, drag and break things.

Live · machine learning in your browser

Handwritten digit recognition

Draw a digit from 0 to 9. A neural network I trained on MNIST predicts it as you draw — on your device, with nothing uploaded.

Draw here

?Waiting for your stroke.

  1. 0—
  2. 1—
  3. 2—
  4. 3—
  5. 4—
  6. 5—
  7. 6—
  8. 7—
  9. 8—
  10. 9—

What the model sees: your stroke scaled into a 20×20 box and centred by mass on a 28×28 grid, exactly how MNIST was prepared.

MLP 784→128→10int8 · 100 KBtest accuracy 98.4%LeNet-5 notes →

Interactive · Loan comparison

One loan, two ways to repay.

50M JPY · 1.5% fixed / year · 35 years · no fees or taxes

JavaScript is off. The default chart and results remain readable; controls are disabled.

Monthly · JPY
A · Equal paymentB · Equal principal
Monthly payment comparisonA: equal payment. B: equal principal. Crossings compare monthly payments, not overall cost. Use left/right arrows to inspect months.Month 1 · A 153.1K · B 181.5K JPY100K127.2K154.4K181.5KMonth 117.6y35yElapsed years
35 years
More inputs

Month 1: Equal payment JPY 153,092.22. Equal principal JPY 181,547.62.

Repayment comparison. All amounts in JPY.
A Equal paymentB Equal principal
First month153.09K153,092.22 JPY181.55K181,547.62 JPY
Total interest14.3M14,298,732.34 JPY13.16M13,156,250.00 JPY

B saves 1.14M JPY in interest, but starts with a higher payment.

Exact amounts · JPY

Equal payment

First month
153,092.22
Total interest
14,298,732.34

Equal principal

First month
181,547.62
Total interest
13,156,250.00
Open full comparison

AI explanation: switching to the Claude API, coming soon. See how it works

Tool · Japan

Japan tax calculator

From the withholding slip to income tax, refund and next year’s monthly resident tax. 2025 salary income / 2026 resident tax.

給与等の収入金額→課税所得→還付+住民税 / 月
Open the tax calculator

In design · not built yet

AI stock screener

Natural language in, explicit filters out — the model proposes, a schema validates, you confirm. Target behaviour:

“Large Japanese companies with steady dividends for 5 years”

{ "market": "JP",
  "marketCap": { "gte": "1T JPY" },
  "dividend": { "years": 5, "cut": false } }

02 · AI service design

Anatomy of one AI request.

The live loan explainer’s backend on AWS. Calling a model is one line; the other five stops are what make it safe to put in front of strangers.

  1. 01

    BROWSER

    Sign in

    Cognito authorisation code + PKCE (S256). Token kept in memory only.

  2. 02

    API GATEWAY

    Verify at the edge

    JWT checked before any code runs. AI route limited to 5 req/s, burst 10.

  3. 03

    LAMBDA

    Recompute, don’t trust

    Validates the numbers and recalculates the loan deterministically. The prompt never leaves the backend.

  4. 04

    DYNAMODB

    Daily quota

    20 explanations per user per day, conditional writes, reset at midnight Tokyo.

  5. 05

    CLAUDE API

    Model call

    Claude Opus 5.5 at low effort, via workload identity federation: a short-lived AWS token, no stored API key. Explains the numbers; never changes them.

  6. 06

    PAGE

    Render safely

    Plain text only — no HTML, no Markdown links — beside the calculator, never over it.

  • Timeouts 24 → 28 → 29 → 30 s
  • Reserved concurrency 10
  • No prompts or answers in logs
  • 7-day log retention
  • No anonymous access
  • No API keys stored

03 · How it’s built

This site is the demo.

An AI-native workflow with a human holding the pen on intent and the machines holding the line on correctness.

  1. 01

    Write the spec

    27 spec and decision records: formulas, tax rules, sources, edge cases and what is out of scope — before any code.

  2. 02

    Agents build

    Coding agents implement one reviewable branch at a time. I steer scope and design; they write most of the code.

  3. 03

    Machines verify

    25 automated checks: browser smoke tests, 120 loan scenarios, tax rules, the AI client contract, even the logo’s curvature.

  4. 04

    Review & ship

    Every deploy reruns the verification suite in GitHub Actions. Nothing merges on vibes.

Bézier construction of the logoThe ∞ logo drawn from 16 cubic Bézier curves and 2 cut lines, with anchors and control handles marked.
16 cubic Béziers + 2 cut linesk = 4(√2 − 1)/3G² continuity · checked by script

Even the logo went through the loop: written as geometric constraints, generated by symmetry, and verified for tangent and curvature continuity before it shipped.

Before agents

Data for machine learning

Profile data pipelines and data integration supporting recommendation systems.

Configuration-driven platforms

Data lake pipelines and reusable workflows driven by SQL and YAML.

Goto · Go CLI VuePress · contribution

Notes

AlgorithmsWeb API DesignHandwritten Digit Recognition

04 · Contact

Let’s build something useful.

lucienzhangzl@gmail.com
GitHub LinkedIn
© 2026 Ziliang Zhang中文