hooks

hooks

3.7 hooks - 钩子自动化 hooks 提供事件驱动的自动化能力,响应命令和生命周期事件。这里是你的"自动化流水线":

{ “hooks”: { “internal”: { “enabled”: true, “entries”: { “boot-md”: {“enabled”: true}, “command-logger”: {“enabled”: true}, “session-memory”: {“enabled”: true} } } } } 内置钩子说明:

boot-md

  • Gateway 启动时执行 BOOT.md 指令(开机自启脚本) command-logger
  • 记录所有命令到审计日志(留痕,懂的都懂) session-memory
  • /new 命令时保存会话上下文(记忆保鲜)

钩子管理命令

openclaw hooks list openclaw hooks enable session-memory openclaw hooks disable command-logger hooks.internal.enabled 枚举值详解:

枚举值 说明 true 启用内部钩子系统 false 禁用所有内部钩子