Agent memory

From IgorGanapolsky/ThumbGate · View interactive version

Agent memory is an AI agent skill from the GitHub repository IgorGanapolsky/ThumbGate. Give your agent persistent cross-session memory — recall what went wrong on similar tasks before starting, then capture whether the work succeeded or failed so repeated mistakes auto-promote into prevention rules. Runs locally via the ThumbGate MCP server (recall, capture_feedback, prevention_rules,

How to use this skill

Skill file

Agent Memory

Give your agent persistent memory across sessions. Before starting any task, recall what went wrong last time. After completing work, capture whether it succeeded or failed. Prevention rules are auto-generated from repeated mistakes.

Setup

Add the MCP server (one-time):

claude mcp add thumbgate -- npx -y thumbgate serve

No API key needed. All data stays local.

When to Use

Workflow

Step 1: Recall past context (do this FIRST on every task)

Call the recall MCP tool with a description of your current task. The tool returns:

Read the prevention rules carefully. These are patterns that failed before — follow them.

Step 2: Do your work

Complete the task as normal. Keep track of what you did and whether it worked.

Step 3: Capture feedback

Call the capture_feedback MCP tool:

If succeeded:

If failed:

Vague feedback like "it failed" will be rejected. Be specific.

Step 4: Check improvement (optional)

Call the feedback_stats MCP tool to see approval rate, top failure domains, and whether the agent is trending better or worse.

Available MCP Tools

| Tool | What it does |

|------|-------------|

| recall | Search past feedback and prevention rules for current task |

| capture_feedback | Record what worked or failed with structured context |

| prevention_rules | View auto-generated rules from repeated mistakes |

| feedback_stats | Approval rate, trend analysis, top failure domains |

| feedback_summary | Human-readable summary of recent signals |

MCP Profiles

| Profile | Tools | Use case |

|---------|-------|----------|

| essential | 5 core tools | Default — start here |

| commerce | 6 tools + commerce_recall | Agentic commerce agents |

| default | 12 tools | Full pipeline including DPO export |

Set profile: THUMBGATE_MCP_PROFILE=essential npx thumbgate serve

How Prevention Rules Work

  1. Agent makes mistake A → you capture down feedback
  2. Agent makes mistake A again → you capture down feedback again
  3. System detects pattern → auto-generates prevention rule: "NEVER do A"
  4. Next session → recall returns the rule → agent follows it

This is the core value. The agent doesn't learn — but it reads the rules and follows them.

Links

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.