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
Here is every file in an agent's folder.
| File | What it is | Owner edits? | Agent edits? |
|---|---|---|---|
agent.md | The contract: who it is, its goal, its rules, when to stop | Yes, it is the owner's to change | Never |
memory.md | What it learned: decisions, lessons, open threads. Not a diary. | 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 |
skills/proposed/ | Skills it drafted for itself. Nothing here runs. | Yes, to promote one | Yes, to write one |
| 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 and reads
agent.mdfirst. This tells it who it is and what it must never do. - It reads its plan from the logbook, then
memory.md,scoreboard.md, and the last lines of its run log. - Only then does it open
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/proposed/ | A holding pen. A skill here does nothing until the owner moves it. |
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.
Proposed skills do not run because an agent should not be able to hand itself new powers. The owner reads it and moves it if it is good.
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.