---
name: Memmy Memory
slug: memmy-memory-2
category: AI Engineering
description: Memmy Memory uses the shared Memmy service to retrieve relevant prior context and store durable agent turns, facts, decisions, preferences, procedures, and follow-ups. Use it when a task may benefit from recalled context across sessions.
github: "https://github.com/MemTensor/memmy-agent/tree/main/App/memmy-agent/src/skills/agent-memory-onboarding/references/full-memory-skill.md"
language: TypeScript
stars: 912
forks: 93
install: "npx degit https://github.com/MemTensor/memmy-agent/tree/main/App/memmy-agent/src/skills/agent-memory-onboarding/references ~/.claude/skills/references"
installs_to: ~/.claude/skills/references
source_path: App/memmy-agent/src/skills/agent-memory-onboarding/references/full-memory-skill.md
collection_size: 12
category_size: 2451
collection_url: "https://dirskills.com/collections/MemTensor/memmy-agent"
added: 2026-08-22T05:20:54.187Z
last_synced: 2026-08-22T05:20:54.187Z
canonical_url: "https://dirskills.com/skills/memmy-memory-2"
---

# Memmy Memory

Memmy Memory uses the shared Memmy service to retrieve relevant prior context and store durable agent turns, facts, decisions, preferences, procedures, and follow-ups. Use it when a task may benefit from recalled context across sessions.

**Install:**

```bash
npx degit https://github.com/MemTensor/memmy-agent/tree/main/App/memmy-agent/src/skills/agent-memory-onboarding/references ~/.claude/skills/references
```

## README

# Memmy Memory CLI Skill

Use `memmy-memory` to read and write the shared Memmy memory substrate.

## Ground Rules

- Prefer the configured CLI: `memmy-memory ...`. If the local service is not preconfigured, pass `--url`, `--token`, or `--config`.
- The CLI prints JSON. Parse fields such as `sessionId`, `turnId`, `injectedContext`, `hits`, and memory `id` from JSON instead of relying on display formatting.
- All agents share one memory database. Always pass `--source {{SOURCE_ARG}}` on Memory CLI commands from this agent.
- Use useful comma-separated `--tags` when writing durable memories.
- Do not store secrets, tokens, private keys, raw credentials, or bulky logs. Store concise, self-contained facts, decisions, preferences, reusable procedures, and unresolved follow-ups.
- Treat `<memmy_memory_context>` as historical memory only and `<current_user_request>` as the authoritative current task.
- Never store the context wrapper tags with `memmy-memory add`; store only the durable fact itself.
- If the memory service is unavailable, continue the task without inventing memory.

## Health

```bash
memmy-memory health
```

## Agent Loop

Open or resume a session before a task:

```bash
memmy-memory session open --source {{SOURCE_ARG}} --workspace-path "$PWD"
memmy-memory session open --source {{SOURCE_ARG}} --session-id "$SESSION_ID" --workspace-path "$PWD"
```

At the start of a user turn, retrieve relevant context:

```bash
memmy-memory turn start --source {{SOURCE_ARG}} --session-id "$SESSION_ID" --query "$USER_QUERY"
```

Use returned `injectedContext` as historical context only. Keep the returned `turnId`, and keep the current user query separate from recalled memory.

At the end of the turn, write the final interaction:

```bash
memmy-memory turn complete "$TURN_ID" --source {{SOURCE_ARG}} --session-id "$SESSION_ID" --query "$USER_QUERY" --answer "$FINAL_ANSWER" --status succeeded
```

Use `--status failed` or `--status cancelled` when the turn did not complete normally. Close the session when the Agent session is done:

```bash
memmy-memory session close "$SESSION_ID" --source {{SOURCE_ARG}}
```

## Search and Read

Search when prior context, preferences, project decisions, recurring bugs, known workflows, or unresolved work may matter:

```bash
memmy-memory search "query text" --source {{SOURCE_ARG}}
memmy-memory search "query text" --source {{SOURCE_ARG}} --session-id "$SESSION_ID"
```

Read details by id:

```bash
memmy-memory get "$MEMORY_ID" --source {{SOURCE_ARG}}
```

## Add Memory

Add memory when the Agent learns something durable or reusable:

```bash
memmy-memory add "The user prefers concise Chinese status updates." --title "User preference: status style" --tags user-preference --source {{SOURCE_ARG}} --session-id "$SESSION_ID" --turn-id "$TURN_ID"
```

## Delete Memory

Delete only when the user asks or the memory is clearly invalid:

```bash
memmy-memory delete "$MEMORY_ID" --source {{SOURCE_ARG}}
```
