How I replaced a flaky Google Apps Script and a 50,000-row spreadsheet with a high-speed Rust and PostgreSQL billing reconciliation tool in just a few days using agentic development.
Every business has a hidden operational tax, that recurring, soul-crushing workflow held together by manual downloads, duct-taped scripts, and a spreadsheet that takes thirty seconds just to scroll.
For a long time, ours was shipping reconciliation.
Shipping costs are among the hardest numbers in a business to pin down. Charges arrive after the fact, in pieces, and rarely line up neatly with the orders that triggered them. Worse, when you work with a courier that lacks a proper billing API, you are stuck with raw CSV and PDF dumps.
Our previous solution was a classic piece of operational triage: a Google Apps Script watching a Drive folder where CSVs were manually uploaded. It would parse the files and append new charges into a massive Google Sheet ledger.
It worked, until it didn’t:
- Flaky execution: Silent failures and brittle parsing whenever formats slightly shifted.
- Painful querying: Getting clean, aggregated data back out of the sheet was a chore.
- crippling lag: As the ledger ballooned into the tens of thousands of rows, searching slowed to a crawl.
- Zero intelligence: It had no anomaly detection to flag discrepancies before they cost us money.
In the past, fixing this properly meant spinning up a multi-month internal engineering project, debating architecture, and writing endless boilerplate. Instead, I leaned into agentic development to build a purpose-built replacement in Rust and shipped the core system in days.
The Shift: Moving at the Speed of Thought
Agentic development fundamentally changes the economics of internal tooling. When an AI collaborator can scaffold parsers, generate database migrations, write idiomatic Rust, and iterate on edge cases alongside you, the barrier between "I have an idea to fix this" and "It’s running in production" collapses.
Because the heavy lifting of boilerplate and syntax lookup was offloaded to agents, I could focus purely on system design and business logic, even while working in a language like Rust that I had only recently started exploring for side projects.
Instead of patching the spreadsheet, we replaced it with a high-performance ingestion and screening pipeline:
[ ZIP / Thousands of PDFs & CSVs ] │ ▼ (Seconds via Rust) [ Parallel Parser & Normalizer ] │ ▼ [ PostgreSQL DB ] ──► Automated Anomaly Screening ──► Exception Queue - Bulk Ingestion in Seconds: You drop a ZIP archive, or thousands of raw PDFs and CSVs directly into the tool. Rust’s concurrency and memory efficiency tear through the files, parsing and normalizing the messy courier formats in mere seconds.
- Structured Storage: Everything lands cleanly in a PostgreSQL database, eliminating the lag, row limits, and fragility of a bloated spreadsheet.
- Automated Screening: Instead of humans squinting at rows, the system automatically screens incoming charges against our shipment records, surfacing only the exceptions that actually require human judgment.
Four Ways This Changed Our Operation
1. Speed: Reconciliation That Keeps Up With the Business
What used to take hours of careful, repetitive checking every billing cycle now takes moments. High-volume file parsing happens almost instantaneously, freeing our team from routine data entry so they can focus exclusively on resolving flagged exceptions.
2. Accuracy: Clients Billed Right, Every Time
When carrier charges are reconciled against actual shipments quickly and consistently, revenue leakage stops. Clients are billed accurately and promptly, backed by automated screening that catches discrepancies far more reliably than tired human eyes ever could.
3. Insight: Real Visibility Into Spend
Speed was the first goal; visibility was the second. With every shipping cost accounted for in a proper relational database, we can finally report on our spend with confidence what we are paying, where it is going, and how margins shift over time. That gives us a clear picture of internal costs and a stronger footing for operational decisions.
4. Momentum: Days, Not Months
Perhaps the biggest win isn't the tool itself, but the pace it unlocked. Designed and delivered in days rather than months, the architecture is built to evolve. When the business needs a new anomaly check, a custom spend report, or an integration with another part of our stack, we can ship it rapidly without a heavyweight project cycle behind every tweak.
Stop Tolerating Fragile Workflows
The era of accepting flaky scripts and 50,000-row spreadsheets as "good enough for internal ops" is over. When you pair a modern systems language like Rust with agentic development workflows, small teams can build fast, resilient, bespoke software at a pace that used to be impossible.
We got faster billing, tighter reconciliation, and clear cost intelligence and more importantly, a foundation we can keep building on as fast as new needs emerge.
What’s the most fragile spreadsheet or manual script still surviving in your stack? Drop it in the comments, I'd love to hear what you're replacing next.
