memory

memory is a skill for Claude Code, Codex from aitytech/agentkits-memory. It costs 35 tokens per session (547 once invoked), scanned A, a copy of memory-workflow, MIT.

A memory-search skill for AI coding assistants. It uses a three-layer process: a quick index, the surrounding timeline, and the complete stored record.

In plain words
What is it for?
It is used to recall past work, architectural decisions, project conventions, earlier errors, and their solutions.
Why use it?
It helps find reliable project history when the current conversation does not contain the needed context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is used to recall past work, architectural decisions, project conventions, earlier errors, and their solutions.

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

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/aitytech/agentkits-memory/memory/github.svg)](https://agentmods.dev/skills/aitytech/agentkits-memory/memory)
Your own site
<a href="https://agentmods.dev/skills/aitytech/agentkits-memory/memory"><img src="https://agentmods.dev/badge/skills/aitytech/agentkits-memory/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/aitytech/agentkits-memory/memory"><img src="https://agentmods.dev/badge/skills/aitytech/agentkits-memory/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 547 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 91% copy Near-identical to another mod 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.00035 $0.00547
Opus 5.5 $0.00014 $0.00219
Sonnet 5.5 $0.00007 $0.00109
Haiku 4.5 $0.00003 $0.00055

Measured 3mo ago against content hash 75d990ecb35b, 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 3mo 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.

Origin

This is a copy

91% identical to memory-workflow — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/memory/SKILL.md · 68 lines

How it starts

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

AgentKits Memory Skill

When to Activate

Use this skill when:

  • User asks about past work, previous sessions, or what was done before
  • User references a decision, pattern, or error you don't have context for
  • You need project history, conventions, or architectural decisions
  • User asks "what did we do about X?" or "how did we handle Y?"
  • You're missing context that should exist from earlier sessions
  • Starting work on a feature that may have prior decisions recorded

Prerequisites

Before searching, check if memories exist:

memory_status()

If the database is empty, skip recall and inform the user.

3-Layer Search Workflow

Layer 1: Search Index (lightweight, ~50 tokens/result)

memory_search(query="your search term")
  • Returns IDs, titles, categories, dates, and relevance scores
  • Filter by category: decision, pattern, error, context, observation
  • Filter by date: dateStart="2025-01-01", dateEnd="2025-12-31"
  • Sort: orderBy="relevance" (default), "date_asc", "date_desc"

Layer 2: Timeline Context (understand what happened around a result)

memory_timeline(anchor="MEMORY_ID")
  • Shows what happened before/after a specific memory
  • Helps understand the sequence of events
  • Use when you need temporal context

Layer 3: Full Details (only for filtered IDs)

memory_details(ids=["ID1", "ID2"])
  • Returns complete content for selected memories
  • Limit to 3-5 IDs at a time to conserve tokens
  • NEVER fetch details without filtering through Layer 1 first

Quick Topic Recall

For a fast overview of everything known about a topic:

memory_recall(topic="authentication")

This returns a grouped summary. Follow up with memory_details for specifics.

Token Efficiency Rules

  1. ALWAYS start with memory_search (Layer 1), never jump to memory_details
  2. Review search results and select only relevant IDs before fetching details
  3. Use filters (category, date range) to narrow results
  4. Limit memory_details to 3-5 IDs per call
  5. This workflow saves ~87% tokens vs fetching everything at once

Read the full file on GitHub · 68 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. 3mo ago First seen · 68 lines · 35 tokens per session scan A 75d990ecb35b

Subscribe to this mod's changes

memory is a skill published in the GitHub repository aitytech/agentkits-memory (3 stars, last pushed 9mo ago), licensed MIT. It adds 35 tokens to every session and 547 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to memory-workflow, differing in 14 lines, and is treated as a copy.

Related

memory compared with skills from other repositories

memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memoryaitytech/agentkits-memorySkill39mo agoMITA35Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill396ktodayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70ktodayApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A0Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k16d agoMITA184Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
memoryopensquilla/opensquillaSkill7.2k9d agoApache-2.0A44Claude Code, Codex