AI coding agents forget everything between sessions. MCP Memory Gateway fixes this with Pre-Action Gates — PreToolUse hooks that block known-bad tool calls before they execute.
Give feedback during sessions. After 3 identical failures, an auto-prevention rule is created. After 5, a blocking gate that cannot be bypassed. Relevant history is injected at session start.
Built-in gates block force-pushes, .env edits, and more. Works with Claude Code, Codex, Gemini, Amp, Cursor. Free + MIT licensed.