memex-agentic-memory

memex-agentic-memory is a skill for Claude Code, Codex from iamtouchskyer/memex. It costs 19 tokens per session (1,606 once invoked), scanned A, original, MIT.

An experimental workflow for turning observations into structured memory cards and linking related knowledge. It uses the memex memory system and requires an explicit opt-in setting.

In plain words
What is it for?
Use it to record project knowledge, enrich stored notes, search past information, and create deliberate links between related memory cards.
Why use it?
It gives coding agents a defined way to capture, improve, find, and connect information instead of leaving memories as isolated notes.

Skill for Claude CodeCodex

Part of the memex plugin — 7 skills, 2 hooks, 1 MCP server shipped together

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/iamtouchskyer/memex/memex-agentic-memory
Any agent
npx skills add iamtouchskyer/memex --skill memex-agentic-memory
Clone the repo
git clone --depth 1 https://github.com/iamtouchskyer/memex

Made for: Claude Code, Codex.

Or install memex, the plugin that ships this one along with the rest of its 7 skills, 2 hooks, 1 MCP server.

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 memex-agentic-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/iamtouchskyer/memex/memex-agentic-memory.svg)](https://agentmods.dev/skills/iamtouchskyer/memex/memex-agentic-memory)
Your own site
<a href="https://agentmods.dev/skills/iamtouchskyer/memex/memex-agentic-memory"><img src="https://agentmods.dev/badge/skills/iamtouchskyer/memex/memex-agentic-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,606 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.00019 $0.01606
Opus 5 $0.00010 $0.00803
Sonnet 5 $0.00004 $0.00321
Haiku 4.5 $0.00002 $0.00161

Measured 5d ago against content hash 697adeac3cae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memex-agentic-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 5d 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.

skills/memex-agentic-memory/SKILL.md · 201 lines

How it starts

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

Agentic Memory Skill (Experimental)

An A-MEM-inspired workflow that uses existing memex primitives to produce higher-quality memory cards through structured observation, enrichment, retrieval, and deliberate linking.

This skill is experimental and requires opt-in.

Prerequisite: Feature Flag Guard

Before proceeding, locate .memexrc using the same precedence as core memex:

  1. $MEMEX_HOME/.memexrc (if MEMEX_HOME env var is set)
  2. Walk up from the current directory looking for .memexrc
  3. ~/.memex/.memexrc (fallback)

Check that experimental.agenticMemory is exactly true.

If the flag is missing, false, or not exactly true, STOP. Use the standard memex-retro skill instead. Do not proceed with the agentic workflow.

Tools Available

Three equivalent interfaces — use whichever your environment supports:

CLI (memex in PATH) Plugin CLI fallback (Claude Code) MCP tool (VSCode / Cursor)
memex search <q> node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js search <q> memex_search with query arg
memex read <slug> node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js read <slug> memex_read with slug arg
memex write <slug> node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js write <slug> memex_write with slug arg and body

Resolution order: Try memex in PATH first. If not found, use the plugin fallback or MCP tools.

Workflow

Step 1: Input Triage

Identify whether there is a memory-worthy insight from the completed work.

Skip if the content is:

  • Temporary or session-specific (current task state, in-progress work)
  • Obvious or well-known (standard library usage, common patterns)
  • Not reusable across future sessions

If nothing is worth remembering, stop here.

Step 2: Draft Atomic Card

For each insight, draft one card:

  • Title: Short, descriptive
  • Slug: English kebab-case (e.g., yaml-array-roundtrip-bug)
  • Body: One atomic insight in your own words. Distill, don't copy.
  • Context: Add explicit project/domain context when the insight would be ambiguous without it

Read the full file on GitHub · 201 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. 5d ago First seen · 201 lines · 19 tokens per session scan A 697adeac3cae

Subscribe to this mod's changes

memex-agentic-memory is a skill published in the GitHub repository iamtouchskyer/memex (141 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 1,606 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.

Related

Other skills, from other repositories

memory-curation

When you have read / processed a workspace asset in this session and learned something durable about it, write a memory page so future sessions benefit. Maintain the workspace wiki's hierarchical structure as it grows.

Prismer-AI/PrismerCloud · 46 tokens

memory

Persist and retrieve agent memory across sessions — write durable notes, read by path, recall via semantic search, list/delete, and consolidate. Use whenever the user asks to remember/forget something, when you need to look up past decisions or context, or when episodic state matters beyond the current turn. Executes…

Prismer-AI/PrismerCloud · 76 tokens

save-progress

Save current project task progress to local task state file for cross-session continuity. Use when the user asks to save progress, uses an equivalent localized trigger phrase, the session is interrupted, or the user wants to resume work later. Writes to .claude/project-task-state.json so next session can load it via…

KimYx0207/Meta_Kim · 65 tokens

memorix

Use when Claude Code needs Memorix shared memory, reasoning, Git Memory, mini-skills, session handoff, orchestration coordination, or integration troubleshooting.

AVIDS2/memorix · 34 tokens

memorix-mini-skills

Use when durable project knowledge, gotchas, workflows, or repeated fixes should become reusable agent guidance instead of ordinary memory.

AVIDS2/memorix · 30 tokens

memorix-sessions

Use when resuming work, preparing handoff context, binding an HTTP control-plane project, or deciding whether sessionstart is useful.

AVIDS2/memorix · 31 tokens