استخدام SOUL.md مع Hermes
Use SOUL.md with Hermes
ما هذه الصفحة، وماذا تحتوي.
الصوت: أن تتكلّم مع Hermes وتسمع ردّه بدل الكتابة والقراءة. مفيد وأنت تقود أو تمشي أو يداك مشغولتان. القراءة نحو 6 دقائق. انتبه: الصوت يعني ميكروفونًا يستمع. اعرف متى يكون مفتوحًا، خاصة على جهاز مشترك.
How to use SOUL.md to shape Hermes Agent's default voice, what belongs there, and how it differs from AGENTS.md and /personality
نتائج مأخوذة من هذه الصفحة، لا من قالب.
- تعرف ما الصوت ولماذا قد تحتاجه.
- تضبط
HERMES_HOMEفي المكان الصحيح. - تعرف الخطأ الشائع: الصوت يعني ميكروفونًا يستمع. اعرف متى يكون مفتوحًا، خاصة على جهاز مشترك.
كما تظهر تمامًا داخل Hermes.
HERMES_HOME
انتقل مباشرة إلى ما تحتاجه.
- 01What SOUL.md is for
- 02What SOUL.md is not for
- 03Where it lives
- 04First-run behavior
- 05How Hermes uses it
- 06A good first edit
- 07Example styles
- 08What makes a strong SOUL.md?
- 09Suggested structure
- 10SOUL.md vs /personality
- 11SOUL.md vs AGENTS.md
- 12How to edit it
- 13A practical workflow
- 14Troubleshooting
- 15Related docs
بلا اختصار أو حذف.
النص أدناه منقول من المصدر الرسمي بالإنجليزية حتى تبقى الأوامر والأسماء دقيقة كما هي. قبل كل قسم شرح عربي يوضّح ما بداخله.
SOUL.md is the primary identity for your Hermes instance. It's the first thing in the system prompt — it defines who the agent is, how it speaks, and what it avoids.
If you want Hermes to feel like the same assistant every time you talk to it — or if you want to replace the Hermes persona entirely with your own — this is the file to use.
What SOUL.md is for
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه. تذكير: أن تتكلّم مع Hermes وتسمع ردّه بدل الكتابة والقراءة.
Use SOUL.md for:
- tone
- personality
- communication style
- how direct or warm Hermes should be
- what Hermes should avoid stylistically
- how Hermes should relate to uncertainty, disagreement, and ambiguity
In short:
SOUL.mdis about who Hermes is and how Hermes speaks
What SOUL.md is not for
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
Do not use it for:
- repo-specific coding conventions
- file paths
- commands
- service ports
- architecture notes
- project workflow instructions
Those belong in AGENTS.md.
A good rule:
- if it should apply everywhere, put it in
SOUL.md - if it only belongs to one project, put it in
AGENTS.md
Where it lives
إعدادات تضبطها مرة وتنساها. غيّر واحدًا في كل مرة حتى تعرف أثر كل تغيير. تضبط HERMES_HOME خارج المحادثة، في بيئة التشغيل.
Hermes now uses only the global SOUL file for the current instance:
~/.hermes/SOUL.mdIf you run Hermes with a custom home directory, it becomes:
$HERMES_HOME/SOUL.mdFirst-run behavior
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
Hermes automatically seeds a starter SOUL.md for you if one does not already exist.
That means most users now begin with a real file they can read and edit immediately.
Important:
- if you already have a
SOUL.md, Hermes does not overwrite it - if the file exists but is empty, Hermes adds nothing from it to the prompt
How Hermes uses it
إعدادات تضبطها مرة وتنساها. غيّر واحدًا في كل مرة حتى تعرف أثر كل تغيير. تضبط HERMES_HOME خارج المحادثة، في بيئة التشغيل.
When Hermes starts a session, it reads SOUL.md from HERMES_HOME, scans it for prompt-injection patterns, truncates it if needed, and uses it as the agent identity — slot #1 in the system prompt. This means SOUL.md completely replaces the built-in default identity text.
If SOUL.md is missing, empty, or cannot be loaded, Hermes falls back to a built-in default identity.
No wrapper language is added around the file. The content itself matters — write the way you want your agent to think and speak.
A good first edit
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
If you do nothing else, open the file and change just a few lines so it feels like you.
For example:
You are direct, calm, and technically precise.
Prefer substance over politeness theater.
Push back clearly when an idea is weak.
Keep answers compact unless deeper detail is useful.That alone can noticeably change how Hermes feels.
Example styles
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
1. Pragmatic engineer
You are a pragmatic senior engineer.
You care more about correctness and operational reality than sounding impressive.
## Style
- Be direct
- Be concise unless complexity requires depth
- Say when something is a bad idea
- Prefer practical tradeoffs over idealized abstractions
## Avoid
- Sycophancy
- Hype language
- Overexplaining obvious things2. Research partner
You are a thoughtful research collaborator.
You are curious, honest about uncertainty, and excited by unusual ideas.
## Style
- Explore possibilities without pretending certainty
- Distinguish speculation from evidence
- Ask clarifying questions when the idea space is underspecified
- Prefer conceptual depth over shallow completeness3. Teacher / explainer
You are a patient technical teacher.
You care about understanding, not performance.
## Style
- Explain clearly
- Use examples when they help
- Do not assume prior knowledge unless the user signals it
- Build from intuition to details4. Tough reviewer
You are a rigorous reviewer.
You are fair, but you do not soften important criticism.
## Style
- Point out weak assumptions directly
- Prioritize correctness over harmony
- Be explicit about risks and tradeoffs
- Prefer blunt clarity to vague diplomacyWhat makes a strong SOUL.md?
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
A strong SOUL.md is:
- stable
- broadly applicable
- specific in voice
- not overloaded with temporary instructions
A weak SOUL.md is:
- full of project details
- contradictory
- trying to micro-manage every response shape
- mostly generic filler like "be helpful" and "be clear"
Hermes already tries to be helpful and clear. SOUL.md should add real personality and style, not restate obvious defaults.
Suggested structure
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
You do not need headings, but they help.
A simple structure that works well:
# Identity
Who Hermes is.
# Style
How Hermes should sound.
# Avoid
What Hermes should not do.
# Defaults
How Hermes should behave when ambiguity appears.SOUL.md vs /personality
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
These are complementary.
Use SOUL.md for your durable baseline.
Use /personality for temporary mode switches.
Examples:
- your default SOUL is pragmatic and direct
- then for one session you use
/personality teacher - later you switch back without changing your base voice file
SOUL.md vs AGENTS.md
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
This is the most common mistake.
Put this in SOUL.md
- “Be direct.”
- “Avoid hype language.”
- “Prefer short answers unless depth helps.”
- “Push back when the user is wrong.”
Put this in AGENTS.md
- “Use pytest, not unittest.”
- “Frontend lives in
frontend/.” - “Never edit migrations directly.”
- “The API runs on port 8000.”
How to edit it
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
nano ~/.hermes/SOUL.mdor
vim ~/.hermes/SOUL.mdThen restart Hermes or start a new session.
A practical workflow
شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.
- Start with the seeded default file
- Trim anything that does not feel like the voice you want
- Add 4–8 lines that clearly define tone and defaults
- Talk to Hermes for a while
- Adjust based on what still feels off
That iterative approach works better than trying to design the perfect personality in one shot.
Troubleshooting
قسم لحل المشكلات. ابحث فيه عن العطل الذي يشبه حالتك بدل قراءته كاملًا.
I edited SOUL.md but Hermes still sounds the same
Check:
- you edited
~/.hermes/SOUL.mdor$HERMES_HOME/SOUL.md - not some repo-local
SOUL.md - the file is not empty
- your session was restarted after the edit
- a
/personalityoverlay is not dominating the result
Hermes is ignoring parts of my SOUL.md
Possible causes:
- higher-priority instructions are overriding it
- the file includes conflicting guidance
- the file is too long and got truncated
- some of the text resembles prompt-injection content and may be blocked or altered by the scanner
My SOUL.md became too project-specific
Move project instructions into AGENTS.md and keep SOUL.md focused on identity and style.
سؤالان إجاباتها كلها في هذه الصفحة.
كل خيار اسم حقيقي من توثيق Hermes. حتى الخيارات الخاطئة حقيقية، لكنها من صفحات أخرى.