/private-chat-engines:chat-matrix-and-elementfrom private-chat-engines
Covers the Matrix federated protocol, Olm/Megolm encryption, Matrix 2.0 status, homeserver operations, and ecosystem organizations. Useful when self-hosting or building on Matrix.
Ships in private-chat-engines. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 4 of 6 of the Private Chat Engines dossier (plugin
private-chat-engines), covering §1–§6. Sibling skills:chat-orientation-threat-models-and-landscape(§0–§5 — the three architectural families, threat-model taxonomy, the comparison matrix, the timeline, the five forces),chat-signal(§1–§6 — the protocol stack, the organisation and its costs, legal posture, operator and developer perspectives, honest weaknesses),chat-telegram(§1–§7 — MTProto and the cloud-chat compromise, the Durov prosecution, scale and economics, the bot and Mini-App economy),chat-the-wider-field(§1–§13 — MLS and Wire, WhatsApp, iMessage PQ3, Threema, Olvid, SimpleX, Session, Nostr, XMPP, Briar, Delta Chat, the dead ones, the policy annex),chat-builder-and-operator-playbooks(§1–§12 — protocol shape, the crypto checklists, the metadata budget, abuse under E2EE, the unglamorous 80%, ops checklists, incident playbooks). Section numbers are per skill, not shared across the set: each file is a self-contained dossier entry. A reference written as §N →skillpoints at that skill's own §N.Currency: state of research 16 September 2026. §1's protocol is stable fundamentals. §2 (Matrix 2.0 status), §3 (organisations, money and maintenance) and parts of §4 are dated specifics — the funding and maintenance picture in particular changes year to year.
⚠️ The only entry here that is an open federated protocol with a real self-hosting story at national scale — and that single fact explains everything else about it.
⚠️ GOTCHA boxes mark where the common mental model is wrong in ways that get people hurt or products mis-designed.
The three ideas that organize this document:
- ⚠️ FEDERATION MOVES THE COST AND THE METADATA, IT DOES NOT REMOVE THEM Running the server is the product, but it also means every homeserver is its own legal and moderation jurisdiction, and federation exposes more metadata to more parties than a single-operator design does.
- ⚠️ THE OPERATOR HANDBOOK IS THE PERSPECTIVE NOBODY ELSE CAN OFFER §4 exists because Signal and Telegram have no equivalent. If you need to be responsible for the infrastructure, this is where the field's only real answer lives.
- ⚠️ WHO MAINTAINS WHAT IS A LOAD-BEARING QUESTION §3 traces the organisations and the money because an open protocol's viability is a funding question as much as a technical one — and adopting it is a bet on that.
Matrix is the only entry in this dossier that is an open federated protocol with a real self-hosting story at national scale. That single fact explains everything else about it: its politics (European sovereignty wave), its funding struggles (everyone's favourite public good that nobody wants to fund), and its complexity (federation is genuinely hard).
A Matrix "room" is not a file on a server; it is a partially-replicated directed acyclic graph
of signed JSON events shared by every homeserver with a participating user. Message events,
membership changes, power levels, redactions — all events in the DAG. Each server keeps the full
history for the rooms it's in and resolves forks with state resolution (versioned algorithms;
"state res v2" is the modern one. Room version 12 — being marched toward default as of mid
2026 — even redefines room_id as a hash of the create event, killing server-name dependence for
room identity).
Servers speak the Server-Server API over mutually-authenticated HTTPS with signing keys;
discovery via .well-known and SRV. Any server can join any joinable room (subject to room ACLs).
Federation is also the privacy caveat: every participating server stores every (encrypted) event,
room state, and metadata for its users' rooms forever unless retention is configured — see §4.6.
m.room.history_visibility and the rotation parameters
(rotation_period_ms / rotation_period_msgs in m.room.encryption) deliberately rather than
inheriting defaults — and state the answer in the room's description, because members will assume
the opposite of whatever you chose.MSC (Matrix Spec Change) → Spec Core Team review → spec releases (v1.14 era → v1.19 expected imminently, mid-2026). Amusingly political live question as of 2026: MSC4504 proposes a single global "v2" version number for the whole spec.
Announced/shipped as an API contract in October 2024 (Matrix.org), four pillars:
As of September 2026 the Spec Core Team was "aiming to cut" the formal 2.0 release (TWIM 14 Aug 2026); Element X clients were shipping 2.0 features incrementally (QR login, user status, live location).
Federation stats (July 2026): ~19,512 known federating servers, 78.8% of them running Synapse — the federation's diversity problem in one number.
chat-the-wider-field).media_repo and federation_sender workers early.state_groups_state grows without bound; run the
rust-synapse-compress-state tool routinely; mind autovacuum.media_retention: local_media_lifetime,
remote_media_lifetime) or watch disk forever; consider matrix-media-repo for dedup/CDN.server_name vs server — use delegation (.well-known) so user IDs live on the apex
domain ([email protected]) while Synapse runs at matrix.example.org. You cannot cleanly change
server_name later. This is the #1 forever-decision.m.room.server_acl events, and
subscribing to community policy lists.On Matrix, E2EE means moderators can't read encrypted content they're not sent — but moderation is infrastructure + policy, not content scanning:
you become a CDN and a postmaster: retention law in your jurisdiction, lawful-request process (write one before you need it), CSAM hash-matching duties for public unencrypted content, copyright complaints, sanctions screening for hosted communities, and GDPR data maps (encrypted events still carry metadata and IPs in logs — rotate those logs).
Element's hosted offerings / ESS Community, etke.cc, un-hooked "matrix for hire" providers — fine for communities that want sovereignty-lite without the on-call.
Federation sprays metadata widely: every server in a room learns membership, timing and the
social graph of everyone in it; E2EE protects content only. Retention defaults are
"keep forever". For dissident-grade threat models, Matrix federation metadata is a real exposure —
SimpleX/Session/Briar exist for a reason (→ chat-the-wider-field).
matrix-rust-sdk (drives Element X; UniFFI bindings into Swift/Kotlin, JS via WASM),
matrix-js-sdk (web-classic), community libs (matrix-nio Python, mautrix-go for bridge-grade
bots, Trixnity Kotlin…).Matrix in 2026 is what email's federation wanted to grow up to be: messy, expensive, politically essential. If your brief is "we control our infrastructure and our legal jurisdiction," it is — still, uniquely — the only serious answer among messengers. The costs land on operators and the Foundation (see the annual report); the benefits land on Europe's governments and everyone who rejects single-company trust.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub the-vibey-project/vibey --plugin private-chat-engines6 skills in this plugin
/chat-builder-and-operator-playbooksUse when designing or running a private-chat product — choosing the protocol shape before touching cryptography, the crypto stack as checklists, the server components and key custody you have to get right, the pre-launch audit checklist, the metadata budget table every service should fill in, abuse and trust-and-safety under E2EE, the unglamorous 80%, the WebRTC layer behind voice and video, maintained libraries to start from, ops and incident checklists, and budget intuition from public numbers. Companion to the other private-chat-engine skills./chat-orientation-threat-models-and-landscapeUse when orienting in private messaging — the three architectural families and what follows from each, the threat-model questions that decide every other choice, the September 2026 comparison matrix, how the field got here, and the five forces reshaping it. Start here. Companion to the other private-chat-engine skills./chat-signalUse when working with Signal or the Signal protocol — X3DH and the double ratchet, sealed sender, private contact discovery and SGX enclaves, key transparency, PQXDH and post-quantum ratcheting, the Foundation's cost structure, the legal and political fights, what you can and cannot operate or build, and the weaknesses worth saying out loud. Companion to the other private-chat-engine skills./chat-telegramUse when working with Telegram — MTProto and the cloud-chat architecture, why Secret Chats are 1:1 mobile-only and off by default, the Durov prosecution and the compliance turn, scale and economics, operating communities and channels, and the bot and Mini-App developer ecosystem with its constraints. Companion to the other private-chat-engine skills./chat-the-wider-fieldUse when evaluating a messenger outside the big three — MLS (RFC 9420) and Wire, WhatsApp's interoperability opening, iMessage PQ3, Threema, Olvid, SimpleX, Session, Nostr, XMPP with OMEMO, Briar, Delta Chat, the dormant and niche ones — or when you need the policy annex that shapes all of them. Companion to the other private-chat-engine skills.