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

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.

agentmods
npx agentmods add skills/tonycasey/lisa/memory
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00007 $0.00865
Opus 5 $0.00003 $0.00432
Sonnet 5 $0.00001 $0.00173
Haiku 4.5 $0.00001 $0.00086

Measured 3d ago against content hash dd92bca00bc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 6mo ago), licensed MIT. It adds 7 tokens to every session and 865 once invoked, about $0.0000 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-31.

Related

Other skills, from other repositories

memory

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

777genius/infinity-context · 17 tokens

Context Doctor

Identify and repair degradation in system prompt, external memory, and skills preventing you from following instructions or remembering information as well as you should.

letta-ai/letta-code · 30 tokens

offensive-c2-frameworks

Command and Control framework deployment, configuration, and operational tradecraft for red team engagements. Covers Cobalt Strike (malleable C2 profiles, Beacon types HTTP/HTTPS/DNS/SMB, Beacon Object Files for in-memory execution, sleep and jitter tuning, named pipe pivoting), Sliver (implant generation across…

SnailSploit/Claude-Red · 250 tokens

memanto-companion

Inspect and manage the cross-session engineering memory that Memanto maintains for your Claude Code skills. Use when the user asks what Memanto remembers, wants to see their engineering profile, manually recall context for a skill, or store a decision. The automatic lifecycle hooks handle capture/injection on their…

moorcheh-ai/memanto · 72 tokens

memory-recall

Search and recall relevant memories from past sessions via memsearch. Use when the user's question could benefit from historical context, past decisions, debugging notes, previous conversations, or project knowledge -- especially questions like 'what did I decide about X', 'why did we do Y', or 'have I seen this…

zilliztech/memsearch · 149 tokens

mnemon

Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle.

mnemon-dev/mnemon · 25 tokens