Daryll Gomas
Running · my business

Invoicing & CRM

Paperwork by AI, approved by hand.

The app that runs my IT business: clients, jobs, invoices, payments and the money ledger. After a visit I say "wrap it up", and an AI session writes the notes, creates and checks the invoice, files it and drafts the email.

Claude CodeExample · invented client

me › Looks good. Wrap it up, put the email in drafts and I'll preview it.

claude › On it:

  • ✓Invoice created: 2 h × $140 = $280 · read back, status fixed
  • ✓PDF made, opened and checked · totals, payment link
  • ✓Filed in the client's folder · checksums match
  • ✓Email drafted, PDF attached · not sent
  • ✓Changelog written · with undo steps

claude › It's in your drafts. Send it when you're happy.

Gmail draft · waiting for meINV-0042 · Example Co.pdf
Example · invented client and invoice
1:45min, "wrap it up" to drafted, filed, logged
5wrap-up steps the AI does and checks
1step that stays mine: pressing Send
7gates each change to the app passes
65commits, Feb to Nov 2026
01The problem

The work ends. The paperwork doesn't.

After every client visit there are notes to write, an invoice to make, a PDF to file, an email to send and, later, a payment to record. Commercial PSA suites (the ticketing-and-billing tools IT firms run on) handle this for bigger shops. At a previous IT job I helped evaluate one, set up parts of it and used it every day.

A one-person business needs the same records, kept just as carefully, without that overhead. And the paperwork shouldn't eat the time that should go to the next client.

"I'm taking notes in the terminal … and at the end I just wrap it up."

02What I built

My own office system, run with an AI.

  • Clients. Rates, contact details and status from prospect to active, with a next follow-up, an activity log and a "due today" list.
  • Jobs and invoices. Hours × rate, calculated by the server. PDF invoices with a card-payment link and QR code.
  • Money. An income ledger with one row per payment. Checks and part payments are recorded against the invoice; card payments through Stripe are built to record themselves.
  • Operations. A lead pipeline, a business scorecard and CSV export.
  • Client PCs. A Devices tab for each client, wired to Heimdall for Add a PC and Connect.
  • An AI operator. A Claude Code session runs the visit paperwork through the app's own API.

Python and Flask, one SQLite file, PDFs drawn with ReportLab. It runs on my own server on my private network and is backed up every night.

03How it works

From the visit to the money.

From visit to invoice
How a client visit becomes a paid invoice: I prep, do the work and talk it through, and approve the notes and email text. Claude Code then writes the session notes, creates the invoice in the app, files the checked PDF in the client folder and drafts the email. I send it. The client pays by card or check and the app records it once. 1 · ME 2 · THE AI 3 · WHAT IT MAKES 4 · SEND + GET PAID Prep THE NIGHT BEFORE The visit I WORK + TALK I approve NOTES + EMAIL TEXT Claude Code MY SIGNED-IN BROWSER THE APP'S OWN API EACH STEP READ BACK logged, with undo steps Invoicing app INVOICE + PDF Client folder NOTES + PDF FILED Gmail draft NOT SENT I send it ONE CLICK Paid COUNTED ONCE How a client visit becomes a paid invoice: I prep, do the work and talk it through, and approve the notes and email text. Claude Code then writes the session notes, creates the invoice in the app, files the checked PDF in the client folder and drafts the email. I send it. The client pays by card or check and the app records it once. 1 · ME 2 · THE AI 3 · WHAT IT MAKES 4 · SEND + GET PAID Prep THE NIGHT BEFORE The visit I WORK + TALK I approve NOTES + EMAIL TEXT Claude Code MY SIGNED-IN BROWSER THE APP'S OWN API EACH STEP READ BACK logged, with undo steps Invoicing app INVOICE + PDF Client folder NOTES + PDF FILED Gmail draft NOT SENT I send it ONE CLICK Paid COUNTED ONCE
Animated diagram. The AI works through my signed-in browser and the app's own API. Nothing goes to a client until I send it.

1 · Me

  • Prep the night before
  • Do the work and talk it through
  • Approve the notes and the email text

2 · The AI

  • A Claude Code session in my terminal
  • My signed-in browser and the app's own API
  • Every step read back, then logged with undo steps

3 · What it makes

  • The invoice and its PDF, in the app
  • Notes and PDF filed in the client's folder
  • An email draft in Gmail, not sent

4 · Send + get paid

  • I preview it and press Send
  • Marked sent only after I say it's gone
  • Card or check: the payment is counted once

The guardrails

Routine

The same front door

For invoices and payments the AI uses the app's own API from my signed-in browser, so every rule the app applies to me applies to it.

Routine

Nothing reaches a client unchecked

I approve the notes and the email text first. The email lands in my drafts, and I send it myself.

App rule

Sent means locked

A sent or paid invoice can't be edited or deleted. Taking one back needs an explicit unlock, and every change of state is written to an audit trail.

Routine + app rule

Logged, with undo steps

Each wrap-up is logged with the exact steps to reverse it. A mistaken payment is voided with a reason, never deleted.

App rule

Money counted once

Card payment notices are accepted only with Stripe's signature, and a repeated notice can't record the same payment twice.

App rule

One owner, one network

One owner login, with wrong guesses limited. Changes are only accepted from the app's own pages. The app isn't on the public internet, and it's backed up nightly.

"App rule" means the app enforces it for anyone, AI or me. "Routine" means it is how every wrap-up is run.

An invoice's life

Draft · editable Sent · locked Paid · locked

Going back to draft needs a deliberate unlock, and the step is recorded.

04Tools

Plain parts, wired together.

Python + Flaskthe app and its API
SQLiteone file: clients, jobs, money
ReportLabthe PDF invoices
Stripecard payments, signed notices
systemdruns as a service, restarts itself
Claude in Chromethe AI works in my signed-in browser
Gmail + Google Driveemail drafts, client folders
Heimdallthe Devices tab: Add a PC, Connect
Python unittesteach fix: a failing test first
Claude Code, CodexAI writes the code; I specify and verify
05Proof

One real visit, measured.

A client visit in November 2026, run from my laptop's terminal. The client and the work stay private; the steps and the timing are real.

1:45from "wrap it up" to the invoice drafted, filed and logged (min:sec)
5steps done and checked: invoice, PDF, filing, email draft, changelog
1mistake it caught itself: a wrong status, read back and fixed

Who did what

Step
Me
Claude Code
01
Me"Get me ready for tomorrow"The night before.
Claude CodeA prep docReads the client's latest email and my calendar, researches the open items, and writes a plan: priorities, what to bring, the order for the time booked.
02
MeDo the work, talk it throughIn plain words, as it happens.
Claude CodeKeeps the recordWrites the session notes and the decisions as we go, records any payment received, and re-lists what's left whenever I ask.
03
Me"Show me the notes and the email" My OKI read both and say yes.
Claude CodeDrafts, doesn't createThe client summary, the invoice lines in plain language, and the email text, all shown before anything is written.
04
Me"Wrap it up"One sentence.
Claude CodeThe paperwork, checked
  • Creates the invoice, then reads it back
  • Opens the PDF and checks it
  • Files it, comparing checksums
  • Drafts the email with the PDF
  • Logs every change, with how to undo it
05
MePreview, press Send My OKFrom my own Gmail.
Claude CodeMarks it sentOnly after I say it's gone.

Step 4 is the 1 minute 45 seconds. The invoice first saved with the wrong status; the read-back caught it, and it was fixed before the PDF was made.

06How it's tested and run

Seven gates before any change goes live.

The app holds the money, so since October 2026 every change to it goes through the same seven gates.

  1. BaselineA backup of the live data, plus a snapshot of every read-only screen and report, saved before anything changes.
  2. A change map I approveThe exact code before and after, everything it touches, the data it changes counted on a copy, and how to roll it back.
  3. Red, then greenEach fix gets a test that must fail on the old code and pass on the new.
  4. Before and after, comparedThe full suite, then the snapshot rerun on a fresh copy of the live data. Every difference must be one the map predicted.
  5. An independent reviewCodex checks the whole change against the map: correct, secure, and nothing more than the map says.
  6. Live checkA fresh backup, then a click-through of every main screen, and live counts compared with the map. Then I look.
  7. RecordA changelog entry, the commits, and rollback steps tested on a copy.
07What I'd do next Proposed · not built

A reusable routine, and narrower doors.

  • A reusable visit routine, so any session runs prep, notes and wrap-up the same careful way on any of my machines.
  • A few task-shaped doors for the AI (log a contact, set a follow-up, propose a job), so it never needs the general API.
08Skill tags
AI agentsAutomation PythonFlaskSQLiteStripe REST APIsClaude in ChromeGoogle WorkspaceSecurity Test-firstClaude CodeCodex