Agent harnesses
File-driven agents with roles, memory write-back and human-approved cleanup. Every model output is validated by code before it becomes a finding.
Auckland, New ZealandAI Engineer · Full-stackPortfolio, 2026
Most of my work sits at the seam between a language model and a business that cannot afford to be wrong — an earthworks contractor's invoices, a grower's harvest targets, a factory's downtime, an immigration adviser's case file. I design the harness around the model: the contracts it must satisfy, the checks that run before anything is shown, and the record of what was never read.
§ 01 — Craft
File-driven agents with roles, memory write-back and human-approved cleanup. Every model output is validated by code before it becomes a finding.
Role-based model routing, vendor fallback, rate limits, structured output and evidence-cited answers. Models evaluated per task, not by reputation.
Long-running AI pipelines on Temporal: retries, timers and idempotent side effects, so a crashed render or a slow model never leaves half-written state.
Joining tools a business already runs — Xero, CostX, EROAD, packhouse exports, AXIS cameras — on a key that actually holds, with idempotent imports.
Python & FastAPI, PostgreSQL with row-level multi-tenancy, Next.js & TypeScript. Interfaces that read as real operations software, not templates.
Cloudflare, Vercel, Fly.io, AWS and Oracle Cloud VMs; MQTT ingestion from the edge; CI with tests that verify something real.
“What was not read or judged is reported as a gap — never as clean.”
A rule from Cairn, and from most of what I build
§ 02 — Selected work
A job-management and billing platform for earthworks contractors that follows one story end to end: work happens on site, is captured on a phone, becomes priced invoice lines, and syncs to Xero.
An integrated finance and estimating platform for a New Zealand quantity-surveying firm, joining CostX, Xero, EzzyBills, ApprovalMax and Microsoft 365 into one interface.
A targets platform being designed for an apple grower: set next season's crop (T/ha) and fruit-size targets per block, then track target against actual from orchard and packhouse exports.
A family of edge-camera analytics products. In OpsLens, cameras on the factory floor publish on-device analytics events; the cloud turns them into OEE, machine state, downtime and production counts.
A file-driven agent harness for licensed immigration advisers in New Zealand and Australia: case consistency checks, pre-submission review and drafted replies to official letters.
A local gateway that gives all my projects a single OpenAI- and Messages-API-compatible endpoint, routed to named profiles — so applications use the official SDKs and never hard-code a vendor.
doctor command that checks setup without spending quota; runs privately on a VM over an SSH tunnel
A spec-driven engine that turns a product image and a brief into 10–30 second video ads and static image ads for every platform — and a raw screen recording into a polished product demo.
§ 03 — Principles
A model can propose a fact, a verdict or an invoice line. Code checks it against the contract before anyone sees it.
A gap is reported as a gap. Silence is never allowed to look like a clean result.
Before building, I name the one join or key that must hold — and test it on real exports first.
Tests that fail first, builds that exit clean, screenshots of the real screen. Reviewing evidence is faster than trusting it.
§ 04 — Contact
arthurgao@outlook.com github.com/ArthurGao
Based in Auckland, New Zealand