mama-context

mama-context is a skill for Claude Code from jungjaehoon-lifegamez/MAMA. It costs 23 tokens per session (446 once invoked), scanned A, original, MIT.

An always-on background context system that retrieves relevant past project decisions from MAMA memory when a user sends a message. MAMA is a memory system for storing and finding project context.

In plain words
What is it for?
Use it to surface historical context during coding work, including relevant decisions and rationale from earlier sessions.
Why use it?
It helps an agent recall earlier decisions without requiring you to repeat them or explicitly search for them each time.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_DATA} variable. Also seen: mentions .claude-plugin; mentions Claude Code.

Part of the mama plugin — 2 skills, 5 commands, 2 agents, 1 MCP server shipped together

Good fit Use it to surface historical context during coding work, including relevant decisions and rationale from earlier sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jungjaehoon-lifegamez/mama/mama-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jungjaehoon-lifegamez/MAMA --skill mama-context
Clone the repo
git clone --depth 1 https://github.com/jungjaehoon-lifegamez/MAMA

Made for: Claude Code.

Or install mama, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 2 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mama-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/jungjaehoon-lifegamez/mama/mama-context/github.svg)](https://agentmods.dev/skills/jungjaehoon-lifegamez/mama/mama-context)
Your own site
<a href="https://agentmods.dev/skills/jungjaehoon-lifegamez/mama/mama-context"><img src="https://agentmods.dev/badge/skills/jungjaehoon-lifegamez/mama/mama-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mama-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/jungjaehoon-lifegamez/mama/mama-context"><img src="https://agentmods.dev/badge/skills/jungjaehoon-lifegamez/mama/mama-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 35
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00446
Opus 5.5 $0.00009 $0.00178
Sonnet 5.5 $0.00005 $0.00089
Haiku 4.5 $0.00002 $0.00045

Measured 25d ago against content hash 91b432c646d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mama-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/claude-code-plugin/skills/mama-context/SKILL.md · 48 lines

What it actually says

MAMA Context

Overview

This skill documents the one hook the MAMA Claude Code plugin ships. The plugin manifest is the authority for which hooks run. At session start the agent sees the last checkpoint and the newest active decisions; everything else it pulls when it needs it, with /mama:search <topic> or the MCP search tool for the full decision, its reasoning, outcome and evolution chain.

Active hook

SessionStart Hook (scripts/sessionstart-hook.js)

  • Runs when a Claude Code session starts, resumes or is compacted.
  • Installs the plugin's npm dependencies into ${CLAUDE_PLUGIN_DATA} when they are missing or out of date (Claude Code does not install them).
  • Opens the local memory database and adds the last checkpoint and the five newest active decisions to the session's context. Replaced, retired and contradicted decisions, and records that only amend another, stay out, as recall leaves them out.
  • Loads no embedding model.
  • Manifest timeout: 180 seconds, for a first dependency install.

No tool or compaction hooks

The plugin registers no PreToolUse, PostToolUse or PreCompact hook (removed 2026-10-01):

  • A read hook blocked the first read of each code file to push decisions matched on the file name.
  • An edit hook pushed the same reminder after each first edit; recording decisions is in the project instructions.
  • A compaction hook's output is shown to the user only and never reaches the compaction.

Configuration boundary

Hook registration lives in packages/claude-code-plugin/.claude-plugin/plugin.json. Feature activation is controlled by src/core/hook-features.js. To stop the hook entirely, disable the plugin in Claude Code rather than relying on an undocumented configuration key.

Developer checks

pnpm --dir packages/claude-code-plugin vitest run tests/hooks/sessionstart-hook.test.js
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed · -38 lines 91b432c646d8
  2. 1mo ago Changed · -2 lines 097097452f20
  3. 1mo ago Changed · -152 lines · -5 tokens per session 37ab6b19fe24
  4. 1mo ago First seen · 240 lines · 28 tokens per session scan A 191d4010787a

Subscribe to this mod's changes

mama-context is a skill published in the GitHub repository jungjaehoon-lifegamez/MAMA (14 stars, last pushed 10d ago), licensed MIT. It adds 23 tokens to every session and 446 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

memai-maintenance

Orchestrator of the MemAI MAINTENANCE pass (long-term agent memory). Runs [[memai-checkpoints]], [[memai-distill]], [[memai-confidence]] and [[memai-link]] as one curation pass, owns what none of them covers — the DOMAIN TREE (nested paths, cross-listing, casing), the DIAGRAMS and the store's DECAY (reviewafter) — and…

Filipe-Soares-de-Almeida/MemAI · 184 tokens

memai-confidence

Verify a MemAI memory's claims against live facts and set its confidence (unverified | confirmed | contradicted). Checks the anchors a scan already extracted — file:line, symbol, table/column, domain, URL — against today's source, promotes or demotes each memory, stages a reword for a detail that drifted, and pushes…

Filipe-Soares-de-Almeida/MemAI · 155 tokens

memai-checkpoints

The lifecycle of MemAI CHECKPOINTS: deciding which bearing is still current and which one is superseded, archiving the checkpoint of work that is closed or an intra-session trail that a newer one already covers, keeping the single bearing a live effort still needs, correcting a fact in a kept checkpoint that has gone…

Filipe-Soares-de-Almeida/MemAI · 162 tokens

memai-distill

Distill and MOVE knowledge between MemAI types: pull what is durable out of one checkpoint (or several) into a note/reasoning/antipattern, change a memory's type (checkpoint→note when the content is timeless), and merge near-duplicates. Use when the user asks to "distill memory", "turn a checkpoint into a note", "move…

Filipe-Soares-de-Almeida/MemAI · 141 tokens

memai-link

Stitch the MemAI relations GRAPH: typed edges between memories (supersedes / relatesto / contradicts / linksto), turning [[wikilinks]] written in a body into real edges, connecting complementary memories that share a domain, and preserving lineage (checkpoint to note, archived to successor). Uses dedupscan to find…

Filipe-Soares-de-Almeida/MemAI · 176 tokens

memai-memory

How to use the MemAI MCP server (long-term agent memory: one ACID SQLite store, BM25 keyword search) — which tool family to call when: pulse/mustread/search/recall/listbydomain/listrecent/ listdomains/getmemory to read; note, reasoning, antipattern, checkpoint, task, diagram to write…

Filipe-Soares-de-Almeida/MemAI · 278 tokens