memory-distill

memory-distill is a skill for Claude Code, Codex from Lolaplex/agents-memory. It costs 76 tokens per session (574 once invoked), scanned A, original, MIT.

A workflow for turning temporary notes in a staging inbox into lasting memory files. It keeps durable decisions and working rules while discarding one-off debugging notes and other temporary noise.

In plain words
What is it for?
Use it after an information-ingest run or when the staging inbox needs processing. It helps classify, name, save, or discard captured notes.
Why use it?
It prevents useful project or user knowledge from being buried in an un整理ed inbox. It also reduces clutter by separating facts that should persist from information that has already served its purpose.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lolaplex/agents-memory/memory-distill.svg)](https://agentmods.dev/skills/lolaplex/agents-memory/memory-distill)
Your own site
<a href="https://agentmods.dev/skills/lolaplex/agents-memory/memory-distill"><img src="https://agentmods.dev/badge/skills/lolaplex/agents-memory/memory-distill.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 574 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.00076 $0.00574
Opus 5 $0.00038 $0.00287
Sonnet 5 $0.00015 $0.00115
Haiku 4.5 $0.00008 $0.00057

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

Security

Grade A, and why

memory-distill 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.

skills/memory-distill/SKILL.md · 45 lines

What it actually says

memory-distill

Staging inbox is temporary — from any ingest source (staging/ingest/<id>/captured.md) or project/user staging. Distill durable facts into typed paths; discard ephemeral noise.

When staging inbox depth reaches staging_nag_threshold (default 50), agents automatically receive a nag alert in AGENTS.md and MCP tool responses to trigger distillation.

Quick Option: Auto-Distill

For fast automated triage of noise and standard facts:

  • Call MCP auto_distill(limit=50, discard_noise=true)
  • Or CLI: python -m agents_memory distill --auto

Full LLM Workflow

  1. Call MCP get_staging_inbox(limit=20) — returns groups by source (ingest id / file).
  2. For each bullet in each group, evaluate:
    • Keep (Durable Fact): Core decisions, tech stack choices, preferences, personal workflow rules, durable architecture constraints.
      • Select target kind: concept, entity, workflow, note, project, decision, proposed, implemented.
      • Assign clean slug name (and project / collection if applicable).
    • Discard (Noise / Ephemeral): One-off debug talk, temporary questions, code snippets with no lasting rule, accidental transcript dumps.
  3. Call MCP distill_batch(items_json) with the classified items. Always pass through source_path (and project when present) from the inbox item so removal hits the right file:
    [
      {
        "bullet": "[Homelab @ …] Always use Tailwind v3",
        "kind": "note",
        "name": "stack",
        "project": "customs",
        "source_path": "user/staging/ingest/cursor/captured.md"
      },
      {
        "bullet": "Can you check line 40 of main.py",
        "discard": true,
        "source_path": "user/staging/ingest/cursor/captured.md"
      }
    ]
    
  4. Repeat until get_staging_inbox reports "total": 0.
  5. distill_batch and promote_bullet automatically sync to all IDEs/CLIs upon completion.
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 · 45 lines · 76 tokens per session scan A 04c9cd453c80

Subscribe to this mod's changes

memory-distill is a skill published in the GitHub repository Lolaplex/agents-memory (3 stars, last pushed 3d ago), licensed MIT. It adds 76 tokens to every session and 574 once invoked, about $0.0004 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

On_Board

Skill "On_Board" from swisspra/On_Board, covering greetings agents!, welcome on board — agent shared memory skill.md, ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━, drop into any project that uses on board mcp and via native instruction file system.

swisspra/On_Board · 0 tokens

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

recall

Recall this repository's OwnMem local memory before changing code, and keep it healthy. Use when a repository contains .ownmem/, when past debugging lessons could apply ("have we hit this before", "why is it done this way"), or when the user mentions ownmem, project memory, or recalling across sessions.

grpcer/ownmem · 66 tokens

dashboard

Open OwnMem Console, the local dashboard for this repository's memory. Use when the user asks to open the dashboard, see memory metrics, check adoption or recall quality, or set up the optional embedding lane. Requires a repository initialized with the dashboard layer.

grpcer/ownmem · 53 tokens

init

Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.

grpcer/ownmem · 43 tokens