Memdebug is a local tool that monitors AI agent memory stored in folders, git repositories, or platforms like Open WebUI and Mem0. It records memory changes in a tamper-evident ledger, detects unauthorized edits, and allows safe rollback of markdown memory without blocking attacks in real-time.