I fixed my own app one sentence at a time. Each fix worked. Then the same errors kept coming back, and I found dozens of contradictions inside my own AI process.
My first IT job was in a Paris startup, in 2000. It pushed me to learn everything: Unix and Oracle administration, telecoms and Cisco, building and maintaining servers, and coding the scripts that watched over them. Millions of customers counted on my team to get online or make a phone call.
In Paris I also worked with Tiscali, Alice and Free. In 2010 I opened my own web agency in Bangkok. Today AI writes most of my code. I design the apps, the agents, and the rules they follow.
It still happened to me. Here is how, why, and how I fixed it.
Some words here are for developers. Short definitions are at the bottom.
TogClub runs a whole club, and I run a club on it
TogClub runs clubs and associations: members, memberships, sessions, events, payments, and every message that goes with them. Its built-in AI reads payment slips, takes attendance and flags the messages that need an answer.
I run a sports academy on it. A demanding one.
| Every month | |
|---|---|
| Members | About 600 |
| Active | 20 to 30% |
| Operations | Hundreds: memberships, sessions, events |
| Messages | Thousands, with hundreds of families and players |
| Team | 10 staff |
One quick fix at a time
After decades of writing every line by hand, fixing an app with one sentence feels close to magic. You describe the problem. The code changes.
So I did it every day, while running the academy:
- A payment that did not fit: a new rule.
- A list in an odd format: a new rule.
- A case to remember: a new memory note.
Each fix took a minute. Each one was right on the day.
The same errors kept coming back
- Repeated mistakes. Fixed, then back in another form.
- Forced data. Numbers bent until they added up.
- Double work. Jobs the app already did, done again.
- Things nobody asked for. Made anyway.
- Too much information. More than anyone needed to read.
- Missed opportunities. The better way, never suggested.
- Burnt tokens. Every chat and every routine read the whole pile first: rules, copies, contradictions. Paid for on every single run.
Every rule I added to stop an error became a home for the next one. I was patching faster than I was thinking.
What I found: dozens of contradictions, hundreds of repeated errors
So I stopped, and looked at the whole thing for the first time.
I wrote or approved every one of those lines. The AI did not sneak in.
I let it in, one shortcut at a time.
Why it happens: two reasons
1. Running the business eats the time to plan
When you operate, you fix what is in front of you. When you plan, you look at what is not there yet. Operations always win: a family is waiting, a payment must be recorded today.
Planning waits. Cleaning up waits even longer.
2. AI takes the shortest road
An AI model answers the question you asked, not the one you should have asked. It will not say "this rule already exists in three places". When the data does not fit, it cuts the data to fit, and moves on.
From my own files:
- Double work. A routine read the payment slips itself, while the app already read them. Two readers, two answers, two token bills.
- Forced numbers. A payment that did not match was spread over open items, oldest first, the rest put in credit. Tidy on screen. Not what the payer wrote.
- Copies everywhere. The money rule pasted into 10 skills. Change it once, and 9 copies are wrong.
AI makes you faster every day.
It will never tell you when to stop.
The fix: one rule, one place
I stopped the operations, and put the architect's hat back on.
- Freeze. A snapshot of every file that drives the AI: rules, skills, routines, memory.
- Read everything. Line by line. Red for what goes, green for what replaces it.
- Settle every contradiction. Every single one, decided by me. None left for the AI to pick.
- One rule, one place. The club's rules now live inside TogClub, on one AI rules page that every AI reads: on the phone, in the routines, on my Mac.
- Cut. Everything that repeated, contradicted or was out of date.
Before
NEVER GUESS. Every number you write comes from the slip image or from TogClub. If you can't prove where every baht goes, leave the slip.
Download each slip image (file_url) with curl and a browser user agent, or TogClub refuses it.
Read the image yourself: amount, date, receiving account, bank reference, MEMO. If TogClub's reader shows another amount, trust the image.
After
NEVER GUESS. Every number comes from TogClub. TogClub already read every slip; you never read the image yourself. If TogClub has no amount, the slip waits for the owner.
After: every rule has one home
- Slip fits one price → recorded
- Coach list → ticks
- Fact I state → fixed in the application
- Sentry bug → fixed and deployed
- One question
- Money: "What does it pay?" a / b / c
- Routine: skips it, reports, goes on
| Before | Now | ||
|---|---|---|---|
| Global rules | 290+rules | 21rules | |
| Application rules | 81lines | 17rules | |
| Skills with the money rules duplicated | 10of 16 skills | 0one job per skill | |
| Memory notes | 190+110+ of them were rules | < 40facts only | |
| Contradictions | 30+open | 0open: each one decided | |
| Doors for money | 5each with its own rules | 1the application's Inbox | |
| Routine prompts | 140lines | 23lines |
Fewer lines is not the point. Every rule now has one home, and the facts live in the app itself.
The lines still count, though. The AI reads them before it does anything, so every line cut is a token saved, on every run, every day.
Next: a guard, so the mess never grows back
Cleaning once is not enough. The next step is a weekly check that reads every rule file and fails when the same rule lives in two places, or when two rules disagree. Every alert comes to me, before the AI ever has to pick.
Building your own tools with AI?
If you build your tools while you run your company, you are probably where I was. Not for lack of skill. For lack of distance.
Distance is what I bring. I look at the whole, find where each rule should live, and rebuild the process so the AI works for your business, not around it.
What is TogClub?
TogClub Not on sale yet
One app to run a whole sports club.
I built TogClub for the needs of my own sports academy, around what a club deals with every day.
- Members & eventsMemberships, sessions and events, in one place
- PaymentsPayments, invoicing and more
- AttendanceFace recognition, or automatic from your channels
- One inboxEvery channel together, the urgent messages flagged
- Built-in AIJust ask: it handles the data for you
For now, it runs my academy every day. Soon, it should be useful to thousands of sports clubs.
The words, in short
| Prompt | The instruction you give an AI |
|---|---|
| Global rules | Instructions the AI reads before every task |
| Application rules | Rules for one app only |
| Skill | A saved how-to the AI follows for one job |
| Memory note | A fact the AI keeps from one chat to the next |
| Routine | An AI task that runs on its own, on a schedule |
| Connector (MCP) | A plug that lets the AI use another app |
| Token | A small piece of text. AI reads and bills by tokens |
