I built an ERP for an organic shop in my evenings. It grew to 73 screens.
An organic food shop I helped run sold 2,500 products online. Behind every order sat the same chores: check the supplier's stock, order from the supplier, book the courier, issue the invoice, write to the customer.
In June 2025 I wrote a small Chrome extension to copy products from the supplier's site into the shop. A tiny thing. That was day one.
And here is the crazy part. 9 months later, working alone, I had grown that extension into the ERP that ran the whole shop! 73 screens. 22 background workers running day and night. More than 15 outside systems wired in, from the couriers to Google Ads. Close to 1,000 commits, most of them after 6 in the evening, next to a full-time job.
Written by hand, without AI, a system this size takes 3 to 5 developer-years. I built it in 1,250 hours. Claude Code wrote 9 of every 10 lines.
So what does an ERP for one small shop do all day? A lot. Follow one order.
The life of one order
Every order in the storefront lands in the ERP as a copy. Then it gets fast. To buy the stock, the shop uses the Chrome extension from day one. Its side panel lists the new orders, and one click fills the supplier's cart with every item, after a stock check. Two more clicks, both in the ERP, book the courier and issue the invoice. Done.
Your guide to the products you ordered
Whisk 1 g into 70 ml of water at 80°C, never boiling, or it turns bitter. Best in the morning.
Raw Manuka honey, to soften the first cups.
Then GPT-5 takes over. When the order is complete, it reads every product in the box and writes the customer a guide: how to use each one, when to take it, how to store it, and what goes well with it.
The "goes well with" picks had to be real products, not made-up ones. So the model must search the shop's own catalogue for each one and return its real product ID. The prompt shouts it in capitals:
❌ NEVER WRITE GENERIC TEXT INSTEAD OF REAL PRODUCTS.
If the search finds nothing, try other queries or categories.
And later, a refill reminder goes out. The ERP estimates when the first product in the box runs out, and writes on that very day.
What runs while I sleep
Who does the work when nobody is logged in? The 22 background workers. Each one wakes up on its own clock:
- Stock, every 3 hours, from the supplier's feed into the shop and into Google's product feed.
- Prices: 2,500 products checked at 6 rival shops. At noon, the ERP applies the new target prices to the shop and to Google.
- Email, every minute: an automation engine reads what visitors do on the site and moves each person along a journey: welcome, forgotten basket, second order, win-back.
- Social media, every 10 minutes: scheduled posts go out to Facebook, Instagram and YouTube. Every 5 minutes, new comments come back in.
- Video, every 5 minutes: a pipeline that turns a food myth into a short cartoon.
Nobody clicks a thing. It all just runs, all night.

The rule: fail loudly
February was the busiest month: 150 commits! The biggest piece was the email engine. A flow builder, popups, A/B tests with real statistics, and revenue traced back to each email. Then I asked an agent to hunt for bugs in it. It found 65. 14 of them critical.
So what was the worst problem? One that never looked like a bug. When the engine knew nothing about a person, it quietly filled their email with bestsellers. The email looked fine. It was a guess.
AI code loves that move. Ask an agent to make something robust and you get
data || defaultValue everywhere. Every fallback like that turns a bug you could
see into a result that looks right. So I put one line into the instructions my agents read
before every change, in my own words, in capitals:
DO NOT EVER USE FALLBACK. Always fail so I KNOW what to fix.
Then every AI email got its receipts: an audit screen with 7 tabs per email. The email, what the visitor did, the catalogue search, the products, the prompt, GPT-5's raw answer, and the customer. When an email is wrong, I see exactly which step made it wrong.
My rule for engineers building with AI: ban the quiet fallback. A failure you can see costs you an hour. A guess that looks right can run for months.
What 9 months of evenings taught me
Who builds an ERP alone? Until recently, nobody. A system like this needed a team and a budget. So a small shop bought a tool and bent its days around it.
Not anymore. A shop can now have software shaped exactly like its work: its supplier, its couriers, the questions its customers ask. And one person can build it, in the evenings.
But Claude Code never knew the shop. It wrote 9 lines in 10, and not once did it know which number must only ever come from the supplier, or that a guessed email is worse than none. Every rule that mattered came from the shop, typed by me, usually the day after something broke.
That is the job now. The code is cheap. Knowing what the code must never do, that is what I bring. And I love it.
Things I did not expect
Wait, the ERP makes cartoons? It does! GPT-5 writes a script about a food myth, Google's models draw and animate it, ElevenLabs gives each character its own voice, and Remotion cuts it together. The cast has a gecko in a tinfoil hat who reads every label, and an owl who debunks the myths from your aunt's WhatsApp group. The first episode took on "carbs make you fat" in 35 seconds. It cost 40 cents to make.
A cartoon studio would charge a little more.
The first database lasted less than an hour. Really. On day one, the backend's first commit came with PostgreSQL, Prisma and TypeScript. 56 minutes later, the next commit swapped it all for plain JavaScript on MongoDB. Gone. MongoDB then carried 9 months and close to 500 backend commits.
The price checker has good manners. It waits 2 seconds between requests, "to be respectful", says the comment in the code. 2,500 products at 6 rival shops is 15,000 requests. So one full round takes more than 8 hours of pure politeness.
On day one, my code copied products from a supplier. 9 months later, the ERP ordered them, invoiced them, and made cartoons about what to eat.
I post one of these every week. Follow along on LinkedIn or YouTube, or by RSS. Want this on your team? Work with me.
The 527 rules I give my AI agents, free
Every one comes from a real mistake. The best 100 are open on /rules, or download them as AGENTS.md, no email. All 527 come by email, as one file you can drop straight into your repo as AGENTS.md or CLAUDE.md, so your agents follow them from the next session. Plus the occasional email when I learn a new one.
One click to unsubscribe.