The daemon moves from WSL on the workstation to the core host, where it runs
commands directly (core is the only host). One model profile, claude, with a
200k context and the existing cost caps. install.sh runs on the core host.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The daemon moves from the Lightsail host to WSL on the workstation (EVAI),
where the RTX 4090 can run local models and the data platform and home
cluster live. It reaches the core host over one multiplexed SSH connection:
each health check pipes probe.py to the host's python3 and gets Kuma, disk,
memory, OOM kills, restarts and reboots back in one snapshot. The agent edits
and commits core's live checkout there, as semprini-core's rules expect, and
the service desk still runs on the host. Off the host, it now notices when
the host itself stops answering.
The agent runs in-process with pydantic-ai instead of Claude Code headless.
Model profiles (anthropic, ollama, any OpenAI-compatible server) are routed
per kind of task: an unreachable model hands over at once (FallbackModel), a
run that fails as a run restarts on the next profile. The result is a typed
envelope; conversations persist as message histories; cancel stops the
command in flight; each reply names the model and its cost. `model` in Matrix
pins a room to a profile; --try-model checks a model calls tools and uses
what they return (qwen3-coder does not; GLM-4.7-Flash, the local default, does).
Cloud runs now need an API key (--set-api-key) and are billed per token; the
subscription token was for Claude Code only. Back-off is per kind of task, so
a cloud-only upgrade waiting on a key does not stall work the local model
can do. A queued task held back by a hold no longer spins the main loop.
--hold and --resume stay stdlib-only, so sync-to-host.sh can still hold the
daemon from the host's checkout; the daemon reads the host's hold each minute.
install.sh sets up WSL and retires the host's service: one Matrix bot, one
daemon.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stack moved to AWS Lightsail, so the maintainer now runs on that host
as ubuntu and is triggered by events rather than polling:
- A long-poll /sync delivers operator messages and #stack-alerts within
about a second. Follow-ups resume the Claude session, so the Stack
Maintenance room works like a chat. status, cancel, new, upgrade and
help are answered even while a run is in progress.
- FIRING alerts from the Alertmanager bridge are batched and triaged in a
thread, with a per-fingerprint cooldown.
- Agent runs go one at a time from a persisted priority queue, so an
unusable agent defers work instead of losing it.
- Health checks add host resources (disk, memory, OOM kills, restart
loops, stale Kuma) and reboot detection; one cycle's findings share a run.
- The daily report and the weekly upgrade run at fixed UTC times; the
upgrade covers every image on the host.
- Applied changes are committed to semprini-core main and pushed. The
daemon fast-forwards before a run and pushes leftovers after it.
- The Claude credential comes from `claude setup-token` via
--set-claude-token. Self-update runs hourly, gated by --check.
- install.sh renders the unit for the current user and configures the git
credential helper.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
systemd-deployed daemon that drives the semprini-core stack-support agent
headless via Claude Code, monitors health via Uptime Kuma, applies safe
upgrades, and escalates to the operator over Matrix.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>