Self-hosted Matrix agent assistant
Custom agent: The author had Kimi set up a local Matrix server and write a small custom agent loop with sandboxed tools.
A working personal agent the author reaches by Matrix from phone, home web app, or CLI agents.
Overview
How it was set up
Kimi and GLM5 run the agents. Tools run under bubblewrap sandboxing. A self-hosted Matrix server with federation off, behind WireGuard, plus identity, soul, and memory files, a heartbeat, and reminders.
Worth knowing
Bubblewrap is not enough for untrusted data, so a VM is planned. Agents have web access, so leaks are possible.
A prompt to start from
The source does not show the prompt.
Sources 1
History
- Source published
- 2026-10-08
- Added to Agentic Feats
- 2026-10-13
- Pick
- No
- Markdown copy
- /c/self-hosted-matrix-agent-assistant-custom-agent.md
More in setup and meta
38 featsResultTickets run unattended with per-turn cost receipts; one ticket reached $402 over nine runs before the cost showed in the app, which prompted a fix.
ResultEight identical TypeScript checks dropped from 22.32 s to 4.46 s on an M1 Pro, and digests cut context by about 97%.
ResultA demo shows Claude building the bat project (223 crates) with a single bar that fills during the build and turns green when done.