← All projects
T8BrowserOperations and back officeOperations, finance and ITHeavy code

Freight Bill Audit and 3PL Billing Desk

Carrier invoices audited against rate confirmations and contracts, proof of delivery pulled from portals, approved disputes filed, 3PL client invoices built, and a live exceptions map

WHO HAS THIS PROBLEM
US third party logistics companies, small freight brokers and shippers that pay carrier invoices and bill their own clients, and their freight audit, billing and operations teams

WHAT YOUR TEAM WILL HAVE BUILT

A freight bill audit and 3PL billing desk that checks every carrier invoice against its rate confirmation and contract, files approved disputes, builds client invoices from warehouse activity and shows shipments and exceptions on a live map.

THE OPEN SOURCE TOOLS IT RUNS ON
BrowserGlass swarm and MCP

Reads shipment status and proof of delivery from every mock carrier portal and files approved disputes with evidence attached.

Python workers use BrowserSwarm open() and all() with AutomationClient navigate(), text(), get_attribute(), wait_for_download(), set_input_files() and screenshot(); agents use bg_swarm_open, bg_swarm_run, bg_page_map, bg_get_text and bg_set_input_files over MCP, and bg_control or yield_control() with wait_for_resume() when a person must look.
TerminalMap

Draws every shipment and exception on an OpenStreetMap map in a terminal pane, so the ops desk runs over SSH.

The TerminalMap binary runs in a psmux pane and reads a GeoJSON file that the Python worker rewrites every minute; the file mode is the team's upstream pull request, built on MapState, add_marker, MapMarker::dot_rgb and MarkerAnimation::Blink for exceptions.
GeoJSON overlays in TerminalMap

A new layer the team adds upstream so lanes and warehouse regions draw over the map.

An overlay module in the TerminalMap repo, written in Rust in the tool's own style, that reads GeoJSON points, lines and polygons, proposed as a small pull request with tests and a README section.
psmux

Lays out the ops desk with the map, the findings feed and worker logs in panes anyone can attach to over SSH.

A start script with new-session, split-window and send-keys, pane titles, and set-hook pane-died to restart a worker.
THE FINISHED PRODUCT

Freight Bill Audit and 3PL Billing Desk

A broker or 3PL signs in on the hosted app or runs it on premises from one Docker command, connects its TMS and WMS exports, loads carrier contracts and accessorial rules, and adds each carrier portal. Carrier invoices are audited as they arrive, proofs of delivery are pulled by the swarm, and a freight auditor approves each dispute before it is filed. At month end client invoices are built from warehouse activity for a manager to approve, and the ops desk watches the live map over SSH.

Proves: Before: about [9] minutes per invoice audited by hand with [40]% of planted errors missed, and [6] hours per 3PL client invoice. After: under 1 minute of a person's time per invoice, 95% of overcharges and every duplicate caught, and a client invoice in under 5 minutes, each dispute and invoice approved by a person.

THE BUSINESS PROBLEM

A broker moving 300 loads a week receives carrier invoices as PDFs, emails and EDI 210 files, and each one should be checked against the rate confirmation, the contract and the accessorial rules before it is paid. Staff check line by line when they have time, so unapproved detention, lumper and liftgate charges, wrong fuel surcharges and the odd duplicate invoice get paid. Proof of delivery has to be pulled from each carrier's portal before the client can be billed, and a 3PL warehouse builds monthly client invoices for storage and handling from spreadsheets. Freight audit firms report that a few percent of freight spend is billed in error, and every late client invoice pushes cash out another month.

STUDY THE BUSINESS FIRST: NO CONTACTS NEEDED

Where to find the evidence

  • 49 U.S.C. 13710 on billing disputes and its 180 day window, and 49 U.S.C. 14705 limitation periods
  • 49 CFR Part 371 broker rules including 371.3 records of each transaction, and FMCSA broker registration and BMC-84 bond pages
  • LTL carrier rules tariffs that list accessorial charges, and NMFTA notices on the 2025 NMFC changes
  • X12 210, 214 and 204 implementation guides published by carriers
  • EIA weekly retail on highway diesel price series
  • O*NET tasks for Cargo and Freight Agents (43-5011) and Logistics Analysts (13-1081.02), with BLS pay
  • G2 and Capterra reviews of McLeod, Rose Rocket and Extensiv 3PL Warehouse Manager, and Reddit r/FreightBrokers threads
  • Census County Business Patterns for NAICS 488510 and 493110

Your demo environment: Four mock carrier portals (two truckload carriers, one LTL carrier with a rules tariff page, one drayage carrier) with tracking, proof of delivery images and invoice pages, a mock broker TMS export and a mock WMS activity log for a 3PL with 3 warehouses. 5,000 synthetic shipments between real US city pairs from Census Gazetteer coordinates, rate confirmations as PDFs, carrier invoices as PDF and EDI 210 with seeded overcharges, unapproved accessorials and duplicates recorded in a truth file, and the real EIA diesel series for fuel surcharges.

How to do the research →
WHAT YOU BUILD

A self hosted desk that audits every carrier invoice and bills every client. Invoices arrive as PDF, email or EDI 210 and are linked to their shipment and rate confirmation, then an audit engine checks each line against the rate confirmation, the contract, accessorial rules and a fuel surcharge table built from the public EIA weekly diesel price. A BrowserGlass swarm pulls shipment status and proof of delivery from the mock carrier portals. Each finding becomes a drafted dispute with evidence, and a freight auditor approves it before an agent files it on the carrier's portal. For 3PL clients the desk prices storage, receiving and pick and pack from warehouse activity and drafts the monthly invoice for a manager to approve. Lane and carrier cost reports, and a live map of shipments with exceptions on TerminalMap over SSH and on a web map, keep operations and finance looking at the same facts.

TOOLS AND APIS YOU USE
BrowserGlass swarm and MCPTerminalMap in a psmux pane over SSHTerminalMap GeoJSON file mode and overlays (built upstream)OpenStreetMap and Census Gazetteer datapsmux ops desk over SSH

See every API on the tools page.

THE WHOLE PRODUCT

8 modules that together do the whole job.

Each person on the team owns one or two modules. All of them ship in version 1.0.

  1. 1Invoice and document intake

    Reads carrier invoices from PDF, email and EDI 210, rate confirmations and the TMS export, and links each invoice to its shipment.

  2. 2Audit engine

    Checks every invoice line against the rate confirmation, contract, accessorial rules, fuel table and earlier invoices, with rules kept as data.

  3. 3Status and proof of delivery

    A BrowserGlass swarm reads shipment status and proof of delivery from every mock carrier portal on a schedule.

  4. 4Disputes with approval

    Each finding drafts a dispute with evidence; a freight auditor approves it before an agent files it on the portal and tracks the answer.

  5. 53PL client billing

    Prices storage, receiving, pick and pack and outbound from warehouse activity and each client's rate card, for a manager to approve.

  6. 6Live shipment map

    Shipments and exceptions on a TerminalMap desk in psmux over SSH and on a web map.

  7. 7Cost reports and admin

    Cost per lane, carrier and month, accessorial share, dollars recovered, plus carriers, rules, fuel table, rate cards and roles.

  8. 8Launch kit

    A landing page, an ROI calculator built on the team's baseline, the 2 minute demo video, a case study from the demo run and a US market sizing.

WHO SIGNS IN  Freight auditorBilling specialistOperations coordinatorController or logistics managerAdmin

THE PERSONA PANEL

Four people your product has to convince.

Build each one from public evidence, interview them with AI, and expect your mentors to play them at the gates.

DAILY USER

Freight auditor at a brokerage moving about 300 loads a week

Every invoice checked before payment with the broken rule shown, proof of delivery attached for me, and disputes I only have to approve.

MANAGER

Operations manager at a 3PL with 3 warehouses and 25 clients

Client invoices built from real activity in minutes at month end, and exceptions on a map before a client calls.

BUYER

Owner and CFO of a freight brokerage with $40M gross revenue

Overcharges recovered in dollars each month, no invoice paid twice, and faster client billing that shortens the cash gap with carriers.

IT AND SECURITY

IT manager at a mid sized shipper

Carrier portal logins encrypted and never logged, roles by client, an audit log of every agent action, and shipment data on our own servers.

THE PRODUCTION BAR

Finished means all of this.

  • Sign in, user roles and a workspace per company
  • An audit log of who did what, including the AI
  • A person approves anything risky the AI does
  • One command install on a clean machine, under 15 minutes
  • A demo mode with synthetic data
  • Automated tests for every acceptance criterion, run in CI on every pull request
  • Admin settings that change behaviour without code
  • Data export and backups
  • Security review: no secrets in code, input checks, dependency scan, OWASP top 10
  • Works on a laptop and a phone, accessible forms
  • Admin guide, user guide, API docs and HANDOVER.md
PLAY IT LEVEL BY LEVEL

Seven levels, from a day one demo to launch.

Each level has one goal, the checks a mentor will look for, a prompt to give your AI agent and a post to share when you clear it. Tick the checks as your team meets them. The next level opens when this one is cleared.

FREIGHT BILL AUDIT AND 3PL BILLING DESK

Level 1 of 7: Day one demo

0 / 1800 XP
  1. Day one demoDay 1 · G0
  2. Working sliceWeek 1
  3. UsableWeek 2 · G1
  4. CompleteWeeks 3 to 4
  5. At volumeWeeks 5 to 6 · G2
  6. Production readyWeeks 7 to 8 · G3
  7. LaunchWeeks 9 to 10 · G4
  8. Boss levelstretch
LEVEL 1 · DAY 1 · +100 XP · GATE G0

Day one demo

Ship on the first day. Your agent builds a mock portal with synthetic data, then BrowserGlass or DeskVNC does one real job in it end to end while you record it. Demo it to the room before lunch.

YOUR GOALBuild one mock carrier portal with synthetic US shipments and have a BrowserGlass agent pull a proof of delivery and check one invoice against its rate confirmation, shown at 12:30 and posted the same day.

DONE WHEN
ASK YOUR AGENT

Paste this into Antigravity, opencode or Gemini CLI. Read its plan before you let it build.

Build the day one demo in about 2 hours, ready to show at 12:30. 1. mock/seed/: a Python script that makes 200 shipments for a fictional US broker between real US city pairs, each with a carrier, a rate confirmation (linehaul, fuel, approved accessorials) and a carrier invoice, planting an unapproved detention charge on 10 of them and listing those in truth.json. 2. mock/carrier-a/: a small Next.js app whose screens copy a truckload carrier's customer portal from public training videos: sign in, tracking search by PRO number, status rows, a proof of delivery page with an image, and an invoice page. 3. workers/audit/: start a gateway with bgls serve and use the BrowserGlass Python client to sign in, search one PRO number, read status with text(), open the POD page and save a screenshot, read the invoice lines and compare them with the rate confirmation, printing any charge that was never approved. Record the run with bgls record. 4. A pytest test that the planted detention charge is flagged.
Your name
Intern, Ripeflow Spark
in

Day 1 of @Ripeflow Spark. Our team is building a freight bill audit desk for US brokers and 3PLs. In the morning our agent built a mock carrier portal from public training videos and [200] made up shipments between real US cities. At 12:30 a BrowserGlass agent signed in, pulled a proof of delivery and caught a detention charge that was never on the rate confirmation, live in front of the room. #RipeflowSpark #BrowserGlass

ADD The 60 second recording of the agent doing the job, posted the same day
POST IT WHEN THE LEVEL IS CLEARED
  1. Fill in the [numbers] with your team's real results.
  2. Tag @Ripeflow and your teammates. Keep #RipeflowSpark.
  3. Post on LinkedIn. Put the clip on your WhatsApp status and as an Instagram reel.
  4. Add the post link to your team tracker. It counts for points.

Progress is saved in this browser. Your mentor checks the real evidence on Saturdays.

DAY 1 PROMPT

The first thing to ask your agent.

Before level 1, give this to your coding agent so it sets up the repo and learns the tools with you.

Run one agent per person, each in its own psmux pane. The agent drafts, you check. If you cannot explain what it wrote, it does not go in.

How to work with agents →
You are the lead engineer on a Freight Bill Audit and 3PL Billing Desk for US third party logistics companies, freight brokers and shippers. The finished product audits carrier invoices from PDF and EDI 210 against rate confirmations, contracts, accessorial rules and an EIA diesel fuel table, pulls status and proof of delivery from carrier portals with a BrowserGlass swarm, files disputes after a freight auditor approves, builds 3PL client invoices from warehouse activity, and shows exceptions on TerminalMap over SSH and on a web map. Stack: Next.js and TypeScript, deployed to our host (a Node server in Docker on premises), Python workers with the BrowserGlass Python client taking jobs from a queue, Postgres with Drizzle, Better Auth with roles, Vitest, Playwright, pytest and GitHub Actions. Monorepo: apps/web, workers/, packages/shared, mock/, docker-compose.yml. Read the BrowserGlass README.md, docs/quickstart.md and docs/page-map.md, and the TerminalMap README. Put a 10 line plan and the top risks in the first pull request, then build today's demo for 12:30. Tell me what you could not check.
RESULT TO PROVE

Before: about [9] minutes per invoice audited by hand with [40]% of planted errors missed, and [6] hours per 3PL client invoice. After: under 1 minute of a person's time per invoice, 95% of overcharges and every duplicate caught, and a client invoice in under 5 minutes, each dispute and invoice approved by a person.

BASELINEWeek 1: audit 40 synthetic carrier invoices by hand against rate confirmations and the accessorial rules, count planted errors found and missed against the truth file, pull 20 proofs of delivery from the mock portals, and time one month's invoice for a 3PL client.
WHAT YOU LEARN

Freight and warehouse billing, audit rules as data, EDI parsing, browser agents across many portals, map rendering, a Rust pull request to an open source tool

GIVE BACK UPSTREAM

A GeoJSON file mode and overlays for points, lanes and regions in TerminalMap, written in Rust in the tool's own repo with tests and a README example, and a BrowserGlass recipe for reading documents from many portals with a swarm.

THE TEAM

Outcome owners

Everyone builds with AI agents. Each person owns one outcome and answers for it.

  1. 1Product owner: research backlog, audit rules and the buyer demo
  2. 2Agent lead: carrier portal adapters, proof of delivery retrieval and dispute filing
  3. 3Quality lead: truth file, tests and the recovered dollars numbers
  4. 4Integration lead: TerminalMap desk and the GeoJSON overlay upstream, BrowserGlass and releases
  5. 5Story lead: 3PL billing screens, reports, guides and the launch kit
START HERE

First tasks

Do these in the first week, before anything else.

1Build one mock carrier portal with tracking and a proof of delivery page
2Generate 200 synthetic shipments with rate confirmations and invoices
3Have a BrowserGlass agent pull a proof of delivery and record it