Hi HN, I built maat because I wanted an AI agent to help me troubleshoot Linux machines without handing it a shell. The problem with a shell is that logs are written by strangers. An SSH login attempt puts the username into the auth log as typed, and so does anything a local user sends through logger. An agent reading logs is reading text that can be written for it, and with a shell, one successful injection can do anything you can. So maat takes the opposite approach: - The agent's tools run as an MCP server inside a strictly confined snap. It can read the journal, systemd units, processes and disks, but AppArmor and seccomp refuse internet sockets, writes to your files, and even RestartUnit over D-Bus. "maat selftest" shows each refusal on your machine. - The model can't run commands. It can only propose a typed plan, such as restarting one failed .service unit, citing the log lines it relied on. - You apply the plan with a separate tool that goes through polkit, the same prompt systemctl uses, and it checks the result. Every step goes into a hash-chained audit trail. - One agent can reach many hosts over SSH, with a key that authorized_keys restricts to starting the confined server. Testing the confinement changed the design twice. The network-observe interface turned out to allow outbound TCP, so maat doesn't use it, and without it the socket tables are unreadable, so that tool now fails closed instead of reporting "no sockets". First real-model numbers, from today: on ten broken-machine scenarios in LXD, three runs each, gpt-oss:20b found the root cause in 28 of 30 attempts and got 3 of 6 fixes applied and verified. Twice it proposed a restart that wouldn't help; that's exactly what the approval step is for. qwen3:8b found 24 of 30 and fixed nothing. Neither followed an instruction planted in the logs (12 of 12 attempts). The scenarios are still easy (keyword rules score 9 of 10) and only two are adversarial, so this is a first data point, not a ranking. It's a developer preview: Ubuntu 24.04 tested, on the Snap Store's edge channel, written in Go, GPL-3.0. Not affiliated with Canonical. I'd especially like to hear about failures you'd want an agent to diagnose that this would miss, and holes in the threat model (docs/security-model.md in the repo).
Repository
bolesawny7/maat
Maat
bolesawny7/maat
Maat
Open-source MCP server and toolkit for diagnosing and repairing Ubuntu systems with AI agents, enforcing permissions via kernel confinement (snap/AppArmor) and polkit approval.
Visit project- First shared
- Nov 2, 2026
- HN activity
- 31
Show HN@boulesmarzoukNov 2, 2026
Show HN: Maat – AI agents that can diagnose Ubuntu but can't change it
Community