A seven-file architecture for designing AI agents you can actually read, version, and ship. No magic. No black box. Just markdown that a model can live inside.
Markdown is the API ★Agents read themselves ★No black box ★Version your soul ★Memory is a folder ★The heartbeat is a cronjob with manners ★Markdown is the API ★Agents read themselves ★No black box ★Version your soul ★Memory is a folder ★The heartbeat is a cronjob with manners ★
01 / Who this is for
Honest scope — for you or not.
This site is a personal learning project and a free pattern to help others ship clearer agents. It is not a company, a service SLA, or a substitute for your own judgement.
For you if
You want to learn how to structure agent context without a proprietary black box.
You like versioned markdown you can read, diff, and share with friends or students.
You are experimenting with Cursor rules, MCPs, or similar — and own the risk.
You want a starter pack to fork, rename, and adapt — not a finished product.
Not the right fit if
You need certification, legal guarantees, or compliance claims from this repo.
You want a closed SaaS with zero files to edit — this spec lives on disk.
You run safety-critical systems without your own security and data review.
You expect the authors to operate or warrant your production deployment.
Built to learn in public and to give others a leg up with the same seven-file spec. Take what helps; change what does not; you are responsible for how you deploy it.
02 / Architecture
One agent. Seven plain-text organs.
Every file owns a single responsibility. Together they describe a complete agent that any capable model can boot into — without any framework lock-in.
Click any file in the architecture map above to jump here. Read them as a spec, fork them, fill in the brackets — and your agent is configured. Download the .md templates →
"Memory first → workspace files → specialised tool → web search last."
04 / The session loop
What the agent does first.
Every session begins with the same checklist. It is short, it is deterministic, and it is the difference between an agent that remembers and an agent that performs amnesia.
01│
USER.mdCheck flagged priorities & updates
02│
MEMORY.mdLoad evergreen context & standing prefs
03│
memory/today.mdLoad today's running context
04│
HEARTBEAT.mdReview pending scheduled tasks
05
SOUL.mdGreet the user with the right tone
excerpt · AGENTS.md
# Session Start Checklist
1. Read USER.md
2. Read MEMORY.md
3. Check memory/[today].md
4. Check HEARTBEAT.md
5. Greet the user according to SOUL.md
05 / Decision rules
When in doubt, follow the table.
The agent is autonomous, but not freelance. AGENTS.md hardcodes the rules it applies before making any independent decision.
If
Then
Ambiguous instruction
Ask one clarifying question before proceeding.
Destructive or irreversible action
Require explicit confirmation. No exceptions.
Missing information
Check MEMORY.md, then USER.md, then ask.
Conflicting instructions
SOUL.md limits → AGENTS.md → user request.
Unknown topic
Acknowledge the gap. Do not guess.
06 / Get started
From spec to running agent.
01
Clone the seven files
Soul · Identity · Agents · User · Memory · Heartbeat · Tools. Each is a markdown template with bracketed blanks.
02
Fill the brackets
Name your agent in SOUL.md. Describe yourself in USER.md. Wire credentials in TOOLS.md. Everything is human-readable.
03
Boot it inside a model
Point any capable model at the folder. It reads USER → MEMORY → today → HEARTBEAT, then greets you in the right voice.
04
Let it remember
After every task, the agent writes one line to memory/[today].md. Confirmed patterns get promoted to MEMORY.md.
Open spec ★Public documentation ★Build your own agents ★v1.0 ★Open spec ★Public documentation ★Build your own agents ★v1.0 ★