memory-extraction

memory-extraction is a skill for Claude Code, Codex from Alenryuichi/openmemory-plus. It costs 52 tokens per session (3,965 once invoked), scanned A, original, MIT.

An agent-only workflow for extracting important project and user information from conversations, code changes, and deployments into structured memory. It separates project records from personal preferences.

In plain words
What is it for?
Use it to record project configuration, technical decisions, change history, session notes, and cross-project user preferences.
Why use it?
It keeps useful context from being lost between conversations or projects. The description says project information is stored in project memory and user preferences in shared memory.

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/alenryuichi/openmemory-plus/memory-extraction
Any agent
npx skills add Alenryuichi/openmemory-plus --skill memory-extraction
Clone the repo
git clone --depth 1 https://github.com/Alenryuichi/openmemory-plus

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-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/alenryuichi/openmemory-plus/memory-extraction.svg)](https://agentmods.dev/skills/alenryuichi/openmemory-plus/memory-extraction)
Your own site
<a href="https://agentmods.dev/skills/alenryuichi/openmemory-plus/memory-extraction"><img src="https://agentmods.dev/badge/skills/alenryuichi/openmemory-plus/memory-extraction.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,965 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.00052 $0.03965
Opus 5 $0.00026 $0.01982
Sonnet 5 $0.00010 $0.00793
Haiku 4.5 $0.00005 $0.00396

Measured yesterday against content hash ddd4090b739b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memory-extraction 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.augment/skills/memory-extraction/SKILL.md · 478 lines

How it starts

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

Memory Extraction Skill (Agent-Only)

目的

自动提取对话中的关键信息,智能路由到正确的存储系统:

  • 项目级信息_omp/memory/ 目录 (Git 版本控制)
  • 用户级信息openmemory MCP (跨项目共享)

Agent-Only 原则:

  • 自动触发:对话结束时或检测到有价值信息时自动运行
  • 智能分类:根据信息类型自动选择存储位置
  • 零人工干预:无需用户确认,静默执行
  • 双系统同步:同时管理 _omp/memory/openmemory

核心目录结构

_omp/                           # OpenMemory Plus 核心目录
├── commands/
│   ├── memory.md               # 主命令入口
│   └── memory-actions/         # 7 个子动作
├── skills/
│   └── memory-extraction/      # 本 Skill
│       ├── SKILL.md
│       ├── scripts/validate.sh
│       └── templates/*.tmpl
└── memory/                    # 项目级记忆
    ├── project.yaml            # 项目配置 (SSOT)
    ├── decisions.yaml          # 技术决策记录
    ├── changelog.yaml          # 变更历史
    └── sessions/               # 会话记录

双层记忆架构

系统 存储位置 用途
项目级 _omp/memory/ 项目配置、技术决策、变更记录
用户级 openmemory MCP 用户偏好、技能、跨项目上下文

分类规则

📖 详细规则: 参见 references/classification-rules.md

快速分类指南

信号 Scope Confidence 存储位置
"我喜欢/偏好/习惯" PERSONAL EXPLICIT openmemory
"项目使用/配置为" PROJECT EXPLICIT _omp/memory/
"决定/选择/采用" PROJECT EXPLICIT decisions.yaml
用户反复使用某模式 PERSONAL INFERRED openmemory
"试试/也许/可能" EPHEMERAL UNCERTAIN 不存储

置信度阈值

  • 存储阈值: confidence >= 0.4
  • 自动存储: confidence >= 0.7
  • 需确认: 0.4 <= confidence < 0.7

敏感信息过滤

禁止存储(检测后阻止):

类型 检测模式
API Key sk-, api_key, token=, bearer
密码 password, secret, credential
私钥 -----BEGIN, PRIVATE KEY
个人信息 身份证号, 银行卡号, 手机号

ROT 过滤规则

📖 详细规则: 参见 references/rot-filter.md

类型 检测方式 处理
Redundant 语义相似度 > 0.85 合并或跳过
Obsolete 超过 TTL 且无访问 标记或删除
Trivial 长度 < 10 或匹配阻止模式 丢弃

快速判断:

  • ❌ "好的" / "OK" / "明白了" → Trivial
  • ❌ 与已有记忆相似度 > 0.85 → Redundant
  • ❌ 被明确否定的旧信息 → Obsolete

Read the full file on GitHub · 478 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 478 lines · 52 tokens per session scan A ddd4090b739b

Subscribe to this mod's changes

memory-extraction is a skill published in the GitHub repository Alenryuichi/openmemory-plus (20 stars, last pushed 6mo ago), licensed MIT. It adds 52 tokens to every session and 3,965 once invoked, about $0.0003 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-09-03.