active-memory-reminder
Skill756 starsChanged 5 months agoMITView on GitHub
Before compaction Loopkit extracts decisions into claude-decisions.json (machine-readable). Read it alongside claude-progress.txt at session start — prose is for humans, JSON is for the loop.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- a11y-passSkill
- adversarial-verifySkill
- authz-checkSkill
- bisect-regressionSkill
- broken-window-checkSkill
- changelog-from-diffSkill
- clean-commitsSkill
- context-budgetSkill
- contract-testSkill
- coverage-gapsSkill
- decision-recordSkill
- dependency-auditSkill
- design-systemSkill
- eval-harnessSkill
- evaluator-calibrationSkill
- feature-list-jsonSkill
- flaky-hunterSkill
- harness-strippingSkill
- hitl-escalateSkill
- init-script-contractSkill
- input-validationSkill
- kill-dead-codeSkill
- loading-empty-error-statesSkill
- migration-writerSkill
- model-routingSkill
- owasp-reviewSkill
- pdf-ingestionSkill
- planner-spec-expandSkill
- pr-from-diffSkill
- progress-reading-protocolSkill
- prompt-cachingSkill
- readme-auditSkill
- read-the-traceSkill
- rebase-safelySkill
- reduce-nestingSkill
- revert-surgicalSkill
- schema-diffSkill
- secret-scanSkill
- self-eval-biasSkill
- shift-notesSkill
- simplifySkill
- spec-firstSkill
- sprint-contractSkill
- sql-reviewSkill
- structured-outputSkill
- subagent-fanoutSkill
- suggest-next-featuresSkill
- systematic-debuggingSkill
- tool-restraintSkill
- using-loopkitSkill
- verification-before-completionSkill
- write-failing-test-firstSkill
- my-new-skillSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Session start / post-/clear / post-compact: Read claude-decisions.json right after claude-progress.txt and before you look at code.
- Very specific: line 19
Before re-litigating a design choice: If you're about to propose "let's use X instead of Y," grep claude-decisions.json first.
- Very specific: line 37
If entries contradict, newer wins, but note the contradiction in claude-progress.txt so the reason is captured.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Active Memory Reminder
Loopkit splits shift-notes across two files on purpose:
claude-progress.txt— free-form prose. Human-readable narrative of what the last session did, what is in flight, what to pick up next. Wins for context and intent. Loses when the model needs to decide whether a decision was made.claude-decisions.json— machine-readable array of{ts, decision}entries, appended by the loopkitpre-compacthook every time the transcript is about to be compacted. Wins for durability of specific choices ("chose Postgres over SQLite because…", "rejected the polling approach", "tried htmx and switched to Alpine").
Compaction is where reasoning dies. The summarizer keeps the shape of the work but strips the why. claude-decisions.json is the durable side-channel that survives that. This is the same pattern Meta's NapMem paper calls out for behavioral-state-decay in long-running agents: prose degrades faster than structured facts because the model rewrites prose freely and edits structured data carefully (also why loopkit uses JSON for feature_list.json; see [[feature-list-json]]).
When to apply
- Session start / post-/clear / post-compact. Read
claude-decisions.jsonright afterclaude-progress.txtand before you look at code. If both files disagree, the JSON is the more recent hard record of a specific choice; the prose gives you the reason. - Before re-litigating a design choice. If you're about to propose "let's use X instead of Y," grep
claude-decisions.jsonfirst. If a prior session already rejected X and wrote it down, don't burn the token budget re-deriving that. - When picking up mid-implementation work. Decisions frame constraints the progress file may not restate.
File contract
claude-decisions.json is a JSON array. Every entry is {ts, decision}:
[
{"ts": "2026-07-14T18:22:09Z", "decision": "chose Playwright MCP over Puppeteer because Puppeteer's alert-modal blind spot bit us in run 41"},
{"ts": "2026-07-14T20:04:11Z", "decision": "rejected the daemon-per-project approach; switched to a single supervisor with per-project subdirs"},
{"ts": "2026-07-15T09:31:44Z", "decision": "tried and failed to cache the plan across sessions — plan went stale within two sessions, dropped"}
]Constraints:
- Append-only in normal operation. The
pre-compacthook appends; sessions read. - You MAY add a decision by hand if you make one mid-session that the hook won't catch (e.g., a decision made in code, not prose). Use the same shape. Do not rewrite or delete existing entries — they are the durable record.
- If entries contradict, newer wins, but note the contradiction in
claude-progress.txtso the reason is captured.
The hook
.claude/hooks/pre-compact runs on both manual (/compact) and auto compaction. It skims the transcript for phrases matching decided|chose|rejected|tried and failed|switched from .* to|going with|not going to, dedupes, caps at 20 per compaction, timestamps each, and appends. It is silent-safe: any failure logs to stderr and exits 0 so compaction is never blocked.
Anti-patterns
- Reading
claude-progress.txtand skippingclaude-decisions.json. You will re-open settled questions. The prose file often omits why we didn't do the other thing — that's what the JSON is for. - Editing or deleting past decisions to "clean them up." Same rule as
feature_list.jsonsteps and descriptions: durable structured records are load-bearing. Contradict them in a new entry; don't erase the old one. - Storing prose in
claude-decisions.json. It is not a second progress file. Entries are single decisions with a timestamp, nothing else. - Assuming the hook caught it. The regex catches most decisions but not all. If you made a decision the transcript won't obviously match, add it by hand before ending the session.
Related
- [[progress-reading-protocol]] — session-opening sequence; step 2b reads this file.
- [[feature-list-json]] — the other structured-over-prose file loopkit relies on.
- [[shift-notes]] — the prose companion this file is paired with.
- [[clean-state-contract]] — session-end discipline that keeps the pairing usable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

