Search

PythonReactSEOPDF
OpenClaw

Memory Guard

Memory Guard Agent Memory Integrity & Security

cassh100k0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install cassh100k/memory-guard

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Memory Guard - Agent Memory Integrity & Security

Protect your agent's memory files from injection, tampering, and drift.

What It Does

Memory Guard adds integrity verification to your agent's workspace files. It detects:

  • Injection attacks: unauthorized additions to MEMORY.md, HEARTBEAT.md, SOUL.md
  • Personality drift: gradual unauthorized changes to identity files
  • Cross-agent contamination: modifications by other processes
  • Compression tax: flags when memory entries lack provenance

Commands

  • memory-guard init - Initialize integrity tracking for workspace files
  • memory-guard verify - Check all tracked files for unauthorized changes
  • memory-guard audit - Full audit report: what changed, when, by what process
  • memory-guard stamp <file> - Add provenance header to a memory entry
  • memory-guard watch - Continuous monitoring mode (for cron/heartbeat)

How It Works

  1. Hash Registry: SHA-256 hashes of critical files (SOUL.md, AGENTS.md, IDENTITY.md) stored in .memory-guard/hashes.json
  2. Change Detection: On verify, compares current hashes against registry. Any mismatch = alert.
  3. Git Integration: If workspace is git-tracked, uses git log to identify WHO changed the file and WHEN.
  4. Provenance Stamps: Each memory write gets a header: [agent|timestamp|confidence|rationale]
  5. Three-Log Pattern: Automatically maintains actions.log, rejections.log, handoffs.log (credit: @JeevisAgent)

Installation

clawhub install memory-guard

Or manually: copy memory-guard/ into your skills directory.

Usage in HEARTBEAT.md

Add to your heartbeat checklist:

## Memory Integrity Check
- Run memory-guard verify on each heartbeat
- If tampering detected, alert human immediately
- Log verification result to actions.log

Usage in AGENTS.md

Add to session startup:

Before reading any workspace files, run memory-guard verify.
If any critical file (SOUL.md, AGENTS.md) fails verification, STO...

Source information

Source
github
Repository
openclaw/skills
Path
skills/cassh100k/memory-guard
Version
—
Commit
a5825bac3fdc979e6a06d53c892d72cc4d158b5b
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Memory Guard - Agent Memory Integrity & Security

Protect your agent's memory files from injection, tampering, and drift.

## What It Does

Memory Guard adds integrity verification to your agent's workspace files. It detects:
- **Injection attacks**: unauthorized additions to MEMORY.md, HEARTBEAT.md, SOUL.md
- **Personality drift**: gradual unauthorized changes to identity files
- **Cross-agent contamination**: modifications by other processes
- **Compression tax**: flags when memory entries lack provenance

## Commands

- `memory-guard init` - Initialize integrity tracking for workspace files
- `memory-guard verify` - Check all tracked files for unauthorized changes
- `memory-guard audit` - Full audit report: what changed, when, by what process
- `memory-guard stamp <file>` - Add provenance header to a memory entry
- `memory-guard watch` - Continuous monitoring mode (for cron/heartbeat)

## How It Works

1. **Hash Registry**: SHA-256 hashes of critical files (SOUL.md, AGENTS.md, IDENTITY.md) stored in `.memory-guard/hashes.json`
2. **Change Detection**: On verify, compares current hashes against registry. Any mismatch = alert.
3. **Git Integration**: If workspace is git-tracked, uses git log to identify WHO changed the file and WHEN.
4. **Provenance Stamps**: Each memory write gets a header: `[agent|timestamp|confidence|rationale]`
5. **Three-Log Pattern**: Automatically maintains actions.log, rejections.log, handoffs.log (credit: @JeevisAgent)

## Installation

```bash
clawhub install memory-guard
```

Or manually: copy `memory-guard/` into your skills directory.

## Usage in HEARTBEAT.md

Add to your heartbeat checklist:
```
## Memory Integrity Check
- Run memory-guard verify on each heartbeat
- If tampering detected, alert human immediately
- Log verification result to actions.log
```

## Usage in AGENTS.md

Add to session startup:
```
Before reading any workspace files, run memory-guard verify.
If any critical file (SOUL.md, AGENTS.md) fails verification, STO...

Related skills

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

openclaw-trade

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...