Introduction
Hosomaki is a Linux system diagnostics CLI that reads your system and helps you understand what is happening in plain language.
It uses a local language model via Ollama and never sends anything off your machine.
What it does
When something goes wrong on a Linux system the usual path is journalctl, ss, systemctl, and several minutes of reading. Hosomaki shortens that loop by collecting the relevant system state and handing it to a local model with a tightly constrained prompt, then returning a structured, readable analysis.
Every command follows the same pipeline:
collect → sanitise → prompt → validate → repair → renderThe sanitisation step is non-negotiable.
Core commands
| Command | What it does |
|---|---|
explain | Explain errors from a service, boot, log file, pipe, or running process |
status | Quick summary of current system health |
doctor | Full diagnosis with concrete suggested actions |
audit | Surface changes since a baseline snapshot |
watch | Tail a service and explain errors in real time |
why | Reconstruct the failure chain for a given exit code and service |
ports | List listening ports and flag anything unexpected |
timers | Inspect systemd timers and flag failures or overdue schedules |
crons | Read all crontabs and explain what each job does |
mounts | Inspect active mounts, detect stale NFS, and flag disks nearing capacity |
updates | Explain pending package updates before applying them |
history | Review past diagnostic results |
firewall | Explain active firewall rules |
shell-integration | Install a shell wrapper that explains failed commands automatically |
Design principles
Read-only. Every command collects data and surfaces insights without modifying the system being diagnosed. audit --init and history --clear are the exceptions. They write to Hosomaki's own local state directory, not to anything on the system itself.
Local first. The model runs on your machine via Ollama.
Sanitise first, always. Sensitive material is stripped before the model ever sees it.
Structured output. Every command produces validated, typed JSON from the model. Invalid or semantically empty responses are repaired or rejected.
Next steps
- Installation — install Hosomaki and Ollama
- Quick Start — run your first command in under two minutes
- Architecture — understand the pipeline in depth
