Dalsi vlna cisteni /remind od Claude
This commit is contained in:
21
TOOLS.md
21
TOOLS.md
@@ -26,7 +26,7 @@ This file documents non-obvious constraints and usage patterns.
|
||||
## cron — Background Agent Tasks
|
||||
|
||||
- Use `cron` only for **background agent tasks** (scripts, checks, autonomous actions).
|
||||
- For **personal reminders to the user**, use the `/remind` skill instead (`reminder.yaml`).
|
||||
- For **personal reminders to the user**, use the `/remind` skill instead (stored in SQLite `db/reminders.sqlite`).
|
||||
- Do not call `nanobot cron` via `exec` — use the built-in `cron` tool.
|
||||
|
||||
## python — use uv
|
||||
@@ -48,12 +48,15 @@ Do not use `pip`, `pip-tools`, `poetry`, `conda`, or the system `python`.
|
||||
Reason: isolated, reproducible environments with no system-level side
|
||||
effects, faster resolves, no "works on my machine" surprises.
|
||||
|
||||
## log/reminder.log — doručené připomínky
|
||||
## Doručené připomínky — „co dnes přišlo?"
|
||||
|
||||
Odeslané připomínky se logují do `log/reminder.log` (append-only, formát
|
||||
`YYYY-MM-DDTHH:MM:SS <text>`, Prague time, bez timezone suffixu). Posílá je
|
||||
**systémový cron uživatele nanobot** (`skills/remind/scripts/remind_send.py`)
|
||||
přímo přes Telegram, mimo agenta. Když se uživatel ptá na minulé/dnešní
|
||||
připomínky („připomněl jsi mi…?", „co dnes přišlo?"), přečti tento soubor.
|
||||
Vedle něj v `log/reminder_cron.log` se zachytává stdout/stderr crontabu —
|
||||
za normálního běhu prázdný, plní se jen při pádech skriptu.
|
||||
Připomínky doručuje **systémový cron uživatele nanobot**
|
||||
(`skills/remind/scripts/remind_send.py`) přímo přes Telegram, mimo agenta —
|
||||
agent u odeslání není. Když se uživatel ptá na minulé/dnešní připomínky
|
||||
(„připomněl jsi mi…?", „co dnes přišlo?"), zavolej
|
||||
`uv run skills/remind/scripts/remind_edit.py delivered [--since YYYY-MM-DD]` —
|
||||
čte tabulku `reminder_fires` (jen doručené, čas v Praze).
|
||||
|
||||
`log/reminder.log` je provozní/debug log všech operací (ADD/EDIT/REMOVE/…/DELIVER,
|
||||
UTC) — ne zdroj pravdy pro doručení. `log/reminder_cron.log` zachytává
|
||||
stdout/stderr crontabu — za zdravého běhu prázdný, plní se jen při pádech skriptu.
|
||||
|
||||
Reference in New Issue
Block a user