kb: retire pi-installation association (OMP is the primary harness)

Purge live-state claims that ~/.pi is our harness; keep general
pi documentation in omp-docs/ and dated historical records.

- README.md: single config source; Legacy Notes reworded
- AGENTS.md: drop 'like ~/.pi did' framing
- APPEND_SYSTEM.md: okf-spec -> omp-docs/references/okf-spec.md
- dotfiles/zsh/.zshrc: systemprompt alias -> APPEND_SYSTEM.md
- managed skill llm-fleet-model-swap + model_config_sync skill:
  single-source models.yml; validation script YAML-only
- memories (MEMORY.md, memory_summary.md, learned.md): single source
- omp-docs: .okf root -> ~/.omp/omp-docs; de-live pi-era claims in
  pi/index.md, pi-web-access.md, engineering/agents-files.md
This commit is contained in:
Frank committed 2026-09-17 19:24:02 -07:00
1 parent eebcfbf5ac
commit c3f30bdbd0
23 files changed
+81 -76

No files matched your search

@@ -1 +1 @@
Manages dual AI model configs (`~/.pi/agent/models.json` as source, `~/.omp/agent/models.yml` as import/generated). Always edit both in lock-step. Context sizes use Ki-style multiples (e.g., 200k = 204800). For `frank-default-small`, update `contextWindow` and `maxTokens` together. Validate with `jq` and `python3 -c "import yaml..."`. Providers: `llamacpp (dankserver)` & `llamacpp (dankclaw)`. NPU `gemma4-it:e4b` uses port 7771.
Manages the OMP model config (`~/.omp/agent/models.yml`, single source of truth). Context sizes use Ki-style multiples (e.g., 200k = 204800). For `frank-default-small`, update `contextWindow` and `maxTokens` together. Validate with `python3 -c "import yaml..."`. Providers: `llamacpp (dankserver)` & `llamacpp (dankclaw)`. NPU `gemma4-it:e4b` uses port 7771.
@@ -1,5 +1,5 @@
When updating context from 160k to 200k:
1. Convert to Ki: 200 × 1024 = 204800
2. Update `contextWindow` and `maxTokens` in both `~/.pi/agent/models.json` and `~/.omp/agent/models.yml`
2. Update `contextWindow` and `maxTokens` in `~/.omp/agent/models.yml`
3. No cache flush required; applies on next config read.
4. Validate with validation script.
@@ -1,9 +1,10 @@
#!/bin/bash
# Validate both JSON and YAML context/tokens match
JSON_VAL=$(jq -e '.providers."llamacpp (dankserver)".models[0] | .contextWindow, .maxTokens' ~/.pi/agent/models.json)
YAML_VAL=$(python3 -c "import yaml; d=yaml.safe_load(open('/home/dank/.omp/agent/models.yml')); m=d['providers']['llamacpp (dankserver)']['models'][0]; print(m['id'], m['contextWindow'], m['maxTokens'])")
if [ "$JSON_VAL" = "$YAML_VAL" ]; then
echo "Config in sync: $JSON_VAL"
# Validate the OMP model config (single source of truth) parses and reports
# the dankserver model's context/tokens.
YAML_VAL=$(python3 -c "import yaml; d=yaml.safe_load(open('$HOME/.omp/agent/models.yml')); m=d['providers']['llamacpp (dankserver)']['models'][0]; print(m['id'], m['contextWindow'], m['maxTokens'])")
if [ -n "$YAML_VAL" ]; then
echo "Config OK: $YAML_VAL"
else
echo "Mismatch detected. JSON: $JSON_VAL | YAML: $YAML_VAL"
echo "YAML parse failed or model missing."
exit 1
fi