Article · 1 December 2026
My AI agent forgot everything overnight. So we built a factory
Fusebox's CTO started alone in January, with Claude Code as a smarter code complete and an agent that forgot every correction overnight. How that became Fusie, an AI software factory, and why the first part of it is the one that makes a correction stick.

In the last 5 working days of November we said one thing to our coding agents 100 times, and each time it changed a rule the agents read, the same day:
No, that's wrong.
My first weeks as CTO went the way they usually do: learn how the company works and what it runs on, then look for what could make us faster - the biggest pains, the clients we must not lose, the chances we must not miss. I won't go through all of it here. One thing let me get my own hands dirty, and it ended up as a new product and a new way of working.
I started with "where we stand on money" - what comes in and goes out, recurring revenues, OTPs, costs, invoices - and built a few dashboards. In January there were no rules. I used Claude Code the way most people do, as a smarter code complete (ok, not just "smarter" - it was super smart and impressive, but not without some pitfalls), with me in every step: ask, read the diff, correct it, ask again. Soon I noticed I was correcting the same things every day: a screen that looked different from the other similar ones, or screen misalignment / overflows / cutoffs on mobile, or original thought forgotten mid discussion. The worst were the long sessions. We talked and talked, the work drifted a little with each turn, and nobody stepped back to see that a simpler fix had been there all along. Every session started from zero, so the next morning I had to repeat myself. I had an idea that AI can deduce all the missing pieces of context from the code we have agreed on and written earlier, but soon I lost trust. It looked like Groundhog Day.
The bigger problem was hiding around the corner. And it could be found only when you start collaborating with others. And obviously, exactly when you try to talk to others who may know something - then either they are on vacation, or left the company, or simply can't remember what the decision was back then, and why. And browsing tons of disconnected materials from emails, wikis docs, spreadsheets, CRMs - or worse, siloed conversations you have no access to. And if you find something - then good luck trusting it - since it may already be outdated.
What was promised to whom? Why? When?
My Claude Code could not follow a decision nobody wrote down - and neither can a new colleague, me included.
So in March I started writing things down where an agent would read them: one rules file every session loads, and a plan for the work. I also started gathering things in one place and cleaning things up, and writing some automatic cleanup procedures. In April the work got a name, Fusie, and she grew into the factory itself: multiple agents, bots and interaction surfaces, their rules, the checks around them, and the files they all read.
The factory has 8 parts now, around that one set of files. The one that changed the most is the first we ran into: a correction that edits the file, so it is made once, not once per session. That is this article. The other 7 follow, one at a time.
A correction becomes a rule the same day
Every agent session in the repository starts by loading one rules file. When one of us corrects an agent, the agent edits the rule that should have prevented the mistake, in the same session, and files the correction's exact words, with what had gone wrong, in a dated file beside it. That is Fusie's first part, and the one every other part of her stands on.
Every correction since 5 November is filed beside the rule it changed: 339 by the end of the month. Each one made the file a little longer, and on 12 November we moved the rules that apply to one directory out of it, which is the last part of this story.
A rule that keeps breaking names what pulls against it
The vendor's own documentation says how an agent treats this file:
As context, not enforced configuration.
We measured it: the plain rule "write no comments" held in a clean file and failed in one full of old paragraph comments, kept in 3 runs of 16. The fix was not a louder rule. It was one sentence naming the pull, the comments already around the line being written, and the same test then passed 11 times in 16, with nothing else changed:
$ grep -o "Never copy the comment style[^.]*." CLAUDE.md **Never copy the comment style of the file you are in**, and that includes when asked to match its style: older files carry paragraph comments, and they are not the standard.
A rule still broken becomes a check
11 in 16 is still 5 misses. Where a rule must hold, it becomes a hook that blocks the action and says what to do instead. The comment rule is now a pre-commit check that stops any commit adding a comment block over three lines, and names each block to cut to the one line that says why.
Five checks run today: long comment blocks, a rules edit without its evidence, a pull request that changes no spec or passes 400 lines, a push from a branch that already merged, and a git command that stages a whole folder. That last one exists because a git add of a folder once swept six untracked files into a commit nobody meant them for. On 30 November it stopped an agent again:
$ git add docs/marketing/content/drafts/2026-12-01-post-ai-software-factory `git add docs/marketing/content/drafts/2026-12-01-post-ai-software-factory` names files it did not list — in a shared checkout they may be another session's unsaved work. List the files you wrote.
Split the rules file by directory
One file for everything stops working before it looks full. At about 40 KB every session loaded all of it: the database rules while editing a blog post, the UI rules while writing a migration. The more an agent loads that has nothing to do with the task, the less each line it needs counts. So the split: what applies everywhere stays in the root file, and each rule that belongs to one directory moves, word for word, into a rules file in that directory, which the agent loads only when it works there.
We measured it before moving anything. A rule in a directory's file was kept as often as the same rule in the root, 14 and 15 runs of 16, and a short root file did better than the long one, 15 runs of 16 against 11. Each moved section leaves a one-line pointer where it was, and the root file tells the agent to read a directory's rules itself before working there, because a search through that directory does not load them.
The rules grew from 7 KB in March to 90 KB in November. After the split, most of the new lines went back into the file every session loads: it is 75 KB today, past the size it was split at. So measure the file in kilobytes, not lines - a correction usually lengthens a rule already there rather than adding one - and split it again when it grows: it is a habit, not a one-off.
What the speed buys
In March the average contributor across Fusebox's repositories worked on 8 pull requests, and that month's busiest on 13. In November the average worked on 51, and the busiest on 258, people and agent accounts alike. Part of the gap is better models, and everyone gets those. The part we control is less exciting: every correction outlived the session it was made in.
For a company that already sells, the return is speed and reach. Fusebox's CEO and its sales lead, neither of them an engineer, now merge their own changes every week. The bottleneck moved: from typing the code to knowing what clients want, and telling them. That part is still people talking to people.
If you run a process rather than the engineers, the same applies to you: the work is mostly writing down what your company already knows, and the first step can be small. How we build software for energy companies.
Start one on Monday
- One rules file. The file every agent session loads first. Start it with the three mistakes you corrected most this week, each one line.
- A correction is an edit. Each time you tell an agent it is wrong, the agent changes the rule that should have stopped it, in the same session, and files your words beside it.
- Reword before you add. When a rule is broken again, find what pulled the agent off it and name that pull in the rule. A second rule beside the first makes two rules nobody keeps.
- Then a check. When the reworded rule still breaks, write the check: a git hook that blocks the commit and says what to do instead.
- Split it by directory. When the file passes about 40 KB, the size ours was split at, keep only what applies everywhere at the root and move each directory's rules, word for word, into a rules file there.
The other 7 parts of the factory
The judge
The harness
Memory
Skills, tools and MCP
Security audit
Human hand-off
The team
The rules, plans and decisions the agents work from sit in the same files our assistant answers from, so a colleague who asks why something was built gets the decision the agents followed: see how a knowledge hub answers from a company's own files.
Your team ships more code than it can review, or corrects the same agent mistake every week? We look at your setup with you: 20 minutes, your repository on screen. Fusebox has run distributed energy assets for 11+ years, and builds software for energy companies on that. How we build software for clients, or get in touch.