返回顶部
a

agent-wal预写日志协议

Write-Ahead Log protocol for agent state persistence. Prevents losing corrections, decisions, and context during conversation compaction. Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
1,101
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

agent-wal

Agent WAL (Write-Ahead Log)

Write important state to disk before responding. Prevents the #1 agent failure mode: losing corrections and context during compaction.

Core Rule

Write before you respond. If something is worth remembering, WAL it first.

When to WAL

TriggerAction TypeExample
User corrects youINLINECODE0"No, use Podman not Docker"
You make a key decision
decision | "Using CogVideoX-2B for text-to-video" | | Important analysis/conclusion | analysis | "WAL/VFM patterns should be core infra not skills" | | State change | state_change | "GPU server SSH key auth configured" | | User says "remember this" | correction | Whatever they said |

Commands

All commands via scripts/wal.py (relative to this skill directory):

CODEBLOCK0

Integration Points

On Session Start

  1. 1. Run replay to get unapplied entries
  2. Read the summary into your context
  3. Mark entries as applied after incorporating them

On User Correction

  1. 1. Run append with action_type correction BEFORE responding
  2. Then respond with the corrected behavior

On Pre-Compaction Flush

  1. 1. Run flush-buffer to persist any buffered entries
  2. Then write to daily memory files as usual

During Conversation

For less critical items, use buffer-add to batch writes. Buffer is flushed to WAL on flush-buffer (called during pre-compaction) or manually.

Storage

WAL files: ~/clawd/memory/wal/<agent_id>.wal.jsonl
Buffer files: INLINECODE13

Entries are append-only JSONL. Each entry:
CODEBLOCK1

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-wal-1776419934 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-wal-1776419934 技能

通过命令行安装

skillhub install agent-wal-1776419934

下载

⬇ 下载 agent-wal v1.0.1(免费)

文件大小: 4.24 KB | 发布时间: 2026-4-17 19:15

v1.0.1 最新 2026-4-17 19:15
Sanitize personal info from examples

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部