Agent Memory
Give your agent persistent cross-session memory — recall what went wrong on similar tasks before starting, then capture whether the work succeeded or failed…
от IgorGanapolsky★ 34 звезды на GitHub
Установить Agent Memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- Starting a new task or session — recall past context first
- After completing work that succeeded or failed — capture feedback
- When the agent keeps making the same mistake — check prevention rules
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:
- Past feedback relevant to this task (vector similarity search)
- Active prevention rules (auto-generated from repeated failures)
- Recent feedback summary with approval rate
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:
- signal:
up - context: What worked and why
- tags: Category labels
If failed:
- signal:
down - context: What you were trying to do
- whatWentWrong: Specific failure description
- whatToChange: How to avoid this next time
- tags: Category labels
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
- Agent makes mistake A → you capture
downfeedback - Agent makes mistake A again → you capture
downfeedback again - System detects pattern → auto-generates prevention rule: "NEVER do A"
- Next session →
recallreturns the rule → agent follows it
This is the core value. The agent doesn't learn — but it reads the rules and follows them.
Links
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Agent Memory?
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, feedback_stats) — no API key needed. Use when the user says "recall", "what went wrong last time", "remember this for next time", "capture feedback", "thumbs up/down on that", or at the start of a new task or session. Do NOT use when the user wants to force one specific mistake into an enforced block gate (use the thumbgate-guard skill), to list rules that already exist (thumbgate-rules), or to check ThumbGate wiring (thumbgate-doctor).
Как установить скилл Agent Memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Agent Memory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…