Skip to main content
Chapter 3 The Soul Architecture: Designing Your Agent's Identity

Five Files, One Digital Being: The Architecture Map

4 min read Lesson 14 / 65 Preview

The architecture in one picture

Every OpenClaw install boils down to five files. Master these and you master the framework.

File Question it answers Frequency of edits
Soul What is this agent for? Rare (once per agent)
Identity How does it talk? Occasional (tone tweaks)
User Who am I to it? Occasional (when life changes)
Agent How does it operate? Often (workflow tuning)
Heartbeat When does it act on its own? Often (schedule tuning)

The mental model

Think of building an employee:

  • Soul = the job description ("you are a research assistant who values accuracy over speed")
  • Identity = the personality on the badge ("warm, blunt, lightly nerdy")
  • User = the manager handbook ("the boss is a left-handed Laravel dev in Amsterdam")
  • Agent = the operations manual ("for any code task, read the file first, then plan, then write")
  • Heartbeat = the calendar ("at 9am, check overnight emails and summarize")

Each is small (rarely more than a page). Each has a specific job. Together they produce an agent that is recognizably yours.

Editing rules

  1. Start tiny — a one-paragraph Soul beats a five-page Soul nine times out of ten
  2. One file per edit — change one thing, observe behavior, then change the next
  3. Version-control the whole ~/.openclaw/ (or equivalent) folder in a private git repo

Try it

Open all five files in your editor and skim the defaults. Do not change anything yet. Just notice what is there. We are about to write each one in detail.

Next Lesson Writing the Soul File: Purpose, Ethics & Boundaries
Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support