Entry 02

A 4,938-line file and my first day with Claude Code

The first version of our fleet app lived in one enormous file built in a web chat. Then I switched tools and rebuilt it in a day. What changed, and how to set up your own first day.

Covers 17 – 31 May 20264 min read

By 24 May our fleet app was a single file, 4,938 lines long. Every time I asked for a change, something else in it broke.

It had grown out of one long conversation in the Claude web chat around 17 May. I described what the office needed and Claude wrote it: a database design, our vehicles, drivers and payroll history pulled in from Excel, a load-number generator, petty cash vouchers, trip sheets, purchase orders, and a screen for trucks we had sold. A lot for a few days. All of it lived in that one file, and I copied and pasted code between the chat and my computer by hand.

Later, the only full record of how that first version came together turned out to be a 120-page PDF of the chat. That tells you how carefully I was keeping things.

The switch

On 24 May I installed Claude Code. The web chat only talks. Claude Code runs on your own computer, reads and writes your actual files, and runs commands itself. You stop being the copy-and-paste courier.

That first day ran to about thirteen sessions, two of them over a thousand messages each. Claude split the big file into separate files, one per feature. By the evening thirteen modules were working: dashboard, bookings calendar, trip history, fleet, drivers, service, reports, data lists, purchase orders, route rates, payroll, financials and trip sheets. Somewhere in the middle I changed my mind about the colours and we went from dark amber to blue and white.

At one point Claude asked whether I wanted to stop and test before carrying on. My answer is in the notes word for word:

That’s fine. I don’t need to test it. Just continue pulling the app.

I would not run a bank like that. For a first version that nobody depended on yet, speed mattered more to me than ceremony, and it still mostly does.

Shouting at PowerShell

Early on the AI kept giving me commands to paste into a terminal window, a habit left over from the chat. My patience lasted about a day. The notes record me typing, in capitals, “WHY ARE WE WORKING IN POWERSHELL?” A week later I told it plainly to run the database and hosting changes itself. It could, so it did.

That created the next problem. Claude Code asks permission before it runs a command, and I clicked yes to every single one. I had never once said no. A yes you give without reading is no protection at all. So we wrote a short list of narrow permissions instead: this kind of command in this folder, allowed; anything broad, ask me first. Twenty-five rules to start with, and none of the blanket ones that would let it run anything at all.

Building for later without paying for it now

In that first week Claude also built an AI assistant panel inside the app that could look things up in our database, and a scanner that reads a vehicle licence disc from a photo. Both cost money every time they run. I did not want to pay for them while I was still building, so they went in behind switches, turned off until we went live.

By the end of May the app had our route rates imported from Excel, a booking form that filled in the rate from the client and route, a proper database on Supabase and hosting on Vercel. In April those names meant nothing to me. I learned what they were by using them.

Build it yourself: your first day

Install the right tool. Claude Code needs a paid Claude plan. You can run it from the desktop app or a terminal. Make a folder for the project and put your existing spreadsheets and templates in it, so the AI can read the real thing.

Describe the job, not the technology. My first useful prompt looked roughly like this:

I manage refrigerated trucks. We book loads in an Excel sheet with these columns: date, client, route, truck, trailer, driver, load number. I want a simple web app where the office can book a load, assign a truck and driver, and print a trip sheet. Ask me questions before you build anything.

The last line matters most. Let it interview you.

Keep it in pieces from the start. Ask for one file per feature, with a short note in each saying what it does. A single giant file is fine for a demo and a trap for anything you keep.

Write your permissions down. Allow the boring, safe commands (building, checking, listing files) and make it ask for anything that deletes, publishes or touches money. If you notice you are clicking yes without reading, tighten the list.

Put paid AI features behind a switch. Build them now, test them once, turn them off until the day you need them.

Save copies from day one. Put the project in a private GitHub repository on the first day, not the twentieth. I learned that one the expensive way, which is a story for Entry 5.

What the first week taught me

My job turned out to be direction. I know what the office needs, what a trip sheet is for, why a diesel order has to match a slip. The AI knows how to build software. The more I explained the business, the better the result. When I explained it badly, I got exactly what I asked for and not what I meant.

Next: nine screen recordings, six months of spreadsheets, and the AI finding mistakes in my data before I found any in its code.

Written from my build notes. I keep a running memory of every session with the AI, and each entry is drafted from those notes with Claude's help, then checked and edited by me.

A question about this entry? Ask it here →