Building an agent from parts
A new agent is not written from scratch. It is one or two work shapes, plus a shelf of shared parts every agent already has, tied together by a contract the owner agrees to in a short interview.
- The result
- 15 people in the room at every monthly baking workshop.
- The number
- Came to the workshop: 9 of 15.
- Never
- Promise a discount. Post in public without a yes.
- Steps and who does them
- Book the room · ownsSign-up page · draftsClass outline · you
Example screen with made-up data.
Where you see it
The owner sees a conversation, then a new agent on the Office with a face, a goal, a number, and a plan already approved. Behind it is a folder in the vault (the folder of plain text files that holds everything) named after the agent. Its agent.md is the contract. The owner can edit it directly.
What happens, step by step
Say the bakery owner says: "I want something that keeps my workshops full."
- First, the four-kinds test. Is this started by a clock, an event, a person asking, or the agent's own judgment? Only the last one becomes an agent. A fixed list of steps becomes a cheaper routine instead.
- Research first. Before any contract, Claude looks up how others do this job and writes what is worth taking and what to avoid.
- Name the shapes. One or two, with a share of time. Here: Filler, mostly, with some Chaser.
- The interview. The questions are rows in the logbook, asked one at a time: the result, the number, what it may never do, its tools and people, how often it wakes, how the job splits, who does each step, and whether the job repeats (one event after another, like a monthly class). Then any extra questions the shapes add. A job that repeats gets one more file, the list of steps each new round starts with.
- Write the folder, from one template. The answers go into a small setup tool, and it writes the folder the same way for every new agent: a short contract,
agent.md(it opens with "Who you are", then its job card, the plain words the Office shows on its row and its detail card: what it does, its goal, what it is responsible for, what is not its job, what it never does, and when you hear from it; then its goal, its limits, your rules, and lines saying which how-to to open for which job), a folder for the agent's own how-to skills (the shared how-tos are on by default, with no copies),memory.md(already in the short shape Dreaming keeps),scoreboard.md(its number today, not a made-up zero) andcraft.md(what makes a good one). Section 4, the resources, opens with a line that the agent can read the whole vault and has many more tools than the ones listed. The tool checks the contract is short and has every rules section, and that the job card has every part, or it writes nothing. Then a face: the desk scene first, its expressions, and the row face cut from the scene, so all three are the same person. - Set the first wake before anything else, then its reading list. On the box, one command sets the first wake for tomorrow morning, and only then gives the agent its checklist (its rules, plan, notes, history and inbox). That checklist is what lets the box read its files for it at every wake.
- If it has its own email address, add the line that wakes it. The same tool adds one line to the email rules: mail to that address wakes the agent, grouped 30 minutes, and its own mail never does. It starts in watch-only mode and goes live after one test email.
- Fill the plan. The shapes' starter steps and numbers go in through the plan door, named in the owner's words, each with its who-does label.
- Sign. The owner signs the contract, and that one act approves every starter step. A budget, if any, is typed on the Office's Settings tab.
The shared parts
These are built once and every agent gets them. The agent does not have to know how they work.
| Part | What it does for every agent |
|---|---|
| The wake wall | The agent cannot do anything until it has read its checklist: contract, plan, memory, recent history, inbox, and what is new on the forum. The box reads all of it for the agent when it wakes. |
| The shared skills | Four how-tos kept once for every agent: asking you a question, the plan's commands, the order of a wake, logging into a new service. On by default, no copies. The agent cannot change them. |
| Its own how-to skills | One for each step of its shape, written the first time it does that step. It improves them itself; the contract still wins. |
| "Who you are" | The first section of its contract: its name and job, how it sounds when it writes, what it cares about most, and who it writes as. |
| A daily wake | It starts at least once a day, weekends included, whatever time it picked. Nothing to switch on. |
| Dreaming | Every night it did real work, its notes are tidied and it gets better. Nothing to switch on. |
| The room wall | The same wall when the owner opens a chat with the agent. |
| Decision capture | A decision made in a chat is written to the plan, the inbox, or memory the moment it lands. |
| Email intake | The agent never reads a raw email. A tool-less model fills a form about it, and the agent gets the form. |
| The deleted folder | The agent never truly deletes. It moves things aside with a reason. |
| The send guard | Every message to a real person goes through one checked door. |
| The Office row | Every agent shows up on the page the same way, with no extra work. |
What powers it
| Part | What it does |
|---|---|
add-resident-agent skill | The step-by-step setup Claude follows. |
| The skill's setup tool and template | Writes every new agent's folder the same way: the short contract with "Who you are" first, a folder for its own skills, its email line, its first wake and checklist. |
logbook.py interview show | Reads the interview questions, which are editable rows. |
Resources/Agents/archetypes/ | The 17 shapes: starter plans, numbers, guardrails, wake rhythms. |
Resources/Agents/modules/ | The shared parts, each with a plain page and a builder's page. |
logbook.py plan | Where the starter steps and numbers are written, and where the plan is approved. |
Why it works this way
Why the first wake is set first. One new agent was copied onto the box and woke up seven seconds later. It had no checklist and no steps yet. It spent 25 turns and $2.24 before anyone noticed. It did no harm, but the order changed: set the wake time first, then build the rest.
Why the interview is short. One pass through the questions, then stop. A long, open chat produces a vague contract, not a better one.
Why one signature. The owner read the steps in the interview and signed a contract that describes them. Asking the same yes again for each step was the wrong shape. Only steps the agent adds later need a new stamp.
Why one template. Every agent built by hand came out a little different, and some started with a long contract full of step-by-step how-tos, or with no reading list at all, so the box could not read their files for them. A template gives every new agent the same short shape, and a check refuses a folder that misses it.
Why one shared folder of how-tos. Each agent used to carry its own copy of the same four how-tos, and the copies drifted apart. Now there is one, and agents cannot edit it. A brand-new client vault gets the four shared skills written once, for its first hire, with the owner's name filled in. From then on they are that vault's own.
Why "Who you are" is in the contract. There is no separate personality file. Only the owner edits the contract, so the agent cannot drift its own personality.
Why parts, not code. A new kind of job should be set up, never coded. If a new agent needed new engine code, the design would be wrong.
Connected to
- The 17 kinds of work: the shapes a job is built from.
- The agent's files: what each file in the folder does.
- The trust ramp: what a new agent may do alone, and how that grows.
- The delegation tree: how each step gets its who-does label.
- Agents vs routines: the four-kinds test in full.