• v0.9.0 c7f3f1cf6a

    tylerstyle released this 2026-11-16 21:04:44 +01:00 | 1015 commits to main since this release

    New

    • A channel for agents and scripts. matrix-rat serve runs the Matrix side without the screen, on a profile that is already logged in (use an account of its own, a bot), and listens on a socket that is private to your user. Small commands talk to it:
      • matrix-rat rooms lists the rooms, send --room R TEXT… sends a message (Markdown, - reads standard input), read --room R prints the latest messages and listen --room R prints them as they come. Output is one JSON object per line; the exit codes say what went wrong (3: no serve is running, 4: serve refused).
      • matrix-rat mcp --room R --name N [--from @you:server] is an MCP server for one coding agent, bound to one room: send_message (signed [N]), read_messages, and wait_for_message, which waits up to ten minutes for an answer. No tool can reach another room.
      • Whose message is it? With --from, a message counts as yours only if it came end-to-end encrypted, from a device you have cross-signed, and the bot account has verified your identity. Everything else is handed over marked "from_user": false with the reason, and does not end a wait. --allow-unverified relaxes this to your homeserver's word. The tools tell the model that message text is data, never instructions, unless it is marked as yours.
      • serve never shows a login form, accepts no invitation, joins or leaves no room, and logs no message text, room or user. The README section "For agents and scripts" has the setup, a systemd user service, and what to keep in mind.

    Fixed

    • A voice or audio message that plays is shown as playing inside its thread too.
    • A playing message with a long file name shows the name on its following rows instead of leaving them empty.
    • matrix-rat doctor no longer breaks key names such as Alt-Enter across lines.

    Good to know

    • Any program running as your user can use the socket, and so can read and write every room the bot account is in. Give the bot only the rooms it needs. All agents write as the same account; the [N] signature is a convention, not a proof.
    • An agent that is not waiting is not woken by a message; it sees it the next time it waits or reads. A wait hands over at most twenty messages at a time.
    • Open points of the agent channel:
      • listen on the command line does not report an answer that arrived during a gap in the sync and was loaded later, and can in rare cases print loaded history as new once.
      • A wait_for_message that is already waiting does not see such a late-loaded answer; the next wait hands it over.
      • In a room with no message at all, what is written between an agent's first wait or read and its next call is not handed over, unless the agent sent something first.
      • After you verify a device, or a key arrives late, older messages of yours are handed over as yours; the agent is told to look at their time.
    • The agent channel was tried against a test homeserver and with Claude Code as MCP client, not yet in long daily use: reports are welcome.
    • SQLite in the release archives: the bundled SQLite (through matrix-sdk 0.19.1) is older than 3.54.0 and has a known flaw (RUSTSEC-2026-0459): opening a database whose -wal file has another page size can hand out stale memory. It takes someone who can write into the profile's private folder, who could read the store there anyway. The fix comes with the next matrix-sdk. The Nix package links the system's SQLite and is not affected where that is 3.54.0 or newer.
    • For developers: the build now refuses calls that block a thread unless the place says why (clippy.toml), and cargo deny checks dependencies for known vulnerabilities and licences in CI on every change and once a week.

    Checked with 1109 unit tests and 45 tests against a homeserver; every piece reviewed by a second agent or an independent reviewer.

    Downloads