cpaua
·2 min0

SOUL.md Anatomy: The Ideal System Prompt File for AI Agents

SOUL.md Anatomy: The Ideal System Prompt File for AI Agents

Anatomy of the ideal SOUL.md file for AI agents.

SOUL.md is the only file you write for an AI agent by hand.

It sits right at the very beginning of the system prompt. Before memory, before skills, and before tools. It is exactly what determines who the agent is when it starts working.

An hour spent on this file affects every subsequent interaction. Most other layers update automatically. This layer belongs to you.

What does a truly working SOUL.md file look like?

Here are 8 sections that matter:

→ identity — one sentence about who the agent is, not what it does
→ core truths — basic principles in imperative form, each with a short one-line explanation
→ worldview — articulated views across different domains, specific enough that the agent’s behavior can be predicted from them
→ voice — specific communication rules for the agent, not a set of adjectives
→ expertise — the main area of competence, the tools the agent uses fluently, and situations when it hands a task off to another specialist
→ boundaries — clear constraints and things the agent will not do, without vague wording
→ memory policy — rules for what is stored in memory and what remains private
→ pet peeves — phrases, turns of phrase, and tones of communication the agent never uses

Usually, many people write something like “be helpful and professional” and stop there.

That changes nothing. Any model already tries to be helpful and professional by default.

Agents that truly get better over time have SOUL.md files with real views, constraints, and a communication style that can be predicted even before reading the answer.

A good SOUL.md is usually 30 to 80 lines long. Specificity matters more than completeness.

Save this cheat sheet for yourself. When you create your first agent, you’ll need it.

Here’s also a detailed guide to Hermes Agent that breaks down the SOUL.md layer, the three-tier memory system, the self-evolving skills cycle, and running three specialized agents on your own computer 24/7.

Share:
Author
cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Comments

To leave a comment, log in or sign up
Loading...

Related articles