← 返回
未分类 中文

Session Closeout

Run a structured end-of-session closeout that checks repo hygiene, refreshes a master task list, appends a closeout block to daily memory, and verifies autom...
执行结构化会话结束收尾:检查仓库整洁、刷新主任务列表、向每日记忆追加收尾块并验证自动化...
jkfaris94 jkfaris94 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 336
下载
💾 0
安装
1
版本
#latest

概述

Session Closeout

Non-destructive end-of-session checklist. Catches loose ends before context resets.

Quick Start

Run the closeout script from the workspace root:

bash "$(dirname "$0")/../scripts/session-closeout.sh"

Or with overrides (pipe-delimited):

CLOSEOUT_OUTCOMES="Shipped feature X|Fixed bug Y" \
CLOSEOUT_BLOCKERS="Waiting on API key" \
bash scripts/session-closeout.sh

What It Checks

  1. Repo hygiene — Scans for dirty git repos (uncommitted changes). Reports but never auto-commits.
  2. Task hygiene — Refreshes MASTER_TODO.md from project backlogs if scripts/build-master-todo.py exists. Skipped gracefully if not.
  3. Memory hygiene — Appends a timestamped closeout block to memory/YYYY-MM-DD.md with outcomes, blockers, and next-start items.
  4. Automation hygiene — Flags that cron/automation health should be manually verified.

Configuration

The script auto-detects the workspace root (defaults to $OPENCLAW_WORKSPACE or the current working directory). Key paths:

ItemDefaultOverride
-------------------------
Workspace root$OPENCLAW_WORKSPACE or cwdSet env var
Daily memory dir$ROOT/memory/
Master TODO$ROOT/MASTER_TODO.md
TODO builder$ROOT/scripts/build-master-todo.pySkip if missing

Output

The script prints structured key=value pairs. Report a concise summary to the user:

  • CLOSEOUT_STATUSok, warning, or error
  • DIRTY_REPO_COUNT — number of repos with uncommitted changes
  • MASTER_TODO_REFRESH — whether the task list was refreshed
  • EXCEPTION_COUNT — total issues found

If dirty repos are found, list them but do not auto-commit or discard. Let the user decide.

Customization

  • To add project-specific checks (e.g., pushing status to a dashboard), extend the script or add a scripts/closeout-hooks.sh that the main script sources if present.
  • Override closeout bullets via environment variables: CLOSEOUT_OUTCOMES, CLOSEOUT_BLOCKERS, CLOSEOUT_NEXT (pipe-delimited).

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 12:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,168 📥 941,010
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 868 📥 347,983
it-ops-security

Hybrid Gateway

jkfaris94
搭建并排查混合 OpenClaw 架构,其中网关运行在云 VPS 上,而本地机器(如 Mac Mini、台式机、树莓派等)充当...
★ 0 📥 420