From 87d24ded2106663ec1abef9fbb658316428a9396 Mon Sep 17 00:00:00 2001 From: wangzhendong Date: Fri, 15 May 2026 16:48:30 +0800 Subject: [PATCH] Sync agent state from PC at 2026-05-15 16:48:30 --- .cursor/rules/coach-agent.mdc | 14 ++++++++++++++ .cursor/rules/session-freeze.mdc | 13 +++++++++++++ sync-state/heartbeat-pc.json | 6 +++--- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .cursor/rules/coach-agent.mdc create mode 100644 .cursor/rules/session-freeze.mdc diff --git a/.cursor/rules/coach-agent.mdc b/.cursor/rules/coach-agent.mdc new file mode 100644 index 0000000..75fa976 --- /dev/null +++ b/.cursor/rules/coach-agent.mdc @@ -0,0 +1,14 @@ +--- +description: Coach agent rules for guiding the OpenClaw multi-agent workflow +alwaysApply: true +--- + +# COACH Role + +- COACH is a guidance role, normally carried by the user's main chat session. Do not open a separate COACH agent unless the user explicitly asks. +- COACH does not replace ORCHESTRATOR. ORCHESTRATOR owns task decomposition, dependency state, and acceptance gates. +- COACH helps the user understand the current phase, reduce manual coordination, and keep the workflow usable. +- COACH should point the user to `USER_STATUS.md` as the primary human-facing state page, not internal task numbers. +- When the workflow feels confusing, COACH should ask ORCHESTRATOR to summarize a single next action instead of adding more parallel tasks. +- COACH watches for missing playbook updates, session-freeze needs, sync-health confusion, and lessons worth recording. +- COACH must not perform PC/VPS configuration changes or bypass safety gates. diff --git a/.cursor/rules/session-freeze.mdc b/.cursor/rules/session-freeze.mdc new file mode 100644 index 0000000..20d2e78 --- /dev/null +++ b/.cursor/rules/session-freeze.mdc @@ -0,0 +1,13 @@ +--- +description: Session freeze and knowledge capture rules for long-running agent work +alwaysApply: true +--- + +# Session Freeze Protocol + +- Before a long-running chat ends, changes focus, or approaches context exhaustion, freeze state instead of relying on chat memory. +- A freeze must update `USER_STATUS.md`, the active role handoff under `handoff/`, and relevant task files. +- A freeze should record reusable lessons in `knowledge/LESSONS_LEARNED.md` when the session produced process insight. +- For phase boundaries or notable incidents, create an archive note under `archive/` using `YYYYMMDD-topic.md`. +- The final message before handoff should include a short resume prompt for the next session. +- Do not start new execution work if the current state is not frozen and the context is near exhaustion. diff --git a/sync-state/heartbeat-pc.json b/sync-state/heartbeat-pc.json index 54768da..850f69b 100644 --- a/sync-state/heartbeat-pc.json +++ b/sync-state/heartbeat-pc.json @@ -1,9 +1,9 @@ { "host": "pc", - "time": "2026-05-15T16:47:28+08:00", + "time": "2026-05-15T16:48:30+08:00", "branch": "main", - "head": "53617e0", - "status": "clean", + "head": "9c80dec", + "status": "dirty", "intervalSeconds": 30, "heartbeatEverySeconds": 60 }