feat(heartbeat): custom evaluator prompt

This commit is contained in:
Arthur K. authored and chengyongru committed 2026-07-15 01:19:48 +08:00
1 parent 88c38e9b38
commit dcb37259fa
7 files changed
+278 -17

No files matched your search

+4
View File
@@ -2031,6 +2031,10 @@ The heartbeat job is backed by the same cron service as user-created reminders.
| `gateway.heartbeat.keepRecentMessages` | `8` | Number of recent heartbeat-session messages to retain after each run. |
| `gateway.restartMode` | `auto` | Restart strategy for `/restart`: `auto` uses `spawn` on Windows foreground runs and `exec` elsewhere. Use `exit` with Windows service wrappers such as WinSW or nssm so the service manager owns the restart. |
### Custom heartbeat evaluator prompt
The notification gate runs on a built-in system prompt. Advanced users can override it, but you rarely need to — it's strongly advised to first read the evaluator code and the default `evaluator.md`. To override, drop your prompt at `<workspace>/prompts/evaluator.md`. It must still instruct the model to call the `evaluate_notification` tool; otherwise the gate fails closed and stays silent.
## Subagent Concurrency