You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace MEMORY.md archiving with duplicate detection in post-flight
The old check_memory() archived MEMORY.md to PROJECT/1-INBOX/ which was
misaligned with Claude Code's per-file auto-memory model. New
check_memory_duplicates() scans ~/.claude/projects/*/memory/ for orphaned
files, broken index links, duplicate topics, and missing frontmatter.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
13
13
- Do not edit a version block that has already been committed and pushed
14
14
-->
15
15
16
+
## [1.9.1] - 2026-04-09
17
+
18
+
### Changed
19
+
-**`experimental/post-flight.sh` — replace MEMORY.md archiving with duplicate detection** — `check_memory()` removed; new `check_memory_duplicates()` scans the Claude Code auto-memory directory (`~/.claude/projects/*/memory/`) for orphaned files not linked from MEMORY.md index, broken index links pointing to missing files, duplicate topics (3+ memory files sharing the same `type` frontmatter), and missing frontmatter. Reports findings without auto-fixing — consistent with the script's read-only default mode. The old archive-to-`PROJECT/1-INBOX/` behavior was misaligned with Claude Code's per-file memory model. MCP handler and tool description updated to reflect the new check. Event name changed from `check:memory` / `action:archive` to `check:memory-duplicates`.
Copy file name to clipboardExpand all lines: tools/mcp-server/src/index.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -863,7 +863,7 @@ export function createServer() {
863
863
"post_flight_session_cleanup",
864
864
{
865
865
description:
866
-
"Solo developer post-flight session cleanup — ensures 4X4.md, CHANGELOG.md, and MEMORY.md are synced. Optionally commits and pushes with confirmation. Archives MEMORY.md to PROJECT/1-INBOX/ for clean sessions. Runs build validation.",
866
+
"Solo developer post-flight session cleanup — checks 4X4.md and CHANGELOG.md freshness, scans Claude Code memory for conflicted duplicates (orphans, broken links, duplicate topics). Optionally commits and pushes with confirmation. Runs build validation.",
867
867
inputSchema: {
868
868
mode: z.enum(["report","commit","push"]).default("report").describe("report (default, no git actions), commit (with confirmation), or push (commit + push with confirmations)"),
869
869
dryRun: z.boolean().default(false).describe("Show what would happen without executing"),
0 commit comments