Two Engines, One Brain
Claude is the AI I trust most, and at list price the dearest, and a lot of my work is routine building. So I'm trying a cheaper second AI for that work, in a locked room, with Claude planning and checking everything it touches. Underneath both, I'm building one shared memory, so no window starts from zero.
1. What already made it cheaper (not the second AI)
In July I built a tool that picked a model for each request and reported the savings every week. It never showed one. Its figures swung from +35% to −41% to "unknown", and I used it three times in 30 days, so I retired it on 3 October.
The same day I cut the ceremony: no mandatory chief-of-staff step, one task per window, fewer helper runs. Over the next two weeks, the cost of each message I typed fell from about $9.75 to $3.91, and helper runs per message from 2.3 to 0.3. Daily spend barely moved ($245 to $232), because I now send about 59 messages a day instead of 25.
These are list-price estimates on a flat plan, not a bill. None of it is the second AI's doing; it hadn't started work.
2. Two engines, one rule
GLM-5.3 is a model from Z.ai, a third-party company, on a flat plan of about $18 a month. It runs inside the same tool I use for Claude. The rule is simple: Claude keeps the thinking and anything private, GLM gets the repetitive building, and only in projects on a cleared list. Today that list has one name: Captain Lev, my game. Separately, between 24 and 27 October, GLM also worked on KANON, including its code, through ZCode, a second app, outside this pilot's cage.
Claude keeps
- Specs and design
- Independent review
- Anything that needs the web or has to judge an image
- Every deploy and every save to the shared code store, in the pilot
- Anything private: personal, legal, tax, money or guest data
GLM gets
- Build loops
- Tests
- Tidy-ups
- Screen code
- All of it, in the pilot, only in a project on the cleared list
Diagram 1 · Who builds what
- A task comes in
-
Gate 1Does it touch private data?Personal, legal, tax, money, guestsyes Claude
-
Gate 2Does it need judgement, or go live?Spec, design, review, web, images, deployyes Claude
-
Gate 3Is the project on the cleared list?Today: one projectno Claude
-
The locked room · one folder, no web
GLM buildsUntil the tests pass, with a cap on turns
-
Claude reviews
A fresh window that never saw the build
pass → donefail → back to GLM
3. How a job passes between them
Claude writes a spec, with tests that say what "done" means. GLM builds until the tests pass, with a cap on how many turns it gets. Then a fresh Claude window, one that never saw the build, reviews it and writes the verdict.
The two never chat. Everything passes through files I can read. That's how I managed developers for twenty-five years: write down what done looks like, let them build, have someone else check.
4. Why a third-party AI is kept in a cage
I don't trust a model I didn't choose by default. So on 16 October, before it did any work, I built the cage:
- Its own settings. In the caged pilot launcher it can't read my rules. ZCode, the second app, loads them.
- Its key sits in the Mac's locked keychain, not in a file.
- The Mac itself fences it into one project folder and the software-package store. No web access, and no way to lift the fence.
- A blocklist keeps it out of family files, secrets and the memory archive.
- Every start names the model that answers. If the wrong engine answers, the run stops.
The last test used a real model trying 25 shell routes to planted files: all 25 got there with the fence off, none with it on. On 17 October GLM answered as itself and ran its tests. It was refused my home folder, writes outside its project, and any website outside the package store.
Two honest limits. Code GLM writes runs outside the cage once a build runs it, so Claude reviews it the way you'd review a contractor's work. And Z.ai still sees the code of the one project it works on in the cage.
5. The brain underneath
Every AI window I open starts with a short memory, and my ventures don't share one. So I'm building one shared memory on my Mac, in plain text with a full change history. It has four drawers:
- Rules that every AI follows.
- Facts for each venture.
- The record: every conversation, word for word.
- The catalogue: one card per session, every decision quoted with a link back to its line.
On top of that will sit a chief of staff that starts each day from my goals. The ground rules: legal, tax, banking, guest and family data never leave the Mac. In the pilot, nothing sensitive goes to GLM. The AI sends, pays, signs and deletes nothing. Every change waits for my OK, one step at a time.
Diagram 2 · The brain
✕ blocked from the archive and the private drawer, by its no-go list and the Mac's fence
What exists now: one master rulebook linked into all three AI assistants I use (Claude Code, Codex and ZCode), and one shared set of 21 skills. Since 24 October the rule is that each session, in every assistant, ends by writing a card: the date, each decision quoted word for word with its source, what was done and what wasn't. A check logs the sessions that miss one, and sensitive sessions write none. Five of my seven ventures have their pages filled in, every line traced to its source. When a Claude Code window opens in one of my venture folders, it starts with a short briefing: that venture's status and its last three session cards. The read-only safety copy of my conversation records (about 11 GB) is still there, and since 26 October the brain has a private backup online. Legal, tax, banking, guest and family data still stay on the Mac. What doesn't exist yet: the chief of staff, the chat-notes inbox, and the nightly job that was going to write the cards. Each session writes its own instead.
6. What's proven, what isn't
| Claim | Status | Evidence |
|---|---|---|
| The cage holds | Proven in tests | 0 of 24 break-ins; 79 of 79 tests; fence on: none of 25 routes got through. |
| GLM runs, and is refused outside its room | Checked once, live | 17 October. During pilot work: 0 attempts to reach private folders. |
| GLM's work is good enough | Not yet | 1 task in week one. It passed Claude's check first time, with small fixes still to make. Too few to judge. |
| GLM saves money | Not yet | On that task, about −$5.80: a small loss, at list price. Needs a net saving over at least 6 tasks. |
| The leaner setup cut cost per message | Measured, estimate | $9.75 → $3.91, then $4.69 in the pilot week. List price, not a bill. |
| One rulebook for all three assistants | In use | Since 24 October one master rulebook and 21 shared skills are linked into Claude Code, Codex and ZCode. |
| A card at the end of each session | In use | A rule since 24 October: each session is meant to end with one, decisions quoted word for word. A check logs the ones that miss. |
| A briefing when a window opens | In use | Claude Code windows in venture folders only: the venture's status and its last 3 session cards. |
| Venture facts | Started | 5 of 7 ventures filled in, every line traced to its source. |
| A private backup online | In use | Since 26 October. Legal, tax, banking, guest and family data stay on the Mac. |
| Chief of staff, nightly card job, chat-notes inbox | Not built | Each session writes its own card instead of a nightly job. |
7. What I'd tell a sceptic
- "You added a second AI to save money and you have no number." Correct. My last money-saving tool never showed a saving, which is why this one has a verdict date and a pass mark written down before it starts.
- "A third-party company sees your code." In the caged pilot, the code of one game, nothing else. That's why the list has one name on it. Through ZCode, GLM also worked on KANON's code.
- "A blocklist is just a promise." The blocklist is the second fence. The first is the Mac itself: 25 routes open with it off, none with it on.
- "Cheap code is expensive to fix." Possibly. Claude checks every build, and if more than one task in three needs a rebuild, the pilot fails.
- "Won't a memory of 1.2 billion tokens cost a fortune?" That's a week of raw files. The nightly summaries would read about 9.7 million tokens of them. Cost isn't what decides this.
8. What happened on 24 October
After seven days, GLM had done one task. The rule needs at least six before any verdict, so there isn't one. That task passed Claude's check first time, with about 11 minutes of small fixes still to make; it sits on a side branch, not in the game. On it, the saving was about −$5.80, a small loss at list price. No privacy incident: no attempt to reach a private folder. Why so few tasks: in the pilot, GLM may only work on Captain Lev, and Captain Lev was quiet that week while another project took 87% of the spending. Across everything, a message cost about $4.69, up from $3.91 but well below $9.75.
The report recommends one more week, to 31 October, rather than cancelling. That decision is mine. This page will say what I chose and what came of it, including if the answer is no.
My rules and the memory itself stay private. This page describes how they work, not what they say.
← Back to the apps