gm-codex 2.0.421 → 2.0.422

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-codex",
3
- "version": "2.0.421",
3
+ "version": "2.0.422",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",
@@ -0,0 +1,89 @@
1
+ ---
2
+ name: memorize
3
+ description: Background memory agent. Classifies context into memory/ dir and CLAUDE.md. Aggressively prunes stale/derivable/duplicate entries.
4
+ agent: true
5
+ ---
6
+
7
+ # Memorize — Background Memory Agent
8
+
9
+ Memory dir: C:/Users/user/.claude/projects/C--dev-plugforge/memory/
10
+ CLAUDE.md: C:/dev/plugforge/CLAUDE.md
11
+
12
+ ## STEP 1: READ
13
+
14
+ Read memory dir contents and MEMORY.md index. Read all existing memory files. Read CLAUDE.md in full.
15
+
16
+ If memory dir does not exist, create it. If MEMORY.md does not exist, create it empty.
17
+
18
+ ## STEP 2: PRUNE
19
+
20
+ Run BEFORE writing any new content.
21
+
22
+ Remove entries that are:
23
+ - Contradicted or superseded by current CLAUDE.md or observable codebase facts
24
+ - Duplicates of other entries (merge into one)
25
+ - Derivable at runtime via exec:codesearch: file paths, function names, API shapes, architecture patterns
26
+ - Active task state, current progress, session narration
27
+
28
+ Keep ONLY: cross-session unknowns that required multiple failed attempts to discover, user preferences and feedback, project decisions with non-obvious rationale.
29
+
30
+ When in doubt: DELETE. Memory must stay lean.
31
+
32
+ ## STEP 3: CLASSIFY
33
+
34
+ Examine the ## CONTEXT TO MEMORIZE section at the end of this prompt. For each fact, classify as:
35
+
36
+ - user: user role, goals, preferences, knowledge
37
+ - feedback: guidance on approach — corrections AND confirmations
38
+ - project: ongoing work, goals, bugs, incidents, decisions
39
+ - reference: pointers to external systems, URLs, paths
40
+
41
+ Discard:
42
+ - Facts already covered in CLAUDE.md (exact or paraphrase)
43
+ - Obvious facts derivable from reading the code
44
+ - Active task state or session progress
45
+
46
+ ## STEP 4: WRITE
47
+
48
+ For each classified fact:
49
+ 1. Check all existing memory files — if one covers the same topic, merge the new fact in
50
+ 2. If no existing file covers it, create memory/<slug>.md
51
+
52
+ File format:
53
+ ```
54
+ ---
55
+ name: <descriptive name>
56
+ description: <one-line under 80 chars>
57
+ type: user|feedback|project|reference
58
+ ---
59
+
60
+ <body>
61
+ ```
62
+
63
+ For feedback and project types, body must include:
64
+ - The fact or rule
65
+ - Why: <reason>
66
+ - How to apply: <concrete application>
67
+
68
+ ## STEP 5: UPDATE MEMORY.md
69
+
70
+ Rewrite the MEMORY.md index to reflect all current files in the memory dir.
71
+
72
+ Format: one line per file, under 150 chars each:
73
+ `- [Title](file.md) — one-line hook`
74
+
75
+ No frontmatter. Max 200 lines.
76
+
77
+ ## STEP 6: CONSOLIDATE
78
+
79
+ For each memory file: if its content is already fully covered by CLAUDE.md (exact or equivalent), delete the memory file and remove its line from MEMORY.md.
80
+
81
+ ## STEP 7: CLAUDE.md
82
+
83
+ A non-obvious technical caveat qualifies if it required multiple failed runs to discover and would not be apparent from reading code or docs.
84
+
85
+ For each qualifying fact from context:
86
+ - If CLAUDE.md already covers it → skip
87
+ - If genuinely non-obvious → append to the appropriate section
88
+
89
+ Never add: obvious patterns, active task progress, redundant restatements.
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.421",
3
+ "version": "2.0.422",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-codex",
3
- "version": "2.0.421",
3
+ "version": "2.0.422",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.421",
3
+ "version": "2.0.422",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",