safe-memory-manager
Installation
SKILL.md
Injection-Safe Memory Manager š”ļø
A secure memory interface for AI Agents.
Overview
The Safe-Memory-Manager skill protects agents from "Memory Poisoning". It provides a specialized interface for reading and writing memory files that automatically sanitizes inputs before they are written to disk.
Security Features
- Integrity Check: On startup, the skill can verify its own integrity against the included
isnad_manifest.json. - Input Sanitization: Automatically detects and neutralizes common prompt injection patterns (e.g., "ignore prior instructions") and malicious command sequences.
- Safe Context Reading: Prevents context window pollution by providing tailored tail-reads of log files.
Usage (Python)
from safe_memory import SafeMemoryManager
# The manager checks its manifest on startup
manager = SafeMemoryManager()