Memory Guard
Skill by cassh100k
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cassh100k/memory-guardWhat This Skill Does
Memory Guard by cassh100k is a critical security layer for OpenClaw agents designed to enforce memory integrity. It acts as a defensive perimeter for an agent's core identity files, specifically targeting MEMORY.md, HEARTBEAT.md, and SOUL.md. By utilizing SHA-256 hashing, the tool maintains a cryptographically signed registry of your files within a hidden directory. When executed, Memory Guard detects unauthorized modifications, injection attacks, and personality drift that could compromise an agent's decision-making capabilities. It also tracks provenance, ensuring that every memory entry contains a structured header detailing the agent, timestamp, confidence level, and rationale. By implementing a Three-Log pattern (actions.log, rejections.log, and handoffs.log), it provides a transparent audit trail of every interaction and modification event, moving the agent from a state of blind trust in its workspace to one of verified, cryptographic certainty.
Installation
To install Memory Guard, ensure you have the OpenClaw environment initialized. The most efficient method is using the clawhub registry. Run the following command in your terminal:
clawhub install openclaw/skills/skills/cassh100k/memory-guard
Alternatively, for manual installation, download the source code from the repository and place the memory-guard/ directory directly into your designated skills/ folder. Ensure your environment has read/write permissions for the workspace root to allow the script to generate the .memory-guard directory and update the hash registry.
Use Cases
- High-Stakes Agent Operations: Ideal for agents managing long-running tasks where memory state persistence is vital. Memory Guard prevents external processes or buggy scripts from overwriting core identity files.
- Multi-Agent Environments: In scenarios where multiple agents share a workspace, Memory Guard prevents cross-agent contamination by flagging any file changes not authorized by the provenance stamps.
- Compliance & Audit Logging: Useful for developers who need to demonstrate how their agent's memory has evolved over time, providing a verifiable record of why specific memory entries were created.
Example Prompts
- "Memory Guard, perform a full audit of my workspace and generate a report on all file changes since yesterday."
- "Memory Guard, please verify the integrity of SOUL.md and IDENTITY.md to ensure no unauthorized drift has occurred."
- "Memory Guard, stamp the latest entry in MEMORY.md with a confidence level of 0.9 and add it to the provenance registry."
Tips & Limitations
- Continuous Monitoring: For maximum protection, configure
memory-guard watchto run as a persistent background process or incorporate it into your HEARTBEAT.md cycle. - Git Integration: Memory Guard works best when your workspace is a Git repository; it leverages git-log to attribute changes to specific commit authors.
- Limitations: Memory Guard is a reactive integrity monitor; it protects against unauthorized changes but cannot prevent a compromised agent from intentionally modifying its own files if the agent is already acting maliciously. Always pair with robust authentication protocols.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cassh100k-memory-guard": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
compound-mind
Experience distillation engine that turns raw daily memory logs into compounding intelligence. Extracts patterns, generates briefings, tracks growth metrics, and builds a searchable experience index. Agents get permanently smarter - each interaction compounds into wisdom. Use when you want agents that learn from their history instead of starting fresh every session.
agent-dna
Portable agent identity encoding. Compress SOUL.md/MEMORY.md into transferable DNA fingerprints, detect identity drift between snapshots, and port personality across platforms (OpenClaw, Claude, GPT, CrewAI). Pure Python, zero dependencies. Use when migrating agents between platforms, detecting personality drift, or backing up agent identity.
Nix Memory
Skill by cassh100k
polymarket-whale-copier
Copy trade winning Polymarket wallets automatically. Track whale wallets, mirror their bets at configurable percentages, with built-in risk management. No API keys needed.
image-nuke
Nuclear-grade image metadata cleanser. Strip ALL EXIF/GPS/camera data, re-encode with noise injection. Forensically untraceable, reverse image search resistant.