Explainer 0 ยท Architecture

How our AI system fits together

The short version. One person sets the direction. A single AI session, the hub, makes the judgment calls and hands work out. Separate agents each cover one area of work and stay inside it. Cheaper AI models do most of the actual work, and the pricey one only decides.

Around all of that sit three things that keep it sane: rules that block bad moves, a memory of what we learned, and a task list so nothing lives only in a chat.

Think of a small office. The owner decides, a manager routes the work, specialists each have their own desk, and everyone writes things down.

The architecture on one page A person sets direction for the hub. The hub routes work to three lane agents. The lanes hand work to cheaper models. Gates and hooks, memory and a vault, and a task tracker surround the whole system. You set direction Hub: judges and routes Build lane Write lane Ops lane Cheaper models do the work lookups, drafts, code in a known area Around all of it Gates andhooks Memory andvault Tasktracker
Direction flows down. Rules, memory and the task list wrap around everything.

Going deeper

This is the version for people building something similar. The shape is the same, with the moving parts named.

One person, one hub

A human sets goals and keeps the calls that need judgment, money or taste. The hub is a long-lived AI session that reads the ranked work list, decides what matters next, and routes it. It does not do bulk work itself. Its job is deciding, summarizing what comes back, and talking to the human in short messages.

Lane agents with their own boundary

Each area of work gets its own agent definition: one for each business, one for the tooling that runs all of this, a few for narrow jobs like placing windows or driving a browser. Every one reads the same short contract first, then its own lane file, and nothing else. A lane file says what it handles, what it never handles, and which credentials it may read.

We are straight about what that is. The boundaries are written rules plus hooks that catch the common crossings. They are not a sandbox, and every agent still runs as the same machine user. That is why the sensitive paths also have hooks that fail closed.

The expensive seat judges, cheaper models work

Model choice is a routing decision, not a default. The top-tier model sits in the seat that talks to the human and makes judgment calls. Everything else is dispatched to a model picked for that job, and the dispatch says which model and why:

The reason is quota and cost, not taste. A long conversation re-sends its whole history every turn, so doing bulk reads in the expensive seat burns the budget fast. A subagent returns a short summary and its own context disappears. Parts of this are enforced by a hook that refuses the common wrong shapes, like running a plain lookup on the top tier. Parts are only a rule we follow.

Gates and hooks

Rules that only live in a prompt get ignored under pressure, so the important ones are code. Examples: tests must pass before a commit goes through, a hook blocks reads of secrets and of areas an agent has no business in, background jobs may never touch a metered paid API, and anything addressed to a person outside the system needs the human's approval of the exact text first. A hook that fires is cheap. A rule an agent forgets is not.

Memory and the vault

Two layers hold what we learned. Memory is a folder of small notes the agent loads at the start of a session, covering preferences and corrections. The vault is a git repository of plain markdown: decisions, references, records of what happened. The split is simple. If it is a fact or a decision, it goes in the vault. If it does something, it is code. If it is a way of looking at what the code already knows, it is a view. One record, one engine, and any number of views over them. Explainer 1 covers memory in detail.

Everything is a task

Work starts from a ticket. A session opens by naming the ticket it is on, questions go up to the hub one at a time, and the result is recorded against the ticket. That way nothing important lives only in a chat window that will be gone tomorrow.

What this costs you to copy

You do not need all of it. The smallest useful version is three parts: a hub that decides and delegates, one lane file per area with explicit "never handles" lines, and two or three hooks that block the mistakes you have already made once.

Check for yourself

Copy the goals of this page into a prompt to see how it relates to your setup and if any of these ideas can help you.

Show promptHide prompt
Check how the ideas on this page fit my own AI setup, then point me to the next DXdev page that fits.

Page: Explainer 0: How our AI system fits together
Link: https://dxdev.com/technical/explainers/architecture/

Ideas:
1. Have one long-lived session decide and hand out work instead of doing bulk work itself
2. Give each area of work its own agent file with a list of what it never handles
3. Send work to a model chosen for the job and keep the expensive model for judgment
4. Turn the important rules into hooks and gates, not prompt text
5. Keep memory and a notes repository so lessons survive a closed chat
6. Start every piece of work from a ticket so nothing lives only in a chat

Compare each idea with how I use AI today. Look at my files if you can see them. Otherwise ask up to 3 short questions first (what I use AI for, my tools, who else is involved), then carry on. Never guess: if unsure, use ๐Ÿ”.

Match my level. One chat tool: basic checks. One coding assistant such as Copilot: rules file, tests, human review before merge. Several agents or a team: no beginner advice, and check the advanced version instead of marking โž– (hook or gate, second reviewer, model routing and cost, memory that survives a closed chat).

Read only. Change nothing, install nothing, send nothing.

One line per idea, in order: exactly one icon, the idea in a few words, a colon, your answer. No numbers.
โœ… Already doing this
๐Ÿ’ก Would help (one next step)
๐Ÿ” Worth a closer look (what to check)
โž– Does not apply (short reason)
Every ๐Ÿ’ก and ๐Ÿ” line MUST end with "Go deeper:" and one link from the list. Use only these links.

Links:
- https://dxdev.com/work-with-us/ : free check, paid review, build help
- https://dxdev.com/useful/ : new to AI
- https://dxdev.com/skills/dxdev/ : free lesson prompts
- https://dxdev.com/technical/explainers/memory/ : advanced: memory
- https://dxdev.com/blog/internal-review-said-clean-second-pass-found-six/ : advanced: second reviewer

Then "Start here:" with ONE link and why it fits me (work-with-us if I want a review or build help).
Then exactly: DXdev runs these ideas every day in its own live businesses, and the explainers show how.
If any line is ๐Ÿ’ก or ๐Ÿ”, then exactly: Want a second pair of eyes? DXdev reviews setups like this: https://dxdev.com/skills/dxdev/#review

Plain, short, friendly. No dashes as punctuation. Name no DXdev page outside the list.