Anatomy of a Working SOUL.md File for AI Agents

A breakdown of the eight sections that make SOUL.md effective, why generic instructions fail, and how specificity shapes agent behavior from the first prompt.

cpaua2 min374
Anatomy of a Working SOUL.md File for AI Agents

According to the channel author, SOUL.md is the single file you write by hand for an AI agent, placed at the very start of the system prompt — before memory, skills, or tools. It defines who the agent is the moment it begins working, and the time invested in it affects every subsequent interaction.

Why SOUL.md sits at the top of the prompt stack

Most prompt layers update automatically as the agent runs. SOUL.md is the only layer that remains entirely under human control. The author notes that agents which genuinely improve over time carry SOUL.md files with concrete viewpoints, explicit constraints, and a communication style you can predict before reading the response.

The eight sections that define agent behavior

A working SOUL.md typically runs 30 to 80 lines. The author lists eight required sections: identity — one sentence on who the agent is, not what it does; core truths — imperative principles each with a one-line rationale; worldview — stated positions specific enough to forecast behavior; voice — concrete communication rules, not adjective lists; expertise — primary domain, mastered tools, and handoff triggers; boundaries — explicit refusals without vague phrasing; memory policy — what persists versus what stays private; pet peeves — phrases, constructions, and tones the agent never uses.

What separates a working SOUL.md from boilerplate

Writing "be helpful and professional" changes nothing — every model already defaults to that. Specificity outweighs coverage. The post also references a detailed guide on Hermes Agent covering the SOUL.md layer, a three-tier memory system, self-evolving skill loops, and running three specialized agents locally 24/7. For teams building agent wrappers, the practical guide on wrappers addresses tools, memory, safety, and orchestration.

Sources

x.com — content not available without authorization

Share

Author

cpaua

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

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.