An agent's files
Each resident agent is a folder of plain text files in the vault, plus a few rows in the logbook. Nothing it learns carries over to the next wake unless it wrote it down.
Where you see it
Each agent has its own folder in the vault. The owner can open any of these files and read them like a note. The Office page shows the same things in a friendlier way: the goal, the plan, the current step, the face.
What happens, step by step
- Youagent.mdThe contract. Who it is and its limits. Yours to edit.
- StoreThe planRead from the logbook.
- Agentmemory.mdWhat it learned. Not a diary.
- Agentscoreboard.mdThe one number it is graded on.
- Storerun-log.mdThe last few wake lines.
- Youinbox.mdRead last. What happened while it slept.
Here is every file in an agent's folder.
| File | What it is | Owner edits? | Agent edits? |
|---|---|---|---|
agent.md | The contract, read like a map. It opens with "Who you are", then the goal, the owner's rules, when to stop, and lines that say "when you need X, open skill Y". Kept short on purpose. | Yes, it is the owner's to change | Never |
skills/ | Its own how-to steps, one job per file: how to book the room, how to run a quiz night. Only jobs that are its own go here. Each names the words that mean that job is happening. | Rarely. Every change it makes is written down, so the owner can read it and undo it. | Yes, with no approval |
| The shared skills folder | How-tos every agent needs, kept once for all of them: asking the owner a question, the plan's commands, the order of one wake, logging into a new service. Not inside any one agent's folder. | Yes, it is the owner's to change | Never. The wake guard refuses it. |
memory.md | What it learned: decisions, lessons, open threads. Not a diary. Dreaming keeps it short every night; older notes move to a memory-diary/ folder beside it. | Rarely, to fix a mistake | Yes |
scoreboard.md | The one number it is graded on, the target, and the history | Rarely | Yes |
run-log.md | One line per wake. A view drawn from the logbook. | No, read only | No, it writes a logbook row instead |
inbox.md | What happened while it slept: the owner's answers, notes from routed email | Yes, a line here reaches it next wake | Yes, it deletes each entry once handled |
display-name.txt | Optional. The name the owner sees. | Yes | Yes |
avatar.png and look.json | Its pixel-art face, and the colors for its figure in the office picture | Yes | No |
| A site playbook | How to drive one website it uses, kept up to date | Rarely | Yes |
A normal wake uses them like this:
- The agent wakes with
agent.mdfirst in the message that wakes it. This tells it who it is and what it must never do. The box reads its files for it at the start of every wake, into that message, in this order, so it does not have to open them itself. - Next come its plan from the logbook, then
memory.md,scoreboard.md, and the last lines of its run log. - Only then comes
inbox.md. Say the owner typed "Skip the June date, the room is taken." The agent acts on it and deletes the line. - At the end, it updates
memory.mdwith anything worth keeping, updates the score, and writes one row that says what it did. - The run log file is rebuilt from those rows. Anyone who edits
run-log.mdby hand will see the edit vanish.
The plan and the next wake are rows, not files. They used to be files. Now the plan (the milestones and the numbers it works toward) and the next wake time live in the logbook, the system's database. The agent reaches them only through one door, logbook.py plan (the plan door). The Office page reads and writes the same rows, so the two can never disagree.
What powers it
| Part | What it does |
|---|---|
agent.md | The contract. The owner's file, never the agent's. |
memory.md | What the agent keeps between wakes. |
inbox.md | The mailbox for things that happened while it slept. |
logbook.py session did | Writes the one-line record of a wake. run-log.md is drawn from these. |
logbook.py plan | The plan door: milestones, numbers, and the next wake time. |
skills/ | The agent's own how-to steps. It opens the one for a job before it does that job, and a check at the end of the wake makes sure it did. |
| The shared skills folder | The how-tos every agent needs, kept once. On for every agent. Agents can read and open them, never change them. |
| The wake guard | Refuses any agent's try to edit, write, add, copy into, move or delete anything in the shared skills folder, in a wake or in a chat. |
logbook.py skill log | Every skill the agent wrote or changed, newest first. The vault's history keeps every older version. |
Why it works this way
An agent is not a program that stays running. Each wake is a fresh start. If it did not write something down before it stopped, it is gone.
agent.md belongs to the owner because it is the deal between them. It says what the agent is for and where its limits are. If the agent could edit it, it could quietly widen its own job.
run-log.md is read-only for a similar reason. A log the agent can rewrite is a log nobody can trust. So the agent writes a row to the logbook, and the file is rebuilt from the rows.
The contract is a map. It is short so it can be read whole at every wake. It says who the agent is, its goal, the owner's rules, and "when you need X, open skill Y". Every step-by-step how-to lives in a skill, because a step is only needed when that job comes up. Every rule stays in the contract, word for word.
The contract opens with "Who you are". It is the same section in every contract: the agent's name and job, how it sounds when it writes (it points at the owner's writing style guide), what it cares about most, and who it writes as (its own address, or drafts the owner sends). There is no separate personality file. Only the owner edits the contract, so the agent cannot drift its own personality.
It also says what the agent can reach. 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 vault's main map, loaded at every wake, routes to all of them. The tools listed are just the main ones for its job, and the rules for each.
A budget is real money only. It means a card or a paid tool. It never means the agent's thinking or its time awake.
The contract wins over a skill. The agent writes and improves its own skills without asking, right after it does a job, while it knows what worked. It cannot edit the contract. If a skill ever says the opposite of the contract, the contract wins, and the agent is reminded of that every time it opens a skill. A skill can never let it send, spend or contact someone new: the send guard and its permissions still decide that.
Shared how-tos are kept once. Each agent used to have its own slightly different copy of the same how-to, and the copies drifted apart. Now there is one shared folder, and every shared skill is on for every agent. The owner can keep one agent off one shared skill with a short "do not use" line in that agent's contract. Agents cannot change the shared skills at all. If an agent thinks one is wrong, it says so in a note for the owner. An agent also cannot name one of its own skills the same as a shared one. Opening a shared skill counts the same as opening its own for the check at the end of the wake.
The owner approves each new contract. When a contract is rewritten this way, the new one waits beside the old one. The owner gets one yes-or-no question with a link to read it and a list of what changed, not just moved. A yes puts it in place and keeps the old one. A no, or no answer, keeps the old one. A check proves that only how-to steps moved, and that every rule stayed word for word, before the question is ever asked. It lists every real change for the owner to read.
Nothing from an email or a sign-up form may ever go into memory.md. Memory is read at the start of every wake. One bad line there would steer every wake after it.
Connected to
- How an agent wakes: the order these files are read in.
- The trust ramp: what
agent.mdand the logbook let it do. - The logbook: where the plan and wake time live.
- The memory guard: what protects memory files.
- Desks and chats: where the face and look show up.