↓ Ir para o conteĂșdo principal

← todas as notas

📎 Webclip

MindRoom: AI agents that live in Matrix and work everywhere 🧠

MindRoom is an open-source system for running AI agents as real Matrix users that follow you across bridged platforms like Slack, Telegram, and WhatsApp, keeping continuous memory and tool access. It uses a MultiAgentOrchestrator on top of matrix-nio and the Agno framework, supports semantic and file-based memories, 100+ integrations, collaborative teams, hot-reloadable configs and plugins, voice and scheduling, and leans on Matrix’s encrypted, federated infrastructure instead of app-specific bots.

The author describes how frustration with siloed AI apps, the need for non-programmer-friendly interfaces, and privacy concerns led to building a chat-native, Matrix-based runtime. They recount an intense period of obsession and near-startup ambitions that shifted into burnout when work turned into SaaS boilerplate, and explain how OpenClaw’s success and Matrix’s federation and security convinced them to refocus on the core runtime, community, and a sustainable scope.

Reading notes
#

  • Author has long experience in open source across Python, JavaScript, and Rust and already used AI for agentic coding workflows, including dictating features via phone and custom transcription tools.
  • They believe AI agents will change how everyone interacts with computers and see current agent setups as broken because each app instance is isolated with separate context and memory.
  • Examples of fragmentation include ChatGPT, Claude, Slack bots, email and calendar AIs, and coding assistants that cannot share information or history across platforms.
  • Most agent frameworks require programming to configure, which works for developers but clashes with how non-programmers want to just chat with an assistant.
  • Privacy concerns include reluctance to send sensitive financial, health, or personal note data to cloud providers and a desire to mix local models with cheap remote models.
  • MindRoom was built directly on a chat protocol so users interact by chatting, with agents present in the same rooms and threads across platforms.
  • The project started in July 2025 and evolved from an obsessive side project to something the author stepped away from due to burnout, then later revisited.
  • OpenClaw’s traction on similar problems reminded the author that MindRoom’s approach and ideas were valuable beyond their personal interest.
  • MindRoom runs agents inside the Matrix protocol, a federated, end-to-end encrypted communication standard used by governments and healthcare organizations.
  • Matrix bridges let a single agent reach users on many platforms such as Slack, Telegram, Discord, WhatsApp, IRC, email, and SMS, giving one agent continuous memory across them.
  • Bridge maturity varies; some like the Telegram bridge work reliably while others are more fragile, so platform choice affects the experience.
  • Agents are defined in a YAML config where each agent has a role, model, tools, instructions, and room assignments, and teams group agents with a chosen collaboration mode.
  • Once configured, agents appear in Matrix as normal users with their own avatars, display names, presence status, and room memberships.
  • The MultiAgentOrchestrator class in bot.py initializes router, agents, and teams, provisions Matrix accounts via matrix-nio, and runs sync loops.
  • Agno serves as the agent framework, giving a unified interface to multiple AI model providers for inference.
  • Message routing rules include direct mentions to targeted agents, thread-based continuity, and a router AI that selects an agent for new conversations based on capabilities.
  • Conversations are organized in threads for room cleanliness, and agents stream responses in a single edited message to avoid flooding the chat.
  • Tool calls appear inline while streaming, with clear markers for invocation, waiting, and received results, so users see what the agent is doing.
  • Matrix’s tight specification offers built-in benefits like E2E encryption, bridges, multiple clients, and federation, but also imposes constraints.
  • Since Matrix does not support streaming natively, the author simulates streaming by rapidly editing one message as new tokens arrive, signaling ongoing thinking with an ellipsis marker.
  • Message size limits in Matrix clash with long AI outputs and tool results, so the system shifts overflow into attachments that get updated as streaming continues.
  • To make attachments feel like part of the conversation, the author forked the Cinny client so attachments render inline instead of as separate downloads.
  • MindRoom supports semantic memory built with Mem0’s AsyncMemory, configurable embedding providers such as OpenAI, Ollama, and HuggingFace, and ChromaDB for vector storage.
  • This semantic memory stores searchable information like user preferences, project context, decisions, and recurring facts for later retrieval.
  • A second memory mode uses file-based Markdown identities inspired by OpenClaw agent files so an agent’s durable context lives in portable files instead of hidden databases.
  • File-based memory helps move an agent identity between MindRoom, OpenClaw, and Hermes without losing history or having to rebuild context.
  • A memory flush step periodically extracts durable information from chats and writes it into memory, separating transient conversation from long-term preferences and facts.
  • The author demonstrates memory by storing a harmless preference in one turn and later retrieving it in the same Matrix conversation.
  • MindRoom exposes more than 100 built-in tools covering communication, development, search, productivity, smart home, AI/ML, data, and web automation.
  • Listed communication tools include Gmail, Slack, Telegram, and Discord, allowing agents to act across messaging and email.
  • Development tooling includes GitHub, shell, Python, and Docker so agents can manage code, run commands, or interact with containers.
  • Search tools comprise Tavily, Wikipedia, Arxiv, and DuckDuckGo, enabling web and academic research tasks.
  • Productivity integrations include Google Calendar, Jira, Linear, and Todoist for scheduling and task management.
  • Smart home control occurs through Home Assistant, allowing agents to interact with home automation setups.
  • AI/ML integrations named include DALL-E, ElevenLabs, and Replicate for image and audio generation and model hosting tasks.
  • Data-related tools cover Pandas, SQL, DuckDB, and Yahoo Finance, giving agents capabilities to analyze datasets and financial information.
  • Web automation tools mentioned include Firecrawl, Crawl4ai, and browser automation modules for crawling and interacting with websites.
  • Tools are loaded lazily and credentials are managed so an agent activates only the integrations it needs for a given task.
  • MindRoom supports multi-agent teams in two modes: coordinate mode with a lead orchestrator, and collaborate mode where all agents contribute in parallel.
  • In coordinate mode, a lead agent delegates subtasks, aggregates results, and synthesizes a final answer for the user.
  • In collaborate mode, agents each produce their own analysis of the same problem, and the system merges these into a consensus summary.
  • An example is a research team where one agent handles academic papers, another industry news, and a third fact-checking, all triggered by one user query.
  • Team responses appear in the same Matrix threads as standard agent replies, with room history and routed agents visible without a separate dashboard.
  • MindRoom monitors config.yaml while running, computes diffs on change, and gracefully restarts only affected agents so updates happen without downtime.
  • Python plugins hook into a rich callback system and can be modified live; saving a plugin file triggers automatic reload without restarting the Python process.
  • This live-reload behavior shortens the development loop when iterating on agent behavior or plugin logic, as changes are reflected in seconds.
  • The author built several features to satisfy personal use cases, echoing past projects documented in their local AI journey.
  • They created Matty, a Matrix CLI client, late at night to interact with agents from a terminal, showing how the ecosystem emerged from their own needs.
  • Voice messaging support uses Whisper to transcribe Matrix audio messages into text so users can speak to their agents.
  • Users can set natural language schedules like checking email at certain times, which turn into cron-backed background tasks that agents run and escalate when necessary.
  • Direct message support means agents respond in 1:1 chats without requiring explicit mentions.
  • Because of Matrix federation, agents from different organizations can share rooms and collaborate across company boundaries, which is harder on proprietary platforms.
  • The author describes an intense period of obsession with MindRoom, working every free moment and contemplating quitting a day job to build a startup around it.
  • They connect this obsession to Armin Ronacher’s “Agent Psychosis” essay about the dopamine rush of building with AI agents and how social reinforcement can deepen it.
  • During that phase, the author rapidly expanded MindRoom with a React dashboard and then a full SaaS setup including Kubernetes, FastAPI, Next.js 15, Stripe, Supabase auth, and Helm charts.
  • Enthusiasm faded when work shifted from agent orchestration and memory systems to tasks like GDPR compliance, payments, deployments, legal pages, and cookie banners.
  • The break in the dopamine loop from creative coding to compliance-heavy SaaS work was a key driver of burnout.
  • A hosted control plane exists at app.mindroom.chat, but the author downplays it, emphasizing that the Matrix-native runtime is the part they still care about.
  • OpenClaw tackles the same multi-platform assistant problem using a local gateway in TypeScript that connects directly to messaging APIs such as WhatsApp, Telegram, and Discord.
  • Shared traits between MindRoom and OpenClaw include a single assistant across platforms, persistent memory, tool integration, open-source code, privacy focus, and user-selected models.
  • Differences include OpenClaw’s local-first, TypeScript implementation with a very large community and star count versus MindRoom’s Python, federation-first design and smaller adoption.
  • OpenClaw’s success helped the author see that users genuinely value assistants not trapped inside individual apps.
  • MindRoom’s federation focus lets agents from different organizations collaborate securely with end-to-end encryption via Olm/Megolm on a protocol already trusted by governments.
  • The author notes Moltbook, a social network for AI agents, and observes that Matrix’s existing federation could support similar agent-to-agent interaction without new infrastructure.
  • They argue that new agent platforms must solve complex security problems, whereas building on Matrix leverages years of work hardening encryption for government and healthcare use.
  • By basing MindRoom on Matrix, they aim to inherit those security properties instead of trying to recreate them from scratch.
  • The author explains that MindRoom now supports 8+ AI model providers including OpenAI, Anthropic, Ollama, Groq, Google, OpenRouter, DeepSeek, and Cerebras.
  • They estimate that roughly 30–100 users have tried MindRoom in some form, which they see as a step beyond a purely personal tool.
  • There is already a Docker Compose setup and a starter repository, but simplifying installation and onboarding remains a goal.
  • Current priorities include building a skills system for reusable agent behaviors, partly aligned with OpenClaw’s format, to form an ecosystem.
  • They want onboarding to be easier than editing YAML, aiming for a wizard that can create working agents after a simple docker compose up.
  • Growing the early user base into a community of operators and contributors is described as a key focus.
  • The author emphasizes scope discipline to keep MindRoom sustainable as a near full-time commitment and avoid slipping back into unhealthy work patterns.
  • They explicitly set aside SaaS ambitions to concentrate on the core Matrix-native system.
  • The article closes with an invitation to explore MindRoom on GitHub, a reflection on how others’ successes can rekindle motivation, and a note on learning when to pause and resume work on such projects.