Agent Memory
Skill27 starsChanged 8 months agoMITView on GitHub
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).
In this repository68 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .well-known/llms.txtllms.txt
- article-syndication-pipelineSkill
- autonomous-execution-mandateSkill
- aws-strands-harness-not-cloneSkill
- ci-gha-buildkite-patterns-not-cloneSkill
- cobble-hot-store-compare-not-cloneSkill
- colab-compute-honesty-not-cloneSkill
- comet-session-loggerSkill
- cyberstrike-compare-not-cloneSkill
- datadog-llm-obs-compare-not-cloneSkill
- deeppattern-discipline-honesty-not-cloneSkill
- gitlab-sandbox-allowlist-not-trustSkill
- graphifySkill
- halo-trace-optimize-not-cloneSkill
- ideabrowser-connectorSkill
- infoq-architect-honesty-not-cloneSkill
- jit-harness-compare-not-cloneSkill
- meko-datapack-honesty-not-cloneSkill
- mintlify-knowledge-honesty-not-cloneSkill
- model-distress-governanceSkill
- nvidia-specdecode-al-doctorSkill
- openui-catalog-compose-honestySkill
- package-manager-honesty-doctorSkill
- salt-code-policy-honesty-not-cloneSkill
- show-meSkill
- skool-headless-readerSkill
- tailscale-p2p-governance-not-cloneSkill
- thumbgate-board-loopSkill
- thumbgate-daily-discoveriesSkill
- thumbgateSkill
- token-shunt-honesty-not-cloneSkill
- typesafe-typed-questions-not-cloneSkill
- zvec-grep-compare-not-cloneSkill
- ci-failure-triageSkill
- evidence-first-answerSkill
- fleet-coordinationSkill
- revenue-truthSkill
- scope-disciplineSkill
- task-state-ledgerSkill
- thumbgateSkill
- thumbgateSkill
- agent-architect-kitSkill
- applyops-deploySkill
- article-syndication-pipelineSkill
- aws-strands-harness-not-cloneSkill
- bluesky-engagementSkill
- comet-session-loggerSkill
- configure-analyticsSkill
- context-engineering-checklistSkill
- gsd-ralph-context-loopSkill
- meko-datapack-honesty-not-cloneSkill
- mintlify-knowledge-honesty-not-cloneSkill
- model-distress-governanceSkill
- pull-funnel-dataSkill
- salt-code-policy-honesty-not-cloneSkill
- solve-architecture-autonomySkill
- thumbgate-blockedSkill
- ThumbGate Brand VoiceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Add the MCP server (one-time):
- Distinctive: line 18
No API key needed. All data stays local.
- Distinctive: line 23
After completing work that succeeded or failed — capture feedback
- Distinctive: line 24
When the agent keeps making the same mistake — check prevention rules
- Very specific: line 30
Call the recall MCP tool with a description of your current task.
- Distinctive: line 36
Read the prevention rules carefully.
- Very specific: line 44
Call the capture_feedback MCP tool:
- Very specific: line 62
Call the feedback_stats MCP tool to see approval rate, top failure domains, and whether the agent is trending better or worse.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 serveNo 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

