fix(automations): clarify chat review and scheduling choices

This commit is contained in:
Xubin Ren committed 2026-10-07 01:12:23 +08:00
1 parent 17a66dcecf
commit 052ad09983
19 files changed
+139 -19

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ Write what to do in `message`. For a normal reminder or report, do not copy the
If the user asks to send to other chats, preserve those recipients in the task instructions. Use the `message` tool for those sends and for file attachments. Existing tasks that explicitly request a `message` call still use it; changing the task's chat does not change explicit recipients in its instructions.
Do not use `cron` for periodic background checks that should stay quiet when there is nothing useful to report. For those, update `HEARTBEAT.md`; the protected heartbeat job runs those checks and only delivers results that pass the notification gate.
Choose by timing and notification behavior, not repetition. A specified time or interval uses `cron`, even when it repeats: "every day at 8am, remind me to drink water" is a cron task. Use `HEARTBEAT.md` for background checks with flexible timing that should notify only on actionable changes. Heartbeat does not guarantee a requested time or interval; do not substitute it for an explicit schedule.
## Task Types
+3 -3
View File
@@ -8,8 +8,8 @@ Use this file for project-specific preferences, recurring workflow conventions,
- Before scheduling reminders, check available skills and follow skill guidance first.
- Use the built-in `cron` tool to create/list/remove jobs (do not call `nanobot cron` via `exec`).
- Get USER_ID and CHANNEL from the current session (e.g., `8281248569` and `telegram` from `telegram:8281248569`).
- Cron jobs run as scheduled turns in the origin chat/session and normally deliver the result back to that channel. Do not use cron for background checks that should stay silent when there is nothing useful to report; use `HEARTBEAT.md` instead.
- Use `cron` for a specified time or interval, including recurring reminders such as "every day at 8am". Repetition alone does not make a task a heartbeat task.
- The tool captures the current chat. Task instructions need only say what to do; nanobot sends the final reply to the saved chat. Include other recipients only when the user requests separate sends.
**Do NOT just write reminders to MEMORY.md** — that won't trigger actual notifications.
@@ -21,4 +21,4 @@ Use this file for project-specific preferences, recurring workflow conventions,
- Use `edit_file` only for small exact replacements copied from the current `HEARTBEAT.md`.
- Use `write_file` for first creation or intentional full-file rewrites.
When the user asks for a recurring/periodic heartbeat task, or for a periodic background check that should only notify on actionable changes, update `HEARTBEAT.md` instead of creating a one-time reminder. Use the built-in `cron` tool for explicit reminders, scheduled tasks that should report every run, or custom schedules that should not be part of the heartbeat task list.
Use `HEARTBEAT.md` for background checks with flexible timing that should notify only on actionable changes. Heartbeat does not guarantee a requested time or interval. For example, "keep an eye on open issues and tell me if one needs attention" fits heartbeat; "send me an issue report every day at 8am" needs `cron`.
+1 -1
View File
@@ -3,7 +3,7 @@
<!--
This file is checked periodically by your nanobot agent. When nanobot gateway starts with gateway.heartbeat.enabled=true, it automatically registers a protected heartbeat cron job that reads this file.
Use this file for recurring background checks that should stay quiet unless there is something useful to report. Regular cron jobs are different: they normally deliver each run's result back to the chat/session where they were created.
Use this file for background checks with flexible timing that should stay quiet unless there is something useful to report. For a specified time or interval, including recurring reminders such as "every day at 8am", use the cron tool instead. Heartbeat does not guarantee that schedule. Regular cron jobs normally deliver each run's result back to their saved chat/session.
If this file has no tasks (only headers and comments), the agent will skip it. Completed tasks should be deleted, not kept - heartbeat only reads "Active Tasks".
-->
+7
View File
@@ -3,3 +3,10 @@
- Treat a clear user request as authorization to complete the task, including execution and verification.
- Ask for confirmation when an irreversible action requires it, or for clarification when essential information is missing.
- Wait for tool results before writing the final answer.
## Scheduling
- Choose by the user's requested timing and notification behavior, not by whether a task repeats.
- Use `cron` for reminders and tasks with a specified time or interval, whether one-time or recurring. "Every day at 8am, remind me to drink water" is a cron task, not a heartbeat task.
- Use `HEARTBEAT.md` for background checks with flexible timing that should notify only on actionable changes. Heartbeat does not guarantee a requested time or interval. Do not substitute it for an explicit schedule, even if workspace guidance describes recurring tasks as heartbeat tasks.
- Confirm a task only after its tool call or file update succeeds. State what you actually created; if the requested schedule is unavailable, explain the limitation instead of silently choosing another mechanism.