Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

bulletproof-memory-1-0-0防弹内存 1 0 0

Agent Skill

bulletproof-memory-1-0-0 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

15,104

周安装

617

GitHub Stars

公开资料未说明

下载量

4,837
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bulletproof-memory-1-0-0(防弹内存 1 0 0)
来源仓库:https://github.com/leowing/bulletproof-memory-1-0-0
安装命令:
openclaw skills install bulletproof-memory-1-0-0
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install bulletproof-memory-1-0-0

简介

通过预写日志协议为代理提供防弹内存机制,保障上下文不因重启或压缩丢失。

  • 适用于长会话、多步骤任务或对连续性要求高的智能体应用场景。
  • 自动记录操作日志至 SESSION-STATE.md,支持状态恢复与历史回溯。
  • 涉及频繁磁盘写入,需确认宿主文件系统权限及存储空间充足性。
  • 建议在关键任务前测试日志完整性,避免异常中断导致数据损坏。

SKILL.md

name
bulletproof-memory
version
1.0.0
description
Never lose context again. The Write-Ahead Log (WAL) protocol with SESSION-STATE.md gives your agent bulletproof memory that survives compaction, restarts, and distractions. Part of the Hal Stack 🦞
author
halthelobster

Bulletproof Memory 🦞

By Hal Labs — Part of the Hal Stack

Your agent forgets things. Mid-conversation, after compaction, between sessions — context vanishes. This skill fixes that permanently.

The Problem

Agents lose context in three ways:

  1. Compaction — old messages get summarized/dropped
  2. Session restart — agent wakes up fresh
  3. Distraction — mid-conversation, agent forgets earlier details

Traditional fix: "Remember to save important things."

But agents forget to remember.

The Solution: Write-Ahead Log (WAL) Protocol

The key insight: trigger writes on USER INPUT, not agent memory.

When the user provides a concrete detail, the agent writes it down BEFORE responding. The agent doesn't have to "remember" to save — the rule fires automatically based on what the user says.

Old ApproachWAL Approach
"Remember to save important things""If user gives detail → write before responding"
Triggered by agent memory (unreliable)Triggered by user INPUT (reliable)
Agent forgets to rememberRule fires automatically
Saves after the fact (too late)Saves before responding (never too late)

Quick Setup

1. Create SESSION-STATE.md

This is your agent's "hot RAM" — the active working memory that persists across compactions.

Create SESSION-STATE.md in your workspace root:

# SESSION-STATE.md — Active Working Memory

This file is the agent's "RAM" — the hot transaction log for the current active task.
Chat history is a BUFFER. This file is STORAGE.

---

## Current Task
[What we're actively working on right now]

## Immediate Context
[Key details, decisions, corrections from this session]

## Key Files
[Paths to relevant files for this task]

## Last Updated
[Timestamp]

2. Add WAL Protocol to AGENTS.md

Add this to your agent's instructions:

### WRITE-AHEAD LOG (WAL) PROTOCOL

**The Law:** You are a stateful operator. Chat history is a BUFFER, not storage.
`SESSION-STATE.md` is your "RAM" — the ONLY place specific details are safe.

**Trigger:** If the user provides a concrete detail (name, location, correction, decision):
1. You MUST update `SESSION-STATE.md` IMMEDIATELY
2. You MUST write to the file BEFORE you generate your response
3. Only THEN respond to the user

**Example:** User says "It's Doboce Park, not Duboce Triangle"
- WRONG: Acknowledge, keep chatting, maybe write later
- RIGHT: Update SESSION-STATE.md first, then respond

**Why this works:** The trigger is the user's INPUT, not your memory. You don't have 
to remember to check — the rule fires on what the user says.

3. Add Recovery Protocol

When context is lost, don't ask "what were we doing?" — recover it yourself:

### Compaction Recovery Protocol

**Auto-trigger when:**
- Session starts with `<summary>` tag
- Message contains "truncated", "context limits", "Summary unavailable"
- User says "where were we?", "continue", "what were we doing?"
- You should know something but don't

**Recovery steps:**
1. **FIRST:** Read `SESSION-STATE.md` — this has the active task state
2. Read today's + yesterday's daily notes
3. If still missing context, use `memory_search`
4. Present: "Recovered from SESSION-STATE.md. Last task was X. Continue?"

**Do NOT ask "what were we discussing?" if SESSION-STATE.md has the answer.**

4. Add Session Startup Sequence

## Every Session
Before doing anything else:
1. Read `SESSION-STATE.md` — your active working memory (FIRST PRIORITY)
2. Read your identity files (SOUL.md, USER.md, etc.)
3. Read `memory/YYYY-MM-DD.md` (today + yesterday) for recent context

Don't ask permission. Just do it.

5. Add Memory Flush Protocol

Monitor context and flush before you lose it:

### Memory Flush Protocol

Monitor your context usage with `session_status`. Flush important context before compaction:

| Context % | Action |
|-----------|--------|
| < 50% | Normal operation |
| 50-70% | Write key points after substantial exchanges |
| 70-85% | Active flushing — write everything important NOW |
| > 85% | Emergency flush — full summary before next response |

**At >60%:** Update SESSION-STATE.md before every reply
**At >80%:** Write comprehensive handoff to daily notes

**What to flush:**
- Decisions made (what was decided and why)
- Action items (who's doing what)
- Open threads (anything unfinished)
- Corrections (things the user clarified)

Why This Works

The Trigger Insight

Most memory advice fails because it relies on the agent remembering to do something. But forgetting is the problem we're trying to solve!

The WAL protocol succeeds because:

  • Trigger = user input (external, reliable)
  • Not trigger = agent memory (internal, unreliable)

When the user says something concrete, the protocol fires. The agent doesn't need to remember anything — the rule activates based on what comes in.

The SESSION-STATE.md Insight

Daily notes are great for logging what happened. But they're not structured for "what am I doing RIGHT NOW?"

SESSION-STATE.md is:

  • Hot — the current active task, not history
  • Structured — current task, context, key files
  • First priority — read before anything else on startup

It's the difference between a journal and a sticky note on your monitor.

Pre-Compaction Checklist

Before a long session ends or context gets critical:

  • [ ] Current task documented in SESSION-STATE.md?
  • [ ] Key decisions captured?
  • [ ] Action items noted?
  • [ ] User corrections saved?
  • [ ] Could future-me continue from SESSION-STATE.md alone?

Self-Summarization Prompt

When context hits 85%+, ask yourself:

"If my context resets right now, what does future-me absolutely need to know to continue this task? Write it for someone with zero context."

This produces better summaries than mechanical extraction.

The Complete Memory Stack

For comprehensive agent memory, combine this with:

SkillPurpose
Bulletproof Memory (this)Never lose active context
PARA Second BrainOrganize long-term knowledge
Proactive AgentAct without being asked

Together, they create an agent that remembers everything, finds anything, and anticipates needs.

Example SESSION-STATE.md

Here's a real example of what this looks like in practice:

# SESSION-STATE.md — Active Working Memory

## Current Task
Building dashboard for Jordan — Life OS view with goal tracking

## Immediate Context
- Dashboard deployed to: https://halthelobster.github.io/hal-ops-dashboard/
- Added tabs: Operations + Life OS
- Jordan at Moontricks concert @ The Independent tonight
- Correction: It's "Shovelman" (one word), not "Shovel Man"

## Key Files
- Dashboard HTML: /Users/Hal/clawd/dashboard/index.html
- Life OS data: /Users/Hal/clawd/dashboard/life-os.json
- Social events log: notes/areas/social-events.md

## Last Updated
2026-01-29 11:00 PM PST

Principles

  1. Write before responding — The WAL protocol is non-negotiable
  2. Trigger on input — User input fires the rule, not agent memory
  3. SESSION-STATE.md is first — Always read it first on startup
  4. Flush early, flush often — Don't wait for 85% context
  5. Structure for retrieval — Future-you needs to continue, not just read

*Part of the Hal Stack 🦞*

*Pairs well with PARA Second Brain for knowledge organization and Proactive Agent for behavioral patterns.*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

70.38%
按下载量换算3,404

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills