• v0.9.1 b2af447b5a

    tylerstyle released this 2026-11-17 22:19:27 +01:00 | 1006 commits to main since this release

    The first fixes for the agent channel, after a day of real use.

    Fixed

    • matrix-rat serve ends with exit code 78 when the profile has no session it can use (it needs a login, or the session could not be read, for example while a keyring is locked), and with 1 for any other failure. A service can now start again after a real failure without looping on something only you can mend:

      Restart=on-failure
      RestartPreventExitStatus=78
      RestartSec=30
      

      The README's unit is updated. If you copied the old one (Restart=on-abnormal), change these lines.

    • A wait_for_message that is already waiting finds an answer that was loaded late (it arrived while the connection was down and came in afterwards). Until now only the next call handed it over. A long wait looks at the room anew once a minute.

    • With after_event_id, an answer loaded before that point is no longer dropped: a later wait that names no point hands it over.

    • A read_messages as the very first look at a room no longer keeps older messages that name you but could not be verified, to hand them over later as news.

    • A wait is not ended with an error when the connection to Matrix is started again while it waits.

    Good to know

    • Still open in the agent channel:
      • listen on the command line does not report an answer that arrived during a gap in the sync, and can in rare cases print loaded history as new once. The MCP tools do neither.
      • If serve goes away during a long wait and stays away, the wait ends with "nothing new"; the next call says what is wrong.
      • Progress notices of a waiting call skip about one beat a minute.
      • 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.
    • SQLite in the release archives: unchanged from 0.9.0 (RUSTSEC-2026-0459, see the 0.9.0 notes). The Nix package links the system's SQLite.

    Checked with 1113 unit tests and 45 tests against a homeserver; reviewed in three rounds by an independent reviewer.

    Downloads
  • 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
  • v0.8.0 c33bc5c836

    tylerstyle released this 2026-11-16 11:20:06 +01:00 | 1035 commits to main since this release

    New

    • Esc closes one layer at a time, down to "no chat open". As before it closes a popup, cancels a reply or an edit, drops a selection, leaves a thread. With nothing left to cancel it now closes the chat: your draft is kept, the room list gets the focus with the cursor on the room you left, and nothing is marked as read until you open a room again. Enter opens it again. The setting Esc closes the chat (esc_closes_chat) turns this off. With the vim preset Esc keeps moving between composer and messages; the README says how to give closing its own key.
    • Voice and audio messages play inside the app. x on a voice or audio message plays or stops it (also a click on ▶, the menu and the palette). The row shows the position and the waveform fills as it plays. matrix-rat starts a player that is already on your system (mpv, ffplay, pw-play, paplay or aplay, or your own command in audio_player); no audio library is linked. With mpv, Space pauses and ←/→ seek. One sound at a time; it stops when you leave the room. Over SSH it is not offered (the sound would play on the far machine); s saves the file. o still opens the system's player.
    • matrix-rat doctor, also in the palette and the settings as "What the app found": the terminal, colours, keyboard, how pictures are shown and why, notifications, the clipboard tool, opening files, the editor, the audio player, keys and config, with what is missing marked. c copies it as text for a bug report. It contains no account, server, room, path or file name.
    • Unread count in the window title: matrix-rat (3), without room names; muted rooms do not count. The title that was there comes back on exit. The setting Unread count in title (window_title) turns it off.

    Fixed

    • One bad value in config.toml no longer stops the start. The setting keeps its default and is named in a notice; the rest of the file counts. Only a file that is not TOML at all is still an error.
    • On exit the terminal's keyboard mode is only reset if matrix-rat had set it.

    Good to know

    • x, Space, ← and → are new default keys in the message list. If your config binds one of them to something else there, you get a key-binding notice at start.
    • The settings menu has grown and scrolls on smaller windows.
    • Playing audio has been tested with stand-in programs, not yet by ear on real hardware: reports are welcome.

    Checked with 1034 unit tests and 44 tests against a homeserver; every piece reviewed by a second agent.

    Downloads
  • v0.7.0 7b125d8162

    tylerstyle released this 2026-11-15 23:58:44 +01:00 | 1059 commits to main since this release

    Spaces, custom emoji as pictures, and ready-made binaries.

    New

    • Space management: create a space (Ctrl-N), see and change its rooms in the space's info (add, remove, mark as suggested, open or preview), and "Add to a space…" / "Remove from …" on rooms. Invitations to spaces now show among the invitations.
    • Custom emoji as small pictures in messages and on reactions (terminals with kitty graphics; the :name: everywhere else), and reacting with a custom emoji from the picker.
    • O opens a picture or file in the system's viewer, also when pictures are switched off in the terminal.
    • Ctrl-B hides the room list or brings it back.
    • Ready-made binaries for Linux (x86-64 and ARM64) are attached to this release, with checksums. The README says how to install them, and how to run matrix-rat on Windows through WSL.

    Fixed

    • A room you left could come back into the room list and stay there: a sync answer that was on its way made it again. Rooms left are now remembered and stay gone until you join again or are invited; at start the server is asked once which rooms the account is in.
    • After muting a room, it went on showing the old notification level until the server sent the setting back.
    • In room info, keys typed into a member filter that matched nobody could act on a row out of view (toggle a setting, change the notification level, leave the room).

    Privacy

    • The rest of the debug output is free of private data (app state, popups, menus, configuration, paths).
    • The test suite can no longer reach, or start, the desktop keyring of the person running it.

    Not checked by anyone in a real kitty terminal yet: how the small emoji pictures look. Reports welcome.

    Downloads
  • v0.6.1 eb34375bc8

    tylerstyle released this 2026-11-15 20:47:28 +01:00 | 1139 commits to main since this release

    One fix, found by a user.

    • A code block typed on one line (three backticks, the language, the code, three backticks) was sent as an empty block: the code was lost. Code on the opening line is now the block's content.
    • New: /code [language] text sends a code block without any backticks, for keyboards where a backtick takes three key presses. Example: /code bash ls -la /tmp.
    Downloads
  • v0.6.0 0ff7adf577

    tylerstyle released this 2026-11-15 17:51:43 +01:00 | 1144 commits to main since this release

    Finding your way.

    New

    • Room commands: /join, /leave, /invite, /kick, /ban, /unban, /ignore, /unignore, /nick, /roomnick, /topic, /roomname, /dm, /msg, /whois, /help. Each asks what its menu twin asks.
    • Message details (i): who, when to the second, event ID, security, readers, and the event's source.
    • A list of the room's threads (T), also those far up.
    • Notification keywords (in the settings; kept on the server, shared with your other clients) and a "Do not disturb" switch.
    • Paste a picture from the clipboard (Alt-I; needs wl-clipboard or xclip).
    • NO_COLOR is respected; a built-in high-contrast theme; desktop notifications use matrix-rat's own icon where it is installed (notification_icon: colour, outline or generic).

    Fixed

    • @ completion could come up empty in a room right after switching to it.
    • Signing another session out on servers that have moved to an authentication service: you are sent to the account's page instead of seeing an error.
    • Shell code blocks were barely coloured; shell, console, ts and other usual language names are known.
    • With two file sends under way, a failed one could bring back the wrong files.
    • Room details kept showing the old notification level after a change; the room list did not follow notification changes made in another client.
    • A matrix: link given at start could show a preview of a room you are in.

    Privacy

    • The log file holds the kind of an error, never its text (which can carry IDs, addresses and paths); debug output of commands, messages and typed text carries none of them either.

    The README has a new section on sending, reading and copying code.

    Downloads
  • v0.5.0 5897c6503a

    tylerstyle released this 2026-11-15 12:18:43 +01:00 | 1210 commits to main since this release

    Message types and terminal comforts.

    Message types

    • Polls: shown with live counts (or hidden until the end), vote with a click or o, start one with /poll, end or edit your own.
    • Voice messages with length and waveform; audio and video are played in the system's player (o), video with its preview picture.
    • Shared places, with a geo: link that opens in your map program.
    • Stickers are shown, and sent from a picker (/sticker, or "Send a sticker…" in the palette).
    • Custom emoji show as :shortcode: text, complete after :, and are sent as pictures to other clients.

    Comforts

    • Code blocks in a named language are coloured (themeable: code_* roles).
    • Copy a single code block: C, or the copy label on the block.
    • Write the message in $EDITOR: Alt-V.
    • Link previews under messages (setting link_previews, off by default: the homeserver fetches the link).

    Also

    • An icon, with one-colour and outline variants, in assets/.
    • The Nix package installs a launcher entry and the icons; matrix-rat can be chosen for matrix: links.
    • Enter on any message replies; opening (o) views, plays or votes, and the status line says which.

    Not yet: custom emoji and sticker thumbnails as pictures, reacting with a custom emoji.

    Downloads
  • v0.4.0 364e2ddffc

    tylerstyle released this 2026-11-15 04:54:15 +01:00 | 1242 commits to main since this release

    People

    • User info: click a sender's name, press Enter on a member in room details, or use the message menu. Name, Matrix ID, role, whether verified or ignored, the rooms you share, and the actions that apply: direct chat, mention, verify, ignore, and the moderator actions where your rights allow.
    • Your profile: change your display name and picture from the settings or by clicking your name on the message field's border. A picture can be dropped in or typed as a path.
    • Your name in one room, from room details.

    Encryption and devices

    • Sessions: your devices with last activity and whether each is verified; rename, verify, or sign out another one (with your account password; accounts that log in through the browser are sent to their account page).
    • Key backup and recovery status in plain words, with the recovery key entry reachable at any time.
    • Export and import message keys to a file other clients can read. Existing files are never overwritten; the file is readable only by you.
    • Messages that cannot be decrypted say why, and d tries again.
    • Automatic key requests for such messages no longer wait up to half a minute.

    Rooms

    • Browse public rooms on this or another server (Ctrl-N), with a preview before joining, also for links to rooms you have not joined.
    • Ask to join rooms that require it; your pending requests are listed and can be withdrawn. Admins see incoming requests in room details.
    • Room settings where your rights allow: who can join, who can read history, turn encryption on, room picture, addresses, direct chat, and the permission levels.

    Changed and fixed

    • Passwords, passphrases and the recovery key are pasted as they are and wiped from matrix-rat's own memory after use; the README says what stays outside its reach.
    • The settings keep their hint line on small terminals and mark rows that are out of view.

    Good to know

    • Signing out a session on a browser-login (OAuth) account has not been tried against such a server; please report how it goes.
    • Packagers: no change since 0.1.1 (aws-lc, sqlite, zstd).
    Downloads
  • v0.3.0 1df4ffec1e

    tylerstyle released this 2026-11-14 21:30:24 +01:00 | 1273 commits to main since this release

    People and safety

    • Ignore/block a user from a message's menu, the member list, or the list in settings. Their messages disappear from timelines, previews, notifications and search; the list syncs with your other clients.
    • Report a message, optionally ignoring its sender at the same time.
    • Find people by name when starting a chat or inviting: results appear as you type.

    Keeping order in the room list

    • Low-priority rooms get their own section at the bottom (a room is either favourite or low priority).
    • Filters: "unread only" (Alt-O) and "people only" (Alt-D), also as chips in the list; Esc clears them.
    • Spaces show unread counts, with a mark when other spaces have news; spaces are in the command palette.
    • While you read older messages, the banner counts the new messages that arrived meanwhile.

    Running a room

    • Moderator tools, shown only where your rights allow: delete someone else's message (with a reason), ban and unban, change a member's role.
    • Pinned messages: pin and unpin, a marker on the message, and a list (P) that jumps to them.
    • Forward a message to another room, attachments included.

    Changed

    • ↑ from the message field walks into the messages again. Editing your last message on that key (new in 0.2.0) got in the way; it is now "Edit your last message" in the command palette and can be given a key (edit_last under [keys.composer]).
    • Clicking a desktop notification brings the terminal window to the front on niri; for other desktops set notification_click_command in the config file (the README has examples).

    Fixed

    • Verification by another person in a direct chat could show the emoji up to 30 seconds late and leave the other side waiting as long for the result. Answers are now sent at once.
    • A notification service that stops answering no longer holds up later notifications.
    • The room details could briefly show a room without its address while it was still syncing.

    Good to know

    • Packagers: no change since 0.1.1 (aws-lc, sqlite, zstd).
    • The window focus on niri and the notification click have been tried on one desktop only; please report how yours behaves.
    Downloads
  • v0.2.0 cf6ea6748f

    tylerstyle released this 2026-11-14 12:13:22 +01:00 | 1307 commits to main since this release

    New

    • Jump to any message, however old. A message that is not loaded opens in its own view of the room's history, with a banner; End, a click on the banner or sending a message returns to now. Used by search hits, by the replied-to message (p, a click on the quote, or the right-click menu), and by Matrix links.
    • Matrix links open inside the app. matrix.to and matrix: links to messages, rooms and people no longer leave for the browser. matrix-rat <link> on the command line opens that target after start.
    • Unread handling. A "new" line above the first unread message, and the view starts there when a lot has happened; Alt-U jumps to it. Mark a room as unread from its menu (synced with your other clients), and "Mark all rooms as read" from the palette.
    • Click a desktop notification to open its room in the running matrix-rat. Bringing the terminal window to the front is left to the desktop.
    • Drafts survive a restart, per room and per thread. A draft never replaces something you have typed.
    • ↑ in an empty message field edits your last message. Alt-↑ or Tab goes to the messages instead. The edit banner names the key that cancels.

    Fixed

    • Search across rooms now finds replies in threads of encrypted rooms reliably.

    Good to know

    • matrix-rat now also sets the read marker (m.fully_read) when a room is read, so other clients show the same "new" position.
    • Notification clicks have been tested against a stand-in notification service only; please report how your desktop behaves.
    • Packagers: no change since 0.1.1 (aws-lc, sqlite, zstd).
    Downloads