Matrix
Matrix
Start with meaning, then move to detail.
This lesson explains Matrix as part of using Hermes and understanding its behavior. You will learn what it does, when it matters, and the smallest safe test that proves it works.
If you are new, do not memorize names. Focus on three questions: what problem does this solve, what access does it need, and how can you verify the result?
For practice, inspect the first example, identify its effects, run it on test data, and compare the result with the source claim.
For advanced readers, inspect How Hermes Behaves, Capability Matrix, Session Model in Matrix, then verify failure modes and version compatibility.
Start with installation if you have not run Hermes yet.
A clear outcome before you read.
- Understand Matrix without assumed prior knowledge.
- Separate the source description from what still needs testing in your environment.
- Read the first command and identify its inputs and outputs before copying it.
Short definitions before the details.
- Provider
- The service that runs or provides access and authentication to a model.
- Session & memory
- A session holds conversation context, while memory keeps selected facts that should persist.
Set up Hermes Agent as a Matrix bot
What does the source say, and in what order?
- 01How Hermes Behaves
Start here to understand the core idea or structure.
- 02Capability Matrix
Read this after the foundation, then connect it to the previous step.
- 03Session Model in Matrix
Read this after the foundation, then connect it to the previous step.
- 04Mention and Threading Configuration
Read this after the foundation, then connect it to the previous step.
- 05Project Room Isolation
Read this after the foundation, then connect it to the previous step.
- 06Step 1: Create a Bot Account
Read this after the foundation, then connect it to the previous step.
- 07Option A: Register on Your Homeserver (Recommended)
Read this after the foundation, then connect it to the previous step.
- 08Option B: Use matrix.org or Another Public Homeserver
Read this after the foundation, then connect it to the previous step.
- 09Option C: Use Your Own Account
Read this after the foundation, then connect it to the previous step.
- 10Step 2: Get an Access Token
Finish here to verify the result and special cases.
Copy only after you understand the effect.
group_sessions_per_user: truegroup_sessions_per_user: falsematrix:
require_mention: true # Require @mention in rooms (default: true)
allowed_users: # Matrix users allowed to trigger agent turns
- "@alice:matrix.org"
allowed_rooms: # Matrix rooms allowed to trigger agent turns
- "!abc123:matrix.org"
free_response_rooms: # Rooms exempt from mention requirement
- "!abc123:matrix.org"
ignore_user_patterns: # Bridge/appservice ghost users to ignore
- "^@telegram_"
- "^@whatsapp_"
process_notices: false # Ignore m.notice by default
session_scope: roomRead the first command and identify its inputs and outputs before copying it.
Match every command to your installed Hermes version, review the files and accounts it can reach, and use non-sensitive data for the first test. If this explanation differs from the source, the official source wins.