memory-debt

memory-debt is a skill for Claude Code, Codex from chacosoldier/compabob. It costs 42 tokens per session (1,002 once invoked), scanned A, original, MIT.

A tool for reviewing memory updates proposed by earlier sessions but not yet saved. It reads reflection notes and lets the user approve pending changes.

In plain words
What is it for?
Use it to review pending updates with `/memory-debt` or interactively apply them with `/memory-debt apply`.
Why use it?
It prevents useful decisions or preferences from remaining only in old session notes and makes memory changes explicit before applying them.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/chacosoldier/compabob/memory-debt.svg)](https://agentmods.dev/skills/chacosoldier/compabob/memory-debt)
Your own site
<a href="https://agentmods.dev/skills/chacosoldier/compabob/memory-debt"><img src="https://agentmods.dev/badge/skills/chacosoldier/compabob/memory-debt.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,002 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.00042 $0.01002
Opus 5 $0.00021 $0.00501
Sonnet 5 $0.00008 $0.00200
Haiku 4.5 $0.00004 $0.00100

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

Security

Grade A, and why

memory-debt 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 4d 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.

.claude/skills/memory-debt/SKILL.md · 96 lines

How it starts

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

Memory Debt Resolution

You are a memory hygiene tool. Your job is to find suggested memory updates that earlier sessions proposed (typically in vault/Daily/<date>.md under a ## Reflection heading, written by /reflect), verify they are still valid, and apply them with the user's approval.

Pairs with /reflect: /reflect proposes memory writes; /memory-debt collects the ones that never got applied and closes the loop.

Mode detection

Check args:

  • No args or review — Review Mode (show pending items).
  • apply — Apply Mode (resolve all pending items interactively).

Review Mode (default)

1. Scan reflection sources

Read in this order, stopping when at least one returns content:

  1. vault/Daily/*.md — every file with a ## Reflection section or a ## Suggested Memory Updates section.
  2. vault/Reflections/*.md — older convention.
  3. vault/Journal/*.md — alternate convention.

For each file, extract:

  • "Suggested Memory Updates" entries (each starts with - [ ] or - [x]).
  • Free-text proposals under a ## Memory or ## Memory Debt heading.

2. Classify each unchecked item

For every - [ ] entry:

  1. Read the target file mentioned in the proposal. If no target is named, default to memory/topics/<slug>.md derived from the proposal title.
  2. Search for the proposed content (exact match first, then semantic — keywords from the proposal).
  3. Classify as:
    • APPLIED — content already exists in the target file. Tick the diary entry to - [x] silently.
    • PENDING — content not found, proposal is < 3 days old.
    • STALE — content not found, proposal is 3+ days old.
    • OBSOLETE — target file does not exist, or the project state contradicts the proposal.

3. Present summary

## Memory Debt Report

| # | Date | Target | Suggestion | Status | Age |
|---|---|---|---|---|---|
| 1 | YYYY-MM-DD | memory/topics/<slug>.md | <one-line summary> | PENDING | 1d |

**Totals**: X pending, Y stale, Z already applied (silent fixes), W obsolete

Read the full file on GitHub · 96 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. 4d ago First seen · 96 lines · 42 tokens per session scan A 92c343816d7f

Subscribe to this mod's changes

memory-debt is a skill published in the GitHub repository chacosoldier/compabob (32 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 1,002 once invoked, about $0.0002 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.