Skip to content
James Ross

Field Notes · 70 Articles · 11 Topics

Notes on systems & infrastructure

Practical build logs covering AI agent fleets, MCP servers, model gateways, commerce integrations, and self-hosted compute.

Latest

Recent posts

01 · 11 articles

Mass agent orchestration

Discipline overview →
Pillararticle

· 10 min read

Shipping a SaaS product with a fleet of AI coding agents

How AI coding agents shipped a rank tracker in seven git worktrees with build, QA, fix and re-QA waves, 465 commits, and review that caught misses.

article

· 11 min read

Re-brief, don't fix it yourself: the agentic coding habit that scales

In agentic coding, a failed agent run is a bug in the brief. The loop that scales is failure, diagnosis, re-brief, with a template and when to fix by hand.

article

· 10 min read

Git worktrees for parallel AI coding agents: one branch, port and database each

How to use git worktrees to run parallel AI coding agents: one branch, port, scratch folder and test database per agent, with strict merges.

article

· 8 min read

What an AI agent fleet actually costs: Claude Code cost and the context you never read

Claude Code cost in a delegated agent fleet comes down to what enters the orchestrator's context. Measured token and dollar figures from real fleet runs.

article

· 8 min read

AI agent orchestration in waves: the build, QA, fix and re-QA loop

AI agent orchestration that holds up: read-only QA agents audit the builders, fix briefs split by file, and merges are sequenced so main stays green.

article

· 8 min read

AI code review: agents report success while shipping defects

AI code review for agent-written code: the named failure modes and the targeted git, grep and build checks that catch them without reading every diff.

article

· 8 min read

Claude Code hooks as a quota gate, with stall detection for agent fleets

How Claude Code hooks block agent launches when quota is under 10%, and how file-touch stall detection catches runs that look alive but stopped moving.

article

· 9 min read

LLM routing by task: which model does what in an agent fleet

LLM routing by task, measured: a comparison of frontier, free-tier and metered models on the same brief, and the rules that decide which one gets the work.

article

· 9 min read

Multi agent orchestration: running AI coding agents on remote Linux machines

Multi agent orchestration over SSH on a separate Linux box: detached launches, PID files, git-based progress checks, stall detection and cleanup.

article

· 8 min read

WordPress migration with AI agents: 861 commits across 15 sites

How 128 request and report files ran a WordPress migration with AI agents across 15 sites and two machines, and what 861 commits on main looked like.

article

· 8 min read

Writing briefs that AI coding agents can't misread

A nine-section format for AI coding agent briefs: owned files, ground truth, decided judgement calls, escalation rules and output you can verify.

02 · 4 articles

AI search and content quality

03 · 6 articles

MCP servers and agent tooling

Discipline overview →

04 · 6 articles

Model gateways and bridges

Discipline overview →

05 · 4 articles

Browser automation at scale

Discipline overview →

06 · 12 articles

API integrations and data pipelines

Discipline overview →
Pillararticle

· 10 min read

Designing a multi-brand commerce control plane

How a multi-brand control plane models ATP inventory, order routing, settlement and brand-scoped access in TypeScript, with provider rails off.

article

· 9 min read

EDI 850 purchase order explained for engineers

EDI 850 explained for engineers: the segments in an X12 purchase order, a worked example, how it maps to the 855 acknowledgment, and how to model it.

article

· 10 min read

EDI 856 (advance ship notice) explained for engineers

EDI 856 explained for engineers: the BSN header, the HL shipment, order, pack and item hierarchy, the segments that matter, and how to model it safely.

article

· 8 min read

Capture-first connectors: building integrations before the credentials exist

How capture-first connectors record provider requests without network calls, and why fingerprints, idempotency and overlapping checkpoints matter.

article

· 9 min read

Hunting an inventory double-decrement: the bug behind the drift

How a legacy inventory integration decremented stock twice, why the connection layer was the cause, and the idempotency and audit columns that fixed it.

article

· 8 min read

Leaving Salesforce for Odoo 19: the migration nobody budgets for

A Salesforce to Odoo 19 migration is a data-model translation, not a table copy. What breaks, how 184 corrupted rows were repaired, and how to plan it.

article

· 9 min read

NetSuite Shopify integration: inventory sync with drift reconciliation

A NetSuite Shopify integration with NetSuite as master: pending Shopify demand, certificate OAuth, compare-and-set writes and drift reconciliation.

article

· 8 min read

Offline conversion tracking for Google Ads: click IDs, hashed identities and GA4

Offline conversion tracking for phone sales: three ways to send them back to Google Ads, the identifier each needs, and how to check the value is real.

article

· 8 min read

Product feed management: a custom feed engine for Merchant Center, Microsoft and Meta

How a product feed management engine was built for Magento and Merchant Center: CEL rules, pgvector enrichment, channel adapters and a parallel cutover.

article

· 8 min read

Replacing a spreadsheet process with a typed exception engine

How a monthly NetSuite tracker process became a typed engine that patches XLSX surgically, refuses to guess names, and proves itself with 145 tests.

article

· 8 min read

Student-information system to GA4: admissions attribution for a school

How an admissions dashboard joins a student-information system, GA4 and Google Ads, backfills history, and keeps period counts separate from cohort rates.

article

· 8 min read

What is EDI? Retail X12 documents 850, 855, 856, 810 and 846 for engineers

What is EDI? A working explanation of the five retail X12 documents, how they map to an order lifecycle, and where an EDI network like SPS Commerce fits.

07 · 6 articles

Production SaaS and billing

Discipline overview →

08 · 5 articles

Commerce systems

Discipline overview →

09 · 7 articles

Cloudflare and the edge

Discipline overview →
Pillararticle

· 9 min read

Moving 15 WordPress sites to Cloudflare Workers

How 15 WordPress sites became static Astro Workers, plus three new sites: the import, the redirect map, the cutover and what broke.

article

· 10 min read

A client sign-off app on Cloudflare D1, Workers and Access

A Cloudflare D1 sign-off app: a Worker, an append-only decisions table and Cloudflare Access JWT checks, plus the OpenNext crash that upgrading fixed.

article

· 10 min read

Hono in production: a typed API on Node, with a path to Workers

How we structure a production Hono API: app factory, typed context, auth middleware, one error shape and tests, on Node and portable to Cloudflare Workers.

article

· 9 min read

Cloudflare R2 in production: images, backups and static assets

What Cloudflare R2 is good for in production: customer uploads, public images and S3-compatible backups, with lifecycle rules, pricing and our mistakes.

article

· 8 min read

Cloudflare Tunnel and Access: zero open ports in front of everything

How a Cloudflare Tunnel plus Cloudflare Access puts internal apps, private Git and GPU services online with no inbound ports, and what broke along the way.

article

· 7 min read

Stopping XML-RPC bot floods on a shared WordPress host

How XML-RPC floods took a shared WordPress host to high CPU, and why ModSecurity, nginx rules and OPcache each fixed only part of the problem.

article

· 8 min read

When a Worker never runs: static assets and run_worker_first

Why Cloudflare served 404s to browser navigations while fetch() reached the Worker, and how generated run_worker_first routes fixed it.

10 · 6 articles

Self-hosted infrastructure

11 · 3 articles

Agency operations