AD.
Selected work · 6 systems

I ship production systems end to end, with AI agents as my dev team.

Pham Dac Anh Duy · AI-Driven Software Engineer · HCMC → Singapore. I write the spec, the plan and the evals; agents write the code test-first; I review every diff and own the release. Below: how I work, then 6 systems taken apart.

Start the tour ↓Download CV ↗Every project has a User journey and an Architecture view. Scroll to step through.

All screens are illustrative recreations with sample data. No real client, customer or employee data is shown, and some client names are withheld.

How I build

I own the decisions. Agents do the typing.

The same five-step loop runs every project below. Each chapter ends with one line on what I did and what the agents did.

  1. 01me

    Spec

    The problem, the constraints, what “done” means, written before any code. Most bugs die here.

  2. 02me

    Plan

    Small tasks, each with the tests it must pass named up front, ordered so every step ships something.

  3. 03agents

    Agents build, test-first

    Coding agents write the failing test, then the code. Up to three sessions run in parallel on separate branches.

  4. 04me + a second model
    + fn_deduct(bill)- balance += amt+ test: same bill approved ✓

    Review

    A different model reviews each change, then I read every diff. Nothing merges on an agent’s word.

  5. 05me
    released · rollback ready

    Eval & release

    Evals and acceptance evidence, a staged release with a rollback plan, and logs I actually watch.

6 systems. Every layer.

Production & client work · 20266 projects
/ 01of 06Membership & rewards platform

VietSea Membership.

Prepaid credits for a restaurant group, where every dollar has a name on it.

The brief said “S$500 card, S$100 bonus”. The real problem was trust at the counter: every dollar in or out needs proof, and every guest must see the balance they really have. I built a ledger guests can check for themselves, from signed contract to live payments in about two weeks.

Live site ↗
Client
VietSea restaurant group, Singapore
Type
Client project · live, real money (SGD)
Role
Solo developer & client consultant
Timeline
Aug – Nov 2026
Owned
Discovery, quote, flow & DB design, build, WhatsApp integration, UAT, runbooks
  • Next.js 16
  • TypeScript
  • Supabase
  • PostgreSQL 17
  • RLS
  • WhatsApp Cloud API
  • Resend
  • Vercel
  • GitHub Actions
  • Vitest
  • PPlaywright
0
server errors in 1,094 production requests
0
ledger integrity mismatches
293
receipts & OTPs sent, 0 failed
768
automated tests across 38 routes
  1. 01Problem

    Honesty at the counter. Every credit or deduction needs proof: who did it, at which outlet, when, against which bill. And a guest must always see exactly the balance they really have.

  2. 02Key decision

    An append-only ledger with no stored balance. Deductions go through one database function, fn_deduct, that makes double charges impossible: a repeated bill returns the original entry, rows lock per member, and a unique-key race is caught and resolved.

    Trade-offThe balance is summed on every read, mistakes are fixed with reversing entries instead of edits, and a daily reconciliation job checks the sums.

  3. 03Hardest bug

    A migration adding reference codes failed on production: the append-only trigger blocked its own backfill. Staging had zero ledger rows, so it never showed there. The transaction rolled back, no data was lost, and the fix disables the trigger only inside that one migration transaction.

  4. 04Result

    1,094 production requests, 0 server errors. 246 ledger transactions, 0 mismatches. 768 automated tests.

Me vs agentsSolo. I wrote the spec, the plan and the database design; agents wrote the code test-first; I reviewed every change and signed off each release.

  1. A guest scans the QR code on their table, registers with a phone number and a 6-digit PIN, and declares the bank transfer for their first top-up. No app to install.

1/5
VietSea · MembershipUser journey
Table 12 · Outlet A
Become a member
Mobile
+65 9••• 4821
Name
Linh N.
6-digit PIN
• • • • • •
Tier · S$500 + S$100I’ve transferred
The real product · 6 screenshots

Screenshots from the admin and staff runbook I wrote for the client, taken on staging with test accounts. Phone numbers and staff names are blurred.

/ 02of 06Quotation & booking platform

Dive Resort Quotation & Booking.

From a paper note to a versioned, bilingual quote and a confirmed folio in the resort’s ERP.

A boutique dive resort in the Philippines wrote trip details on paper, retyped them in Word and lost track of which version a guest had. I led the build of a quoting and booking app where the resort’s Odoo computes every price and the app only shows it.

Client
Boutique dive resort · Philippines
Type
Client project (via TechNext) · staff-facing web app
Role
Project lead · built the app, BFF, contracts and database
Timeline
Sep – Nov 2026
Owned
React app, Hono BFF, OpenAPI contracts, Supabase schema, SSO, releases. A teammate built the Odoo API.
  • React 19
  • Vite
  • Tailwind 4
  • Hono
  • zod
  • openapi-fetch
  • Supabase Postgres
  • Vercel
  • Odoo 19
  • Vitest
3,968
tests passing, 0 failing
9
tagged releases with rollback notes
56
recorded Odoo responses used as fixtures
EN · 中文
guest quote languages
  1. 01Problem

    Quotes started on paper and were retyped into Word, with no versions and no single price source. The goal: a correct quote in ten minutes.

  2. 02Key decision

    The ERP owns every price calculation; the app only displays. A backend-for-frontend sits at the edge so the browser never talks to the ERP directly.

    Trade-offThe app is only as fast as the ERP. A circuit breaker and a 5-minute cache keep it usable, at the cost of a price list that can lag by a few minutes.

  3. 03Hardest bug

    Login took 6 seconds. A session update ran fire-and-forget; the serverless instance froze mid-query and held the only database connection. pg_stat_activity showed it. Awaiting the call, with a test pinning the order, fixed it.

  4. 04Result

    3,968 automated tests, 9 releases each with a rollback plan, quotes in English and Chinese.

Me vs agentsTech lead. Agents implemented test-first, with planning, review and implementation done by different models, up to three sessions in parallel; a teammate built the ERP API.

  1. A guest fills in “Book now” on the resort’s website, or staff enter it by hand. The app stores the inquiry and customer first, then forwards it to the CRM through an outbox, so a slow CRM never loses a lead.

1/5
Trip EstimatorUser journey
Website · Book now
Guests
4 divers · 1 non-diver
Dates
12 – 17 Mar
Interest
Fun dives + Advanced course
Send inquiry
Inquiries · outbox to CRM
Guest
Received
CRM
Guest A
09:14
sent
Guest B
08:51
retrying 2/5
Guest C
Yesterday
sent
saved first, forwarded with an idempotency key
/ 03of 06AI research & proposal worker

AI Lead-Brief Worker.

Type a company name. Get a cited research brief, a sales journey and a module shortlist.

An ERP consultancy had hundreds of unqualified leads and one person who knew enough to pick modules and price them. Every proposal waited on that person, and quotes came in five different formats. I built the AI worker that researches each lead overnight, and set the rule that made it safe: the AI produces data, the code does everything else.

Client
Internal · TechNext sales team (SE Asia SMEs)
Type
AI worker + sales portal
Role
Scrum Master & developer · built the AI worker end to end
Timeline
Oct – Dec 2026
Owned
Agent runner, durable queue, provider registry, brief contract & validators, server-side repricing, Sales Desk UI
  • Claude Agent SDK
  • DDBOS
  • Node.js
  • Supabase Postgres
  • Vercel
  • MCP · OAuth PKCE
  • ajv
  • Chart.js
  • LLangfuse
  • OpenTelemetry
41
cited sections per research brief
~10–20 min
unattended compute per lead
< $1
model cost per lead
0
prices ever written by the AI
  1. 01Problem

    Hundreds of leads, and only one person knew which modules to propose and how to price them. Every quote looked different.

  2. 02Key decision

    The AI only produces data. It fills a JSON contract, never writes a price, and the worker has no database keys: a separate service validates and saves.

    Trade-offThe AI loses freedom over layout, so I had to write a validator and a renderer for 12 block types.

  3. 03Hardest bug

    Orphaned agents on Windows. Killing the worker left its child agents alive; after a restart two agents worked the same lead. On start-up the worker now kills only children of the dead pid created after its lock time, matched by pid and start time.

  4. 04Result

    41 cited sections per brief, about 10–20 minutes and under $1 per lead.

Me vs agentsScrum Master and developer in a team of three. I built the AI worker end to end with Claude Code; teammates built the MCP server and the renderer.

  1. A salesperson adds a company: name, website, country and a note. Contacts are kept in a separate table, so names and phone numbers are never sent to the AI.

1/5
Sales Desk · LeadUser journey
+ New lead
Company
Acme Trading Corp.
Website · country
acme.example · PH
Note
Distributor, invoices from spreadsheets
Create & research
Contacts · never sent to AI
Owner•••• locked
Finance lead•••• locked
Stored in a separate table, outside every AI scope.
/ 04of 06Multilingual RAG assistant

Grounded Knowledge Assistant.

Answers dental practices in four languages, cites every claim, and refuses everything else.

A European B2B device maker wanted its website assistant to help practices onboard, find documents and check prices. The rule I set: code controls the flow, the model only writes. One model call per question, deterministic guards before and after it, and no answer without a real source.

Client
European B2B device maker · serves dental practices
Type
Website chat widget + RAG API
Role
Architect & tech lead · spec, retrieval, guardrails, eval
Timeline
Oct 2026
Owned
Spec and plan, pipeline, hybrid retrieval, guardrails, eval suite, question log; agent-written code under my review
  • TypeScript
  • Vercel Functions
  • Mistral Small
  • mistral-embed
  • MMiniSearch BM25
  • RRRF
  • Neon Postgres
  • zod
  • Vitest
  • Shadow DOM
4
languages: DE · FR · IT · EN
38/38
in-scope questions answered in eval
20/20
injection attacks blocked
1
model call per answer, no tools
  1. 01Problem

    The old bot ran on a hand-written prompt with no sources. It got prices and delivery times wrong and gave advice it was never meant to give. Practices still did not know how to onboard or reach the portal.

  2. 02Key decision

    Code controls the flow; the model only writes. One model call, no tools, with guards before and after it.

    Trade-offPattern-based guards have false negatives, and they cannot catch a made-up procedure that sounds plausible.

  3. 03Hardest bug

    A follow-up right after a price question pulled all six sources to the price list, because short messages were joined with the previous one. Retrieval now runs both versions and interleaves them, with an eval case for that exact sequence.

  4. 04Result

    Evals at 38/38, 20/20 and 19/20. Four languages. Answers in about 1.5–2.5 seconds.

Me vs agentsI wrote the spec, a 23-task plan and the evals; agents implemented test-first; a teammate later built the admin dashboard.

  1. The widget sits on the website inside a Shadow DOM, so it can’t break the page. The edge checks origin, rate limits and body size before anything else runs.

1/5
Knowledge AssistantUser journey
Assistant · DE / EN
Hallo! Fragen zu Alignern, Onboarding oder Preisen?
Wie bekomme ich Zugang zum Doctor Portal?
Edge gate
✓origin allowed
✓rate 3/10 per min
✓body 212 B ≤ 16 KB
✓schema ok
/ 05of 06Freight procurement tool

Air-freight RFQ Pipeline.

From months of raw shipment exports to a ranked carrier decision.

Every bid round, a logistics team merged months of shipment exports by hand, removed duplicate airway bills, grouped them by weight and priced each carrier’s bid against history in spreadsheets. I turned that into upload, simulate and decide, with an audit file for every step.

Client
Global semiconductor company · logistics team
Type
Decision-support tool (via TechNext)
Role
Developer
Timeline
May – Jul 2026
Owned
Pipeline logic, rules engine, simulator, Streamlit UI, Excel outputs, tests
  • Python 3.11
  • pandas
  • Streamlit
  • Plotly
  • Oopenpyxl
  • Xxlsxwriter
  • PyYAML
  • CClick
  • uv
  • pytest
3
steps: consolidate, simulate, decide
11
weight buckets per lane
4
lane scopes simulated in parallel
8
formatted Excel reports per run
  1. 01Problem

    Months of shipment exports were merged by hand, duplicate air waybills removed by eye, weights split into bands and costs priced in a spreadsheet.

  2. 02Key decision

    Pure Python business logic in core/, with every lookup table kept in YAML so rates change without code changes.

    Trade-offTwo layers to keep in sync: code and tables.

  3. 03Hardest bug

    The historical-cost lookup ignored delivery terms, so totals came out inflated. Terms became part of the lookup key, with a test for each combination.

  4. 04Result

    19,078 rows merged into 14,822 shipments, 128 duplicate waybills flagged, 95 automated tests.

Me vs agentsI owned the pipeline design and the tests; agents wrote most of the code against the spec.

  1. Analysts upload several months of raw shipment exports, as Excel or CSV. Files are merged on load and column names are matched against an alias list, so a renamed header doesn’t break the run.

1/5
RFQ PipelineUser journey
1 · Consolidate2 · Simulate3 · Decide
Drop shipment exports here · .xlsx .csv
shipments_2026-01.xlsx4,812 rows
shipments_2026-02.xlsx4,377 rows
shipments_2026-03.csv5,104 rows
Run consolidation
The real product · 3 screenshots

The real tool during a live run. The client name, file names, routes, volumes and costs are pixelated; carrier codes were already anonymised.

/ 06of 06Face-recognition attendance

Kiosk Attendance.

Hands-free clock-in on a shared tablet, with no biometric keys on the device.

A small office needed attendance without cards or a fingerprint reader, using one Android tablet by the door. I built the kiosk app, the HR web console and the backend, keeping every biometric API call behind server functions.

Client
Internal · TechNext Vietnam office
Type
Internal product · Android kiosk + HR web
Role
Solo developer
Timeline
May – Sep 2026
Owned
Kiosk app, HR web, Edge Functions, schema, multi-outlet rollout scope
  • Kotlin
  • Jetpack Compose
  • CameraX
  • ML Kit
  • Hilt
  • Next.js 16
  • React 19
  • shadcn/ui
  • Supabase Edge Functions
  • pg_cron
  • FFace++
428
attendance records over ~4 months
11
employees using it daily
6
Edge Functions, RLS on every table
0
API keys on the device
  1. 01Problem

    Clock-in with no cards and no fingerprint readers: one tablet by the door.

  2. 02Key decision

    Face search runs in the cloud, with the API key kept in a server function, never on the tablet. A blink check runs on the tablet instead of a paid liveness API.

    Trade-offFree, but weaker against a photo or video than a paid liveness check.

  3. 03Hardest bug

    Samsung tablets delivered camera frames rotated 270°. I switched detection to accurate mode, rotated images before sending and relaxed the blink threshold to cope with about 1 fps and a 3-second timeout.

  4. 04Result

    10–50 staff per tablet. Reused for a second company, growing from 5 to about 20 people on up to 3 tablets.

Me vs agentsSolo. Agents wrote most of the code from my plan; I reviewed and tested on real devices.

  1. The idle kiosk wakes when ML Kit finds a face in the camera frame. Detection runs on the device, so nothing leaves the tablet until there is a face to check.

1/5
Attendance KioskUser journey
Kiosk · front door
face detected
On device
08:52:14
Tue, 2 Dec
ML Kit · no network call yet
The real product · 8 screenshots

HR screens are the real web app running on mock data. Kiosk screens are faithful HTML rebuilds of the Android UI. All names are fake.

Contact

Building something that has to work in production?

Ho Chi Minh City · open to relocating to Singapore. I work in English every day with teams in Singapore, the Philippines and Switzerland.

© 2026 Pham Dac Anh DuyLayout inspired by Saavan Gajjar’s portfolioNext.js · React Three Fiber · Vercel