When should you use it?
- You want an assistant that is small enough to audit
- You already run a home server or VPN
- You want mail help without giving send rights
Not for: Anyone not comfortable running servers; Heavy exposure to untrusted content without a VM
What do you need, and what do you get?
You need
- Home server
- Matrix server with federation off
- Read-only mail tools
You get
- A private chat assistant on your phone
- Memory files you can inspect
How does it work, step by step?
- Host the chatRun a Matrix server with federation disabled on your private network.
- Sandbox the toolsWrap each tool in a sandbox; move to a VM before exposing it to untrusted content.
- Grant read-only mailGive tools that can search and read but never hold your credentials or send.
- Add a heartbeatSchedule a periodic prompt to consolidate memory and move tasks along.
- Reach it privatelyConnect from your phone over your VPN.
The prompt
Our own prompt, inspired by vidarh on Hacker News and written to work in Custom agent and OpenClaw. Values in lime are placeholders.
You are my private assistant on Matrix. Tools: read_mail (search and read only), send_matrix, notes_read, notes_write. On each heartbeat: consolidate anything worth remembering into notes, move open tasks forward, and send me at most one message with reminders due today. Never ask for or store credentials.
Inspired by vidarh on Hacker News: Hacker News comment on a small self-built assistant over Matrix. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- A light sandbox is not enough for lots of untrusted input; the author plans a VM.
- Web access is still a leak path; watch what it fetches.
Our take
The design is the attraction: small, auditable pieces chosen for isolation. Read-only mail through tools, rather than a password, is a pattern every personal agent should copy, because it limits damage from a prompt injection. vidarh's build is for people comfortable running servers, but the choices transfer. A Matrix server with federation disabled on a private network keeps the chat in your hands. Each tool runs in its own sandbox, and the mailbox is reachable only through tools that can search and read but never hold your credentials or send. That limits what a prompt injection hidden in an email could do. He notes a light sandbox is not enough for lots of untrusted input and plans to move to a VM, which is the right instinct. Web access remains a leak path, so watch what it fetches. A scheduled heartbeat to tidy memory and tasks keeps it useful. Reach it over your VPN, never from the open internet.
Where the time goes back: You get a personal assistant on your phone without handing your mail or chats to a third-party agent service.
FAQ
Why Matrix?
How is email kept read-only?
Source and credit
Inspired by vidarh on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- Hacker News comment on a small self-built assistant over Matrix
- Creator
- vidarh on Hacker News
- Published on
- Hacker News
- Original date
- Oct 8, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Custom agent
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.