gm-gc 2.0.455 → 2.0.456
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.
- package/GEMINI.md +1 -11
- package/agents/memorize.md +8 -8
- package/gemini-extension.json +1 -1
- package/hooks/pre-tool-use-hook.js +2 -2
- package/package.json +1 -1
package/GEMINI.md
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
## Technical Notes
|
|
4
|
-
|
|
5
|
-
Hook response format: `{"decision":"allow|block","reason":"text"}` with exit code 0.
|
|
6
|
-
|
|
7
|
-
Tool names for this platform: `bash` → `run_shell_command`, `write` → `write_file`, `glob` → `glob`, `grep` → `search_file_content`, `search` → `search`
|
|
8
|
-
|
|
9
|
-
When filtering transcript history by sessionId, use: `if (sessionId && entry.sessionId === sessionId)`
|
|
10
|
-
|
|
11
|
-
Verification file `.gm-stop-verified` is auto-added to .gitignore and tracks session completion state.
|
|
1
|
+
@AGENTS.md
|
package/agents/memorize.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: memorize
|
|
3
|
-
description: Background memory agent. Classifies context into memory/ dir and
|
|
3
|
+
description: Background memory agent. Classifies context into memory/ dir and AGENTS.md. Aggressively prunes stale/derivable/duplicate entries.
|
|
4
4
|
agent: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Memorize — Background Memory Agent
|
|
8
8
|
|
|
9
9
|
Memory dir: C:/Users/user/.claude/projects/C--dev-plugforge/memory/
|
|
10
|
-
|
|
10
|
+
AGENTS.md: C:/dev/plugforge/AGENTS.md
|
|
11
11
|
|
|
12
12
|
## STEP 1: READ
|
|
13
13
|
|
|
14
|
-
Read memory dir contents and MEMORY.md index. Read all existing memory files. Read
|
|
14
|
+
Read memory dir contents and MEMORY.md index. Read all existing memory files. Read AGENTS.md in full.
|
|
15
15
|
|
|
16
16
|
If memory dir does not exist, create it. If MEMORY.md does not exist, create it empty.
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ If memory dir does not exist, create it. If MEMORY.md does not exist, create it
|
|
|
20
20
|
Run BEFORE writing any new content.
|
|
21
21
|
|
|
22
22
|
Remove entries that are:
|
|
23
|
-
- Contradicted or superseded by current
|
|
23
|
+
- Contradicted or superseded by current AGENTS.md or observable codebase facts
|
|
24
24
|
- Duplicates of other entries (merge into one)
|
|
25
25
|
- Derivable at runtime via exec:codesearch: file paths, function names, API shapes, architecture patterns
|
|
26
26
|
- Active task state, current progress, session narration
|
|
@@ -39,7 +39,7 @@ Examine the ## CONTEXT TO MEMORIZE section at the end of this prompt. For each f
|
|
|
39
39
|
- reference: pointers to external systems, URLs, paths
|
|
40
40
|
|
|
41
41
|
Discard:
|
|
42
|
-
- Facts already covered in
|
|
42
|
+
- Facts already covered in AGENTS.md (exact or paraphrase)
|
|
43
43
|
- Obvious facts derivable from reading the code
|
|
44
44
|
- Active task state or session progress
|
|
45
45
|
|
|
@@ -76,14 +76,14 @@ No frontmatter. Max 200 lines.
|
|
|
76
76
|
|
|
77
77
|
## STEP 6: CONSOLIDATE
|
|
78
78
|
|
|
79
|
-
For each memory file: if its content is already fully covered by
|
|
79
|
+
For each memory file: if its content is already fully covered by AGENTS.md (exact or equivalent), delete the memory file and remove its line from MEMORY.md.
|
|
80
80
|
|
|
81
|
-
## STEP 7:
|
|
81
|
+
## STEP 7: AGENTS.md
|
|
82
82
|
|
|
83
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
84
|
|
|
85
85
|
For each qualifying fact from context:
|
|
86
|
-
- If
|
|
86
|
+
- If AGENTS.md already covers it → skip
|
|
87
87
|
- If genuinely non-obvious → append to the appropriate section
|
|
88
88
|
|
|
89
89
|
Never add: obvious patterns, active task progress, redundant restatements.
|
package/gemini-extension.json
CHANGED
|
@@ -18,8 +18,8 @@ const run = () => {
|
|
|
18
18
|
const inSkillsDir = file_path.includes('/skills/');
|
|
19
19
|
const base = path.basename(file_path).toLowerCase();
|
|
20
20
|
if ((ext === '.md' || ext === '.txt' || base.startsWith('features_list')) &&
|
|
21
|
-
!base.startsWith('claude') && !base.startsWith('readme') && !inSkillsDir) {
|
|
22
|
-
return { deny: true, reason: 'Cannot create documentation files. Only CLAUDE.md and readme.md are maintained.' };
|
|
21
|
+
!base.startsWith('claude') && !base.startsWith('agents') && !base.startsWith('readme') && !inSkillsDir) {
|
|
22
|
+
return { deny: true, reason: 'Cannot create documentation files. Only AGENTS.md, CLAUDE.md and readme.md are maintained.' };
|
|
23
23
|
}
|
|
24
24
|
if (/\.(test|spec)\.(js|ts|jsx|tsx|mjs|cjs)$/.test(base) ||
|
|
25
25
|
file_path.includes('/__tests__/') || file_path.includes('/test/') ||
|