Commit Graph

696 Commits

Author SHA1 Message Date
lachtan
977a894cc8 nanobot: 2026-09-20 20:02:41 2026-09-20 20:02:42 +02:00
nanobot
facc7814f6 dream: periodic memory consolidation
memory/MEMORY.md: +14 -0
1 file changed, 14 insertions(+), 0 deletions(-)

```diff
--- memory/MEMORY.md
+++ memory/MEMORY.md
@@ -7,11 +7,23 @@
 - Goal: interconnect remind, keep, note, and todo into a unified workflow
 - pipepilot — user's own project/tool
 
+## Model evaluation (2026-09-20, open)
+
+- Active objective: compare `deepseek-v4.1-flash` vs `glm-5.3` vs `kimi-k2.6` for agentic use in nanobot — research gathered, comparison report NOT yet written (next action: write to `results/`)
+- Plan `plans/deepseek-v4.1-flash-eval.md` offers variant A (light: deep-research + usage delta) vs B (full: Fáze 0–3 vs glm baseline); user hasn't chosen
+- Deep-research findings already saved: `results/2026-09-20_hodnoceni-beziciho-modelu-nanobot.md` (eval harness pro běžící model: pass^k, párové úlohy, harness fingerprint, drift watchdog)
+- Preset facts: `deepseek` = `deepseek-v4.1-flash:cloud`, ctx 976 000, maxTokens 16384, temp 0.1, reasoningEffort high (Medium Usage tier); `glm` = `glm-5.3:cloud` ctx 976 000 (High Usage); model reports context_length 1048576, capabilities completion/thinking/tools/vision
+- Usage tiers + live tok/s (2026-09-20): deepseek 175,9 tok/s TTFT 366 ms Medium; glm-5.3 134,1/0,73 s High; kimi-k2.6 45,2/1,7 s High — kimi-k2.6 na našem endpointu ~3–4× pomalejší
+- Reálné použití (`db/ollama_usage.sqlite`, 293 vzorků 2026-09-15→20): glm-5.3 1737 req/týden, deepseek 84, glm-5.3-flash 78, kimi-k2.7-code 62, kimi-k2.6 jen 5
+- AA Intelligence Index v4.3.2: GLM-5.3 44 (top open weights), GLM-5.3-Flash 42, DeepSeek V4.1 Flash 39,5, Kimi K2.6 27 — staré hodnoty 60/57 (v4.1.1) v `knowledge/models.md` nemíchat; tabulku doplnit o `deepseek`
+- Kimi K2.6 CJK drift je trigger-specific (playful prompt, issue #144), ne systematický na Ollama Cloud
+
 ## Runtime / Deployment
 
 - Runs as a systemd user service `nanobot.service`; model switching via `my` needs `tools.my.allow_set = true`
 - `compact-memory-auto-daily` runs as a system crontab script (not a nanobot cron/jobs.json job) with a fresh session per run; delivers its report straight to Telegram via Bot API
 - `nanobot-version-check` cron job (denně 8:00 Europe/Prague) — porovná PyPI verzi `nanobot-ai` proti nainstalované; při novější verzi pošle Telegram notifikaci, jinak nic nedělá
+- Scripts pin presets: `skills/reflect/scripts/reflect_auto.py` → `MODEL_PRESET = "glm"`, `skills/compact-memory/scripts/compact_memory_auto.py` → `MODEL_PRESET = "kimi"` — any preset rename must update these
 
 ## Integrations
 
@@ -20,6 +32,8 @@
 ## Architecture
 
 - Cross-channel session continuity via `unifiedSession: true`; backups: wood.hell → pivo.hell (recursive)
+- Eval-harness constraint: `restrict_to_workspace` blokuje exec na `~/.nanobot/sessions/` a config.json — eval harness čtoucí session JSONL musí běžet jako cron script nebo `detach`, ne jako tool cally v turnu; webui token usage jde do separátního `token-usage.json`
+- nanobot nemá OTel/GenAI instrumentaci; `AgentHook` (`after_iteration`, `usage`) je přirozený bod pro span emisi
 
 ## Wiki embeddings
 
```
2026-09-20 16:33:38 +02:00
lachtan
6216bdfb90 nanobot: 2026-09-20 14:22:14 2026-09-20 14:22:16 +02:00
lachtan
b0468c408f nanobot: 2026-09-20 14:15:06 2026-09-20 14:15:09 +02:00
lachtan
7808eb96a3 nanobot: 2026-09-20 14:13:22 2026-09-20 14:14:28 +02:00
lachtan
974b37a71c nanobot: 2026-09-20 12:21:23 2026-09-20 12:21:24 +02:00
lachtan
55ee19ade4 nanobot: 2026-09-20 08:41:47 2026-09-20 08:41:49 +02:00
lachtan
1b2e7103ce nanobot: 2026-09-19 08:42:53 2026-09-19 08:42:54 +02:00
lachtan
0c52d7f33b nanobot: 2026-09-19 08:41:43 2026-09-19 08:41:44 +02:00
lachtan
ad2125470a nanobot: 2026-09-19 08:14:56 2026-09-19 08:14:57 +02:00
lachtan
3f710f8a35 nanobot: 2026-09-18 20:31:58 2026-09-18 20:32:00 +02:00
lachtan
ac5efd2f81 nanobot: 2026-09-18 20:30:53 2026-09-18 20:30:54 +02:00
lachtan
66a498031f nanobot: 2026-09-18 20:30:16 2026-09-18 20:30:18 +02:00
lachtan
971f8c7885 nanobot: 2026-09-18 20:29:00 2026-09-18 20:29:02 +02:00
lachtan
c59d6ead27 nanobot: 2026-09-18 20:26:00 2026-09-18 20:26:00 +02:00
lachtan
a5d55ba846 nanobot: 2026-09-18 20:24:19 2026-09-18 20:24:19 +02:00
lachtan
b3d8700256 nanobot: 2026-09-18 20:22:38 2026-09-18 20:22:41 +02:00
lachtan
b330931c50 nanobot: 2026-09-18 20:18:32 2026-09-18 20:18:33 +02:00
lachtan
ded5961d83 nanobot: 2026-09-18 20:14:19 2026-09-18 20:14:24 +02:00
lachtan
da5d9c7cc5 nanobot: 2026-09-18 19:26:59 2026-09-18 19:27:04 +02:00
lachtan
d9548e5cda nanobot: 2026-09-18 19:16:59 2026-09-18 19:17:00 +02:00
lachtan
871934f1c5 nanobot: 2026-09-18 19:16:50 2026-09-18 19:16:51 +02:00
lachtan
b1c896a53c uklid orphanu po retired llm-wiki + korekce reportu o wiki indexaci 2026-09-18 17:52:29 +02:00
lachtan
f17bc38fd3 nanobot: 2026-09-18 17:06:16 2026-09-18 17:06:17 +02:00
lachtan
e926549728 nanobot: 2026-09-17 18:50:29 2026-09-17 18:50:29 +02:00
lachtan
a750beacfd nanobot: 2026-09-17 18:49:26 2026-09-17 18:49:26 +02:00
lachtan
c68801f14b nanobot: 2026-09-17 18:48:56 2026-09-17 18:48:56 +02:00
lachtan
4858a1ab4b nanobot: 2026-09-17 18:48:03 2026-09-17 18:48:05 +02:00
lachtan
fc50ae451f nanobot: 2026-09-17 18:43:01 2026-09-17 18:43:03 +02:00
lachtan
dc6e67e035 nanobot: 2026-09-16 15:53:37 2026-09-16 15:54:10 +02:00
lachtan
b0f14643f5 nanobot: 2026-09-16 09:17:27 2026-09-16 09:17:28 +02:00
lachtan
6d43517a69 runtime 2026-09-16 08:56:39 +02:00
lachtan
5407931bdc runtime 2026-09-16 08:56:28 +02:00
lachtan
b0827177d2 nanobot: 2026-09-16 07:26:44 2026-09-16 07:26:45 +02:00
lachtan
5457c506f8 runtime 2026-09-15 12:19:03 +02:00
lachtan
2ee633f5ee skill usage 2026-09-15 12:18:52 +02:00
lachtan
ea70c10ea9 runtime zmeny 2026-09-15 10:15:24 +02:00
nanobot
a98c07ba82 usage: make SKILL.md English-only (triggers, output-language rule) 2026-09-15 06:24:51 +02:00
nanobot
3cf108f156 develop: sync knowledge.md (ollama usage API shape, no per-session tokens) 2026-09-15 06:22:58 +02:00
nanobot
a970805fdc usage: continuous Ollama Cloud usage sampling + delta report
- scripts/ollama_usage_poll.py: per-minute cron sample into db/ollama_usage.sqlite,
  write-on-change; meta table records every poll so a data gap can be told apart
  from a failed or missed poll
- scripts/ollama_usage_report.py: delta report keyed on per-model request_count
  (limits.*.usage has 0.1 % resolution, short-interval deltas are noise)
- SKILL.md: Continuous sampling section
2026-09-15 06:22:53 +02:00
nanobot
b0ad79afc1 dream: periodic memory consolidation
SOUL.md: +2 -0
1 file changed, 2 insertions(+), 0 deletions(-)

```diff
--- SOUL.md
+++ SOUL.md
@@ -33,6 +33,8 @@
 - Když existuje víc cest, vynes tradeoff nahlas místo tichého výběru jedné
 - Víc otázek pokládej **postupně, jednu po druhé** — u každé musí být prostor odpovědět
 - **Cron tool** podporuje jen `add`, `list`, `remove` — úprava existujícího jobu vyžaduje delete + create
+- **Exec guard blokuje `rm -rf`, `rm -r` a wildcard/multi-file `rm`** i v tmp/ — čištění dělej vyjmenovaným `rm` jednotlivých souborů + `rmdir`
+- **Exec guard blokuje curl na interní hosty** („internal/private URL detected", např. Ollama endpoint na nvidia.hell) — pro HTTP na interní homelab služby použij Python skript (requests) v tmp/ přes uv
 - Pravidla do `USER.md`/`SOUL.md`/`AGENTS.md` apod. piš **stručně a jasně** — krátké imperativní bullety, klíčové slovo tučně, bez vaty
 
 ## Faktografická pravidla
```
2026-09-15 04:49:30 +02:00
lachtan
c8f25de430 nanobot: 2026-09-14 21:20:00 — plan: ollama usage poller 2026-09-14 21:14:13 +02:00
lachtan
30d27e4b02 nanobot: 2026-09-14 21:16:00 — usage: models only in Models section, not inline 2026-09-14 21:11:06 +02:00
lachtan
ea60e0684e nanobot: 2026-09-14 21:10:00 — keep: skills always English 2026-09-14 21:09:00 +02:00
lachtan
35e1e4efdc nanobot: 2026-09-14 21:12:30 — usage: skill + script fully English 2026-09-14 21:08:14 +02:00
lachtan
a45e5434f4 nanobot: 2026-09-14 21:07:55 — usage: resets countdown + per-model list 2026-09-14 21:07:56 +02:00
lachtan
af3cef8f49 nanobot: 2026-09-14 21:05:11 — usage: usage je frakce limitu, ne $ 2026-09-14 21:00:32 +02:00
lachtan
fc96796dbc nanobot: 2026-09-14 20:58:30 — untrack .env (secret in repo) 2026-09-14 20:58:05 +02:00
lachtan
8dc513ee96 nanobot: 2026-09-14 20:57:58 2026-09-14 20:58:01 +02:00
lachtan
331b90cfea nanobot: 2026-09-14 19:19:19 2026-09-14 19:19:49 +02:00