Run on the workstation, on pydantic-ai with cloud and local models
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>
This commit is contained in:
1 parent
99ebfcfb38
commit
61dca2c3ca
13 files changed
+3042
-822
No files matched your search
@@ -1,16 +1,17 @@
|
||||
# semprini-maintainer — autonomous stack maintenance agent
|
||||
|
||||
A systemd service on the semprini.me stack host (AWS Lightsail `Semprini-Core`). It keeps
|
||||
the container stack healthy and current:
|
||||
A systemd service on the operator's workstation (EVAI, in WSL), keeping the semprini.me core
|
||||
stack on AWS Lightsail (`Semprini-Core`) healthy and current:
|
||||
- acts on critical log alerts the moment they are posted
|
||||
- upgrades everything the host runs, weekly
|
||||
- upgrades everything the core host runs, weekly
|
||||
- keeps the semprini-core repo equal to what runs
|
||||
- talks to the operator over Matrix (chat.semprini.me) like a chat
|
||||
|
||||
It is the *unattended driver* for the canonical stack-support agent in the **semprini-core**
|
||||
repo (`agents/stack-support.agent.md`). The daemon notices events and hands the judgement
|
||||
calls to that agent, run headless via Claude Code. Design and decisions:
|
||||
[`docs/architecture.md`](docs/architecture.md).
|
||||
calls to that agent, which it runs in-process with [pydantic-ai](https://ai.pydantic.dev) on a
|
||||
cloud model (Claude) or a local one (Ollama on the workstation's RTX 4090), chosen per kind of
|
||||
task. Design and decisions: [`docs/architecture.md`](docs/architecture.md).
|
||||
|
||||
## Talking to it
|
||||
|
||||
@@ -22,17 +23,20 @@ Two rooms on chat.semprini.me:
|
||||
| **Stack alerts** (`#stack-alerts`) | `@alerts` (Alertmanager bridge) | Each FIRING alert is triaged and answered in a thread under it. Reply in the thread to discuss it. Anything that is not simply "ok" is repeated in Stack Maintenance. |
|
||||
|
||||
Messages are read with a long-poll `/sync`: the homeserver answers as soon as something is
|
||||
posted, so there is no polling delay.
|
||||
posted, so there is no polling delay. Every reply ends with a small line saying which model
|
||||
answered, how long it took and, for a cloud model, what it cost.
|
||||
|
||||
A message that is exactly one of these words is handled at once, even mid-run:
|
||||
A message that is exactly one of these is handled at once, even mid-run:
|
||||
|
||||
| Command | Effect |
|
||||
|---|---|
|
||||
| `status` | What it is doing, the queue, health, host, next upgrade |
|
||||
| `cancel` / `stop` | Stop the agent run in progress |
|
||||
| `status` | What it is doing, the queue, the models, health, host, next upgrade |
|
||||
| `cancel` / `stop` | Stop the agent run in progress, and the command it is running |
|
||||
| `hold 45m <why>` | Stand down for a while: `hold` alone is 30 minutes, 8 hours is the most. Your messages still run and alerts still collect; health checks, triage, upgrades and the service desk wait, and it says so when the hold starts and when it runs out |
|
||||
| `resume` | End a hold now |
|
||||
| `resume` | End a hold now, this machine's and the core host's |
|
||||
| `new` | Forget this room's conversation |
|
||||
| `model` | The model profiles and which kinds of task try which, in order |
|
||||
| `model local` / `model cloud` | Your messages in this room try that profile first; `model auto` goes back to the default |
|
||||
| `upgrade` | Run the weekly upgrade now |
|
||||
| `help` | The list |
|
||||
|
||||
@@ -42,89 +46,141 @@ A message that is exactly one of these words is handled at once, even mid-run:
|
||||
|---|---|
|
||||
| Operator message | Agent run; the reply goes to the same room or thread |
|
||||
| FIRING alert in `#stack-alerts` | Batched for 60s, then one triage run: read the LogQL lines, fix a real fault, or demote benign noise in Alloy. Each fingerprint is re-investigated at most every 12h; `PipelineTest` is only acknowledged |
|
||||
| Every 5 min | Health check, below. Any findings become one agent run |
|
||||
| Every 5 min | Health check of the core host, below. Any findings become one agent run |
|
||||
| — Kuma monitor DOWN for 2 checks | Diagnose and remediate |
|
||||
| — Kuma monitor DOWN→UP between checks | Post-mortem from logs; changes nothing healthy |
|
||||
| — Disk ≥ 85%, memory < 400 MB, kernel OOM kill, restart loop, stale Kuma | Investigate and fix; 12h cooldown per finding |
|
||||
| — Host rebooted | Verify every stack came back |
|
||||
| Daily, 21:00 UTC | 📋 report: monitors, downtime, alerts, agent runs, commits, pending reboot or decision |
|
||||
| Weekly, Sat 22:00 UTC | Upgrade every image and host packages: test, pin, commit, push, roll back on failure. Majors and reboots are escalated |
|
||||
| Every minute | Service desk: semprini-core's `service-desk.py` fulfils the open requests in [Semprini/service-desk](https://git.semprini.me/Semprini/service-desk). What needs you is posted here: 🙋 an approval (`/approve` or `/reject` on the issue), ⛔ a failure (`/retry` once fixed), 📨 an "Ask core" request, ✅ a finished one. Waits out a hold |
|
||||
| — Core host rebooted | Verify every stack came back |
|
||||
| — Core host unreachable for 3 checks | 🚨 in Stack Maintenance (delivered once Matrix, which lives there, is back) |
|
||||
| Daily, 21:00 UTC | 📋 report: monitors, downtime, alerts, agent runs by model, cloud spend, commits, pending reboot or decision |
|
||||
| Weekly, Sat 22:00 UTC | Upgrade every image and host package on core: test, pin, commit, push, roll back on failure. Majors and reboots are escalated |
|
||||
| Every minute | Service desk: semprini-core's `service-desk.py`, run on the core host over SSH, fulfils the open requests in [Semprini/service-desk](https://git.semprini.me/Semprini/service-desk). What needs you is posted here: 🙋 an approval (`/approve` or `/reject` on the issue), ⛔ a failure (`/retry` once fixed), 📨 an "Ask core" request, ✅ a finished one. Waits out a hold |
|
||||
| Hourly | Self-update from this repo |
|
||||
|
||||
Scope for remediation is **whatever Uptime Kuma tracks at check time**, re-read every
|
||||
cycle. Pausing a Kuma monitor is how a service is taken out of scope; see semprini-core
|
||||
`docs/stack-support-runbook.md` → *Deliberately Stopped Services*. Upgrades cover every
|
||||
image on the host.
|
||||
image on the core host.
|
||||
|
||||
```
|
||||
Stack Maintenance ──┐ long-poll /sync ┌── Uptime Kuma (kuma.db via sqlite container)
|
||||
#stack-alerts ──────┤ ├── host: /proc, docker, kernel log
|
||||
▼ ▼
|
||||
┌──────────────────── maintainer.py ────────────────────┐
|
||||
│ listener thread: commands now, tasks → persisted queue │
|
||||
│ worker: one agent run at a time (operator > alerts > │
|
||||
│ health > upgrade); timers when idle │
|
||||
└───────────┬───────────────────────────────▲────────────┘
|
||||
│ claude -p [--resume] --output-format json
|
||||
▼ │ JSON envelope
|
||||
stack-support agent (semprini-core) ───────┘
|
||||
│ commits applied changes to main, pushes
|
||||
▼
|
||||
git.semprini.me/paul/semprini-core
|
||||
Stack Maintenance ──┐ long-poll /sync (HTTPS)
|
||||
#stack-alerts ──────┤
|
||||
▼
|
||||
┌──────────── EVAI, WSL: maintainer.py ─────────────┐ ┌── Semprini-Core (Lightsail)
|
||||
│ listener thread: commands now, tasks → queue │ SSH │ probe.py: Kuma, disk, memory,
|
||||
│ worker: one agent run at a time │───────▶│ OOM kills, restarts, reboot
|
||||
│ (operator > alerts > health > upgrade) │ │ service-desk.py
|
||||
│ agent.py (pydantic-ai): shell · read/write/edit │ │ ~/semprini-core: the agent
|
||||
│ file · fetch_url, on a named host │ │ edits, commits and pushes here
|
||||
└───────┬───────────────────────────┬───────────────┘ └──────────────────────────────
|
||||
│ cloud │ local
|
||||
▼ ▼
|
||||
Anthropic API Ollama on Windows (RTX 4090)
|
||||
(claude-sonnet-5) (GLM-4.7-Flash) powershell.exe → Hyper-V (read-only)
|
||||
```
|
||||
|
||||
The agent ends each run with a JSON envelope the daemon relays:
|
||||
The agent's result is a typed envelope the daemon relays:
|
||||
|
||||
```json
|
||||
{"status":"ok|action_taken|escalate|blocked","summary":"…","details":"…","question":"…","options":["…"]}
|
||||
```
|
||||
|
||||
## Models
|
||||
|
||||
`config.json` → `models` names profiles; `routing` gives each kind of task the profiles to try,
|
||||
best first:
|
||||
|
||||
```json
|
||||
"models": {
|
||||
"cloud": {"model": "anthropic:claude-sonnet-5", "api_key": "…"},
|
||||
"local": {"model": "ollama:hf.co/bartowski/zai-org_GLM-4.7-Flash-GGUF:Q5_K_S",
|
||||
"base_url": "http://{windows_host}:11434/v1", "context_tokens": 32768}
|
||||
},
|
||||
"routing": {"operator": ["cloud", "local"], "alerts": ["local", "cloud"],
|
||||
"health": ["cloud", "local"], "upgrade": ["cloud"]}
|
||||
```
|
||||
|
||||
- **An unreachable model** (Ollama stopped, an API outage, a revoked key) hands the run to
|
||||
the next profile at once. When none is left, the task stays queued and the maintainer
|
||||
reports itself degraded.
|
||||
- **A run that fails as a run** (the model loops until its budget is spent, or cannot produce
|
||||
the result) starts again on the next profile, told which commands the failed attempt ran.
|
||||
- A profile is `provider:model`. `anthropic:` and `ollama:` are built in; `openai:` with a
|
||||
`base_url` is any OpenAI-compatible server (llama.cpp's `llama-server`, vLLM, LM Studio);
|
||||
anything else pydantic-ai knows (`openai:gpt-…`, `google-gla:…`, `openrouter:…`) works with
|
||||
its key in `api_key` or the provider's environment variable. `settings` passes model
|
||||
settings through, e.g. `{"anthropic_effort": "high"}`.
|
||||
- `limits` caps each run: `request_limit`, `tool_calls_limit`, and `cost_usd` per kind of task
|
||||
for metered (Anthropic) runs.
|
||||
|
||||
**Cloud billing.** pydantic-ai calls the Anthropic API with an API key, billed per token. The
|
||||
`claude setup-token` subscription token of the Claude Code era does not work here. Claude
|
||||
Sonnet 5 is $2 / $10 per million input / output tokens; the system prompt, tool list and
|
||||
conversation are prompt-cached, so repeated steps cost much less. The footer on each reply
|
||||
and the daily report show the spend.
|
||||
|
||||
**Choosing a local model.** A local model is only useful if it calls tools and *uses what they
|
||||
return*. `--try-model <profile>` checks both with one request, and checks Ollama's context
|
||||
window. Tested on the 4090 on 2026-09-26:
|
||||
|
||||
| Model (Ollama) | Size | Result |
|
||||
|---|---|---|
|
||||
| GLM-4.7-Flash, Q5_K_S | 19 GB | ✓ uses tool results; the default |
|
||||
| qwen3.5:35b | 22 GB | ✓ uses tool results; tight on 24 GB with a long context |
|
||||
| qwen3-coder | 17 GB | ✗ calls tools, then ignores their results |
|
||||
|
||||
## Git: the repo is what runs
|
||||
|
||||
`~/semprini-core` on the host is a git checkout of `main`. Before each run the daemon
|
||||
fast-forwards it if it is clean. The agent commits every change it applies to the live
|
||||
stack to `main` and pushes it as `claude-code`; a change it only proposes goes on a
|
||||
`maint/<topic>` branch with a pull request. After each run the daemon pushes anything left
|
||||
unpushed, retrying if Gitea is down. It reports new commits, with a link, and any
|
||||
uncommitted changes. From the laptop, deploy with semprini-core's `infra/sync-to-host.sh`
|
||||
(push, then fast-forward the host).
|
||||
`~/semprini-core` on the core host is a git checkout of `main`. Before each run the daemon
|
||||
fast-forwards it if it is clean. The agent edits that checkout over SSH, commits every change
|
||||
it applies to the live stack to `main` and pushes it as `claude-code`; a change it only
|
||||
proposes goes on a `maint/<topic>` branch with a pull request, opened from the workstation.
|
||||
After each run the daemon pushes anything left unpushed, retrying if Gitea is down. It reports
|
||||
new commits, with a link, and any uncommitted changes. From a workstation checkout, deploy
|
||||
with semprini-core's `infra/sync-to-host.sh` (push, then fast-forward the host).
|
||||
|
||||
semprini-blog (GitHub) and conk are readable by the agent but not pushable, so it proposes
|
||||
patches for them instead.
|
||||
|
||||
## Setup on the host
|
||||
## Setup on the workstation
|
||||
|
||||
Prerequisites:
|
||||
- the stack is running, including Synapse, Gitea, matrix-alerts and Uptime Kuma
|
||||
- `~/semprini-core` is a git checkout of `main`
|
||||
- the host user is in the `docker` group
|
||||
- WSL Ubuntu with systemd (`[boot] systemd=true` in `/etc/wsl.conf`)
|
||||
- the core stack running, including Synapse, Gitea, matrix-alerts and Uptime Kuma
|
||||
- `~/semprini-core` on the core host is a git checkout of `main`, and its git pushes as
|
||||
`claude-code` (set up there by the previous install; keep
|
||||
`~/.local/state/semprini-maintainer/git-credentials` on the host)
|
||||
- Ollama on Windows, reachable from WSL (below)
|
||||
|
||||
```bash
|
||||
git clone https://git.semprini.me/paul/semprini-maintainer.git ~/semprini-maintainer
|
||||
cd ~/semprini-maintainer
|
||||
cp config.example.json config.json # paths assume user ubuntu
|
||||
|
||||
./register-matrix-bot.sh # @maintainer-bot + Stack Maintenance room → config.json
|
||||
./register-gitea-bot.sh # claude-code token for pushes and PRs → config.json
|
||||
( cd ~/semprini-core/core_stack && python3 scripts/setup-matrix-alerts.py ) # invites the bot to #stack-alerts
|
||||
./install.sh # checks, git credential helper, systemd unit, start
|
||||
cp config.example.json config.json # then copy matrix.* and gitea.token from the host's config.json
|
||||
./install.sh # uv, .venv, SSH check, --check, systemd unit, takes over from the host
|
||||
.venv/bin/python maintainer.py --set-api-key cloud # checks it with one request, saves it
|
||||
.venv/bin/python maintainer.py --try-model local # tool use and context window
|
||||
```
|
||||
|
||||
Then, once: accept the Stack Maintenance invite in Element as `@paul`, and give the daemon a
|
||||
Claude credential. Run `claude setup-token` wherever you are signed in to Claude, then on the
|
||||
host:
|
||||
`install.sh` stops and disables the daemon on the core host just before it starts this one:
|
||||
both use the same Matrix bot, so two would answer everything twice and act twice. The host
|
||||
keeps its checkout of this repository, so `maintainer.py --hold` still works there.
|
||||
|
||||
```bash
|
||||
# Absolute path: an unquoted ~ expands on your machine, not the host
|
||||
ssh -t ubuntu@3.107.254.151 /home/ubuntu/semprini-maintainer/maintainer.py --set-claude-token
|
||||
```
|
||||
**SSH to core.** The service uses the WSL user's key. If `install.sh` cannot connect, it prints
|
||||
the three commands that create a key, trust the host and authorise the key.
|
||||
|
||||
It checks the token with a one-line request and saves it to `config.json`. The service
|
||||
uses it from its next run, with no restart. The token lasts a year.
|
||||
**Ollama on Windows.** By default Ollama listens on 127.0.0.1, which WSL's NAT network cannot
|
||||
reach. Turn on *Expose Ollama to the network* in the Ollama app's settings (the same as
|
||||
`OLLAMA_HOST=0.0.0.0:11434`). `{windows_host}` in a `base_url` is replaced by the Windows side
|
||||
of WSL's network (its default gateway, 172.23.160.1 today), which changes between boots but
|
||||
never needs editing. The LAN address (`http://192.168.1.10:11434/v1`) works too.
|
||||
|
||||
**Moving to a new host:** bring `config.json` along. It holds both bot tokens, so the two
|
||||
register scripts find valid tokens and change nothing.
|
||||
Exposed that way, Ollama answers the whole home LAN, and it has no authentication. To admit
|
||||
only WSL, turn the app setting's firewall rule into one scoped to WSL's range (as administrator):
|
||||
`New-NetFirewallRule -DisplayName "Ollama from WSL" -Direction Inbound -Protocol TCP -LocalPort 11434 -RemoteAddress 172.16.0.0/12 -Action Allow`,
|
||||
and disable the broader one.
|
||||
|
||||
**Keep WSL running.** WSL shuts down when nothing runs in it. A logon task keeps it up:
|
||||
`schtasks /Create /TN "WSL keep-alive" /SC ONLOGON /RL LIMITED /F /TR "wsl.exe -d Ubuntu --exec sleep infinity"`.
|
||||
|
||||
## Configuration
|
||||
|
||||
@@ -132,58 +188,67 @@ register scripts find valid tokens and change nothing.
|
||||
|
||||
| Key | Default | Meaning |
|
||||
|---|---|---|
|
||||
| `autonomy` | `full` | `full` fixes and upgrades; `fix-only` fixes and only proposes upgrades; `notify` changes nothing |
|
||||
| `claude_model` | `claude-sonnet-5` | Model for every run |
|
||||
| `claude_oauth_token` | — | From `claude setup-token`; set with `--set-claude-token` |
|
||||
| `hosts` | core, local, windows | Where commands run: `ssh`, local bash, or `powershell` through WSL interop. `about` is what the agent is told about each |
|
||||
| `repo_host` / `repo_dir` | `core` / `/home/ubuntu/semprini-core` | The checkout that runs |
|
||||
| `models` / `routing` / `limits` | above | Model profiles, the order each kind of task tries them, per-run caps |
|
||||
| `autonomy` | `full` | `full` fixes and upgrades; `fix-only` fixes and only proposes upgrades; `notify` changes nothing (and has no file-writing tools) |
|
||||
| `health_interval_seconds` / `down_confirmations` | 300 / 2 | Health check cadence, and checks a monitor must fail before remediation |
|
||||
| `upgrade_weekday` / `upgrade_hour_utc` | 5 / 22 | Weekly upgrade slot (0 = Monday) |
|
||||
| `digest_hour_utc` | 21 | Daily report |
|
||||
| `conversation_ttl_seconds` | 14400 | How long a follow-up continues the previous conversation |
|
||||
| `escalation_expiry_seconds` | 604800 | An unanswered decision holds upgrades until then |
|
||||
| `alerts.batch_seconds` / `alerts.cooldown_seconds` / `alerts.ignore` | 60 / 43200 / `["PipelineTest"]` | Alert batching, re-investigation interval, alerts never investigated |
|
||||
| `host.*` | 85% disk, 400 MB memory | Host-check thresholds and cooldown |
|
||||
| `git.repos` | semprini-core | Checkouts the daemon fast-forwards and pushes |
|
||||
| `extra_dirs` | blog, conk | Other repos the agent may read |
|
||||
| `host.*` | 85% disk, 400 MB memory | Core host check thresholds and cooldown |
|
||||
| `git.repos` | semprini-core on core | Checkouts the daemon fast-forwards and pushes |
|
||||
| `remote_hold_file` | the host's `hold.json` | Where a hold set on the core host is read from |
|
||||
|
||||
## Operating
|
||||
|
||||
- **Logs:** `journalctl -u semprini-maintainer -f`, or `status` in Matrix.
|
||||
- **Logs:** `journalctl -u semprini-maintainer -f` in WSL, or `status` in Matrix.
|
||||
- **Working on the stack yourself:** hold it, rather than stopping the service — a hold
|
||||
expires on its own, so nothing stays paused because someone forgot. From Matrix,
|
||||
`hold 45m upgrading postgres`; from a shell on the host, or over ssh from a session:
|
||||
`hold 45m upgrading postgres`; from a shell on the workstation, or on the core host:
|
||||
|
||||
```bash
|
||||
~/semprini-maintainer/maintainer.py --hold 45m --reason "upgrading postgres"
|
||||
~/semprini-maintainer/maintainer.py --resume
|
||||
```
|
||||
|
||||
The hold lives in `hold.json` beside the state file, so it reaches a running daemon and
|
||||
survives a restart. semprini-core's `infra/sync-to-host.sh` sets 15 minutes on every
|
||||
deploy, so the daemon does not chase the churn a deploy makes.
|
||||
- **Stop everything it does:** `sudo systemctl stop semprini-maintainer`. For "watch but
|
||||
don't touch", set `"autonomy": "notify"` and restart the service.
|
||||
`--hold` and `--resume` need only python3, so the core host's old checkout still takes them.
|
||||
The daemon reads the host's hold each minute and honours whichever hold ends later.
|
||||
semprini-core's `infra/sync-to-host.sh` sets 15 minutes there on every deploy.
|
||||
- **Stop everything it does:** `sudo systemctl stop semprini-maintainer` in WSL. For "watch
|
||||
but don't touch", set `"autonomy": "notify"` and restart the service.
|
||||
- **Update the daemon:** push to `main` here. It fast-forwards within the hour, runs
|
||||
`--check`, and restarts itself, or rolls back and says why.
|
||||
`uv sync` if the dependencies changed, runs `--check`, and restarts itself, or rolls back
|
||||
and says why.
|
||||
|
||||
### When the agent cannot run at all
|
||||
### When no model can run
|
||||
|
||||
Expired or revoked credentials, a timeout, a crashed CLI: the CLI exits non-zero with no
|
||||
envelope. That is a *maintainer* outage, not a stack verdict (`AgentUnavailable`):
|
||||
A revoked or missing API key, Ollama stopped, a provider outage: the agent never started. That
|
||||
is a *maintainer* outage, not a stack verdict (`AgentUnavailable`). It is tracked per kind of
|
||||
task, because each kind has its own models: with no cloud key, the cloud-only weekly upgrade
|
||||
waits while your messages and alerts go to the local model.
|
||||
|
||||
- The task stays in the persisted queue; nothing is lost.
|
||||
- One `⛔ maintainer degraded` message names the likely cause and the fix, then it stays
|
||||
quiet until recovery.
|
||||
- Retries back off from 60s to 15 min. Saving a new token with `--set-claude-token` skips
|
||||
the wait.
|
||||
- `✅ maintainer recovered` when a run succeeds again; the queue then drains.
|
||||
- One `⛔ maintainer degraded` message per kind names the likely cause and the fix, then it
|
||||
stays quiet until recovery.
|
||||
- That kind's retries back off from 60s to 15 min. Saving a new key with `--set-api-key`
|
||||
skips the wait.
|
||||
- `✅ maintainer recovered` when a run of that kind succeeds again; its tasks then drain.
|
||||
|
||||
A run that hits its time limit, is cancelled, or is rejected by the model is reported as
|
||||
⛔ blocked, with the commands it had run.
|
||||
|
||||
## Test without the service
|
||||
|
||||
```bash
|
||||
python3 maintainer.py --check # parsers, schedule, config, paths
|
||||
python3 maintainer.py --once health # one health cycle and any agent work it queues
|
||||
python3 maintainer.py --once digest # post the daily report now
|
||||
python3 maintainer.py --once upgrade # run the upgrade now
|
||||
.venv/bin/python maintainer.py --check # parsers, schedule, config, agent wiring; warns on SSH and Ollama
|
||||
.venv/bin/python maintainer.py --check --offline # the same without touching the network
|
||||
.venv/bin/python maintainer.py --try-model local # one tool call; is the result used?
|
||||
.venv/bin/python maintainer.py --once health # one health cycle and any agent work it queues
|
||||
.venv/bin/python maintainer.py --once digest # post the daily report now
|
||||
.venv/bin/python maintainer.py --once upgrade # run the upgrade now
|
||||
```
|
||||
|
||||
Stop the service first: `--once` shares the state file.
|
||||
Reference in new issue
Block a user