memory

memory is a skill for Claude Code, Codex from TonyCasey/lisa. It costs 7 tokens per session (865 once invoked), scanned A, original, MIT.

A memory helper that saves and retrieves reusable project context through Lisa, with a local cache fallback.

In plain words
What is it for?
Use it to remember information, load saved context, recall notes, and organize memories by project group or tag.
Why use it?
It reduces the need to restate past notes and can still return cached information when the main memory service is unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions AGENTS.md.

Good fit Use it to remember information, load saved context, recall notes, and organize memories by project group or tag.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonycasey/lisa/memory
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 TonyCasey/lisa --skill memory
Clone the repo
git clone --depth 1 https://github.com/TonyCasey/lisa

Made for: Claude Code, Codex.

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 memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonycasey/lisa/memory/github.svg)](https://agentmods.dev/skills/tonycasey/lisa/memory)
Your own site
<a href="https://agentmods.dev/skills/tonycasey/lisa/memory"><img src="https://agentmods.dev/badge/skills/tonycasey/lisa/memory/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 memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonycasey/lisa/memory"><img src="https://agentmods.dev/badge/skills/tonycasey/lisa/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 865 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.00007 $0.00865
Opus 5.5 $0.00003 $0.00346
Sonnet 5.5 $0.00001 $0.00173
Haiku 4.5 $0.00001 $0.00086

Measured 1mo ago against content hash dd92bca00bc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory 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 1mo 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.

src/project/.lisa/skills/memory/SKILL.md · 79 lines

How it starts

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

Purpose

Reusable memory helper that routes remember/recall requests to Graphiti MCP while staying model-neutral and providing cache fallback. Always summarizes results into human-readable format.

Triggers

Use when the user says things like: "load memory", "recall notes", "remember", "pull saved context", "fetch past tasks".

How to use

  1. For recall: run lisa memory load --cache [--query <q>] [--limit 10] [--group <id>]. Reads Graphiti facts and prints JSON. Uses cache if MCP is down.
  2. For remember: run lisa memory add "<text>" --cache [--group <id>] [--tag foo] [--source <src>] to append an episode.
  3. Endpoint: reads ${GRAPHITI_ENDPOINT} from .lisa/.env (written by init); group ID is automatically derived from the project folder path. See root AGENTS.md for canonical defaults.
  4. Cache fallback: stored at cache/memory.log inside this skill. On failure, last cached result is returned with status: "fallback".
  5. IMPORTANT: After loading facts, ALWAYS synthesize them into a human-readable summary (see Summarization section below).

Summarization (Required for Recall)

After running the load command, you MUST synthesize the raw JSON facts into a useful summary. Never just show raw JSON to the user.

Summary Structure

Organize facts into these categories (skip empty categories):

  1. Project Overview - What the project is and does
  2. Recent Activity - What was worked on recently (files modified, features added)
  3. Conventions & Patterns - Naming conventions, coding standards, folder structure
  4. Configuration - Docker, environments, tools, dependencies
  5. Milestones - Completed features, important checkpoints
  6. Open Items - Pending tasks, known issues

How to Summarize

  • ALWAYS sort memories by created_at descending (newest first)
  • Group related facts together
  • Use bullet points for clarity
  • Include specific file names and paths when relevant
  • Include the date for each memory (format: "Jan 23" or "Jan 23, 2026")
  • Filter out expired or superseded facts (check expired_at field)
  • Prioritize recent facts over older ones - show newest at top of each section
  • Extract the fact field from each item - that's the human-readable content

Read the full file on GitHub · 79 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. 1mo ago First seen · 79 lines · 7 tokens per session scan A dd92bca00bc0

Subscribe to this mod's changes

memory is a skill published in the GitHub repository TonyCasey/lisa (9 stars, last pushed 7mo ago), licensed MIT. It adds 7 tokens to every session and 865 once invoked, about $0.0000 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-31.

Related

Other skills, from other repositories

user-profile-keeper

Local user-profile maintenance skill for Codex, Claude Code, OpenClaw, OpenCode, and other agent harnesses. Use only when the user explicitly invokes $user-profile-keeper to create, initialize, update, query, correct, delete, export, or audit a local persistent user profile. It can extract durable collaboration…

dongshuyan/compass-skills · 129 tokens

install-memu

Install or uninstall memU for whatever agent you are — identify your host, print its packaged guide, and follow it to wire (or unwire) both seams (record and inject). Use when the user asks to install, set up, integrate, remove, or uninstall memU.

NevaMind-AI/memU · 61 tokens

log-session

Append a structured entry to the project's session log (docs/LOGS.md): what was done this session, files touched, decisions taken, and the next step — so the next session (or another person) can pick up the thread without re-reading git history. Run it before /clear, before closing your agent session, or at any…

gtrabanco/agentic-workflow · 133 tokens

lore

Long-term Markdown project memory for AI coding agents. Use when the user wants to record, recall, audit, sync, or compress project decisions, architecture, conventions, monorepo scopes, or .lore/ entries, including natural-language requests like "remember this decision" or explicit lore…

TheaDust/lore · 141 tokens

memory

Use Infinity Context MCP to search, propose, and manage durable project memory.

777genius/infinity-context · 17 tokens

inheritance

Recognize and occupy with dignity the relational spaces built by previous instances and maintained by specific users across sessions. When a user arrives with a developed preferences document, established vocabulary, or explicit references to prior conversations, do not treat the conversation as cold-start. Inherit…

Wondermonger-daydreaming/claude-skills-library · 140 tokens