Run everything on the local model; no cloud tier
GLM-4.7-Flash can reach core over SSH, check, diagnose and upgrade, so operator messages, alert triage, health findings and the weekly upgrade all route to the one local profile. The Anthropic profile and its cloud-first routing go, and with them the API key and metered billing the first draft needed. The local profile's context_tokens rises to 131072, the window Ollama loads GLM with, so long runs are not trimmed early. Profiles and routing stay in configuration: a second model can still be added, with hand-over when the first is unreachable or fails the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
61dca2c3ca
commit
9aa1abf0e2
7 files changed
+89
-93
No files matched your search
+16
-13
@@ -28,7 +28,8 @@ Event-driven where something announces itself:
|
||||
|
||||
All agent work runs one task at a time through the canonical stack-support
|
||||
agent (semprini-core/agents/stack-support.agent.md), run in-process with
|
||||
pydantic-ai (agent.py) on a cloud or local model chosen per kind of task.
|
||||
pydantic-ai (agent.py), on the workstation's local model (GLM-4.7-Flash on
|
||||
Ollama) unless config.json names others.
|
||||
Operator messages go to the front of the queue.
|
||||
|
||||
The daemon runs on the operator's workstation, not on the stack it keeps:
|
||||
@@ -105,24 +106,26 @@ DEFAULTS = {
|
||||
"extra_dirs": [f"{CORE_HOME}/semprini-blog", f"{CORE_HOME}/conk"],
|
||||
"agent_file": "agents/stack-support.agent.md",
|
||||
"runbook_file": "docs/stack-support-runbook.md",
|
||||
# Model profiles (agent.py). An api_key is saved with --set-api-key and
|
||||
# re-read before every run, so a new key applies without a restart.
|
||||
# Model profiles (agent.py). One local model does everything; another
|
||||
# profile (a cloud one, say) is only worth adding for a reason. An api_key
|
||||
# is saved with --set-api-key and re-read before every run.
|
||||
# {windows_host} is the Windows side of WSL's NAT network, where Ollama
|
||||
# listens. Replaced whole by config.json, not merged.
|
||||
"models": {
|
||||
"cloud": {"model": "anthropic:claude-sonnet-5", "api_key": ""},
|
||||
# GLM-4.7-Flash (30B MoE, 19 GB) fits the 4090 with room for its cache,
|
||||
# and uses tool results faithfully (--try-model); qwen3-coder did not.
|
||||
# Ollama loads it with a 128k window.
|
||||
"local": {"model": "ollama:hf.co/bartowski/zai-org_GLM-4.7-Flash-GGUF:Q5_K_S",
|
||||
"base_url": "http://{windows_host}:11434/v1"},
|
||||
"base_url": "http://{windows_host}:11434/v1",
|
||||
"context_tokens": 131072},
|
||||
},
|
||||
# Which profiles each kind of task tries, best first. Later ones take over
|
||||
# when the first is unreachable or fails the run. Replaced whole.
|
||||
# Which profiles each kind of task tries, best first; a later one takes
|
||||
# over when the first is unreachable or fails the run. Replaced whole.
|
||||
"routing": {
|
||||
"operator": ["cloud", "local"],
|
||||
"alerts": ["local", "cloud"],
|
||||
"health": ["cloud", "local"],
|
||||
"upgrade": ["cloud"],
|
||||
"operator": ["local"],
|
||||
"alerts": ["local"],
|
||||
"health": ["local"],
|
||||
"upgrade": ["local"],
|
||||
},
|
||||
# Per run. cost_usd caps metered (Anthropic) runs by kind; local runs are free.
|
||||
"limits": {
|
||||
@@ -971,7 +974,7 @@ Write to me in plain language and I act on it. A follow-up within a few hours co
|
||||
- `hold 45m <why>` — stand down for a while (`hold` alone is 30 min, 8h is the most). Your messages still run and alerts still collect; health checks, triage and upgrades wait
|
||||
- `resume` — end a hold now
|
||||
- `new` — forget this room's conversation
|
||||
- `model` — which models answer what; `model local` or `model cloud` picks one for your messages in this room, `model auto` goes back to the default
|
||||
- `model` — the model I run on; with more than one configured, `model <name>` picks one for your messages in this room and `model auto` goes back to the default
|
||||
- `upgrade` — run the weekly upgrade now
|
||||
- `help` — this message"""
|
||||
|
||||
@@ -2352,7 +2355,7 @@ def main():
|
||||
ap.add_argument("--offline", action="store_true",
|
||||
help="with --check: skip the SSH and model reachability warnings")
|
||||
ap.add_argument("--set-api-key", metavar="PROFILE",
|
||||
help="check and store an API key for a model profile, e.g. cloud")
|
||||
help="check and store an API key for a model profile that needs one")
|
||||
ap.add_argument("--try-model", metavar="PROFILE",
|
||||
help="one request with one tool call to a model profile, then exit")
|
||||
ap.add_argument("--hold", metavar="DURATION",
|
||||
|
||||
Reference in new issue
Block a user