search

search is a command for Claude Code from jungjaehoon-lifegamez/MAMA. It costs 10 tokens per session (539 once invoked), scanned A, original, MIT.

A command for finding saved decisions and session checkpoints in MAMA, a long-term memory system for coding-agent work.

In plain words
What is it for?
Use it to list recent saved items or search for decisions and checkpoints by topic, with optional type and result limits.
Why use it?
It avoids searching through old conversations or files to recover why something was decided or what work remains.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to list recent saved items or search for decisions and checkpoints by topic, with optional type and result limits.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jungjaehoon-lifegamez/mama/search
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.

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.

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 search

README.md
[![agentmods](https://agentmods.dev/badge/commands/jungjaehoon-lifegamez/mama/search/github.svg)](https://agentmods.dev/commands/jungjaehoon-lifegamez/mama/search)
Your own site
<a href="https://agentmods.dev/commands/jungjaehoon-lifegamez/mama/search"><img src="https://agentmods.dev/badge/commands/jungjaehoon-lifegamez/mama/search/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 search

Your own site · 80×15
<a href="https://agentmods.dev/commands/jungjaehoon-lifegamez/mama/search"><img src="https://agentmods.dev/badge/commands/jungjaehoon-lifegamez/mama/search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 539 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.
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.00010 $0.00539
Opus 5 $0.00005 $0.00269
Sonnet 5 $0.00002 $0.00108
Haiku 4.5 $0.00001 $0.00054

Measured 11d ago against content hash 6549a4c37f7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

search 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 11d 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/commands/search.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Search MAMA Memory

You are helping the user search decisions and checkpoints from MAMA.

User Arguments: $ARGUMENTS

Instructions

  1. Parse the user's input:

    • query (optional): Search query for semantic search. If empty, list recent items.
    • --type=X (optional): Filter by type - 'all' (default), 'decision', 'checkpoint'
    • --limit=N (optional): Number of results (default: 10)
  2. Use the MCP tool:

    • Call mcp__plugin_mama_mama__search with parameters
    • With query: semantic search using embeddings
    • Without query: returns recent items sorted by time
  3. Format the response as markdown

Example Usage

/mama:search                              # List recent items
/mama:search auth                         # Semantic search for "auth"
/mama:search "database strategy"          # Semantic search
/mama:search --type=checkpoint            # List recent checkpoints only
/mama:search --type=decision --limit=20   # List 20 recent decisions

Response Format

With Query (Semantic Search)

# Search Results for "{query}"

Found {count} matches:

## 1. {topic} ({similarity}% match)

**Decision:** {decision}
**Reasoning:** {reasoning}
**Outcome:** {outcome} | **Confidence:** {confidence}%
**Created:** {timestamp}

---

**Tip:** Same topic = decision evolution (newer supersedes older)

Without Query (Recent Items)

# Recent Items

| Type       | Topic/Summary      | Time        |
| ---------- | ------------------ | ----------- |
| decision   | {topic}: {preview} | 3 hours ago |
| checkpoint | {summary preview}  | 1 day ago   |
| decision   | {topic}: {preview} | 2 days ago  |

---

Use `/mama:search <query>` for semantic search

Important Notes

  • Semantic search: Uses embeddings for meaning-based matching
  • Topic evolution: Same topic = new decision supersedes older (LLM infers from time order)
  • Cross-lingual: Works in Korean and English
  • Unified search: Searches both decisions and checkpoints

Read the full file on GitHub · 80 lines

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. 11d ago First seen · 80 lines · 10 tokens per session scan A 6549a4c37f7c

Subscribe to this mod's changes

search is a command published in the GitHub repository jungjaehoon-lifegamez/MAMA (13 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 539 once invoked, about $0.0001 per session on Opus 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.