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
Delegate AGENTS.md merges to a dedicated subagent and disable model invocation for the parent skill so the workflow only runs when explicitly triggered.
Made-with: Cursor
Copy file name to clipboardExpand all lines: continual-learning/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ The plugin combines:
6
6
7
7
- A `stop` hook that decides when to trigger learning.
8
8
- A `continual-learning` skill that mines only high-signal transcript deltas.
9
+
- An `agents-memory-updater` subagent that owns the `AGENTS.md` merge/write step.
9
10
10
11
It is designed to avoid noisy rewrites by:
11
12
@@ -23,6 +24,8 @@ It is designed to avoid noisy rewrites by:
23
24
24
25
On eligible `stop` events, the hook may emit a `followup_message` that asks the agent to run the `continual-learning` skill.
25
26
27
+
The skill is marked `disable-model-invocation: true`, so it will not be auto-selected during normal model invocation. When it does run, it delegates the final `AGENTS.md` merge/write work to the `agents-memory-updater` subagent.
description: Merge high-signal continual-learning updates into `AGENTS.md` and keep the incremental transcript index in sync. Use from the `continual-learning` skill when transcript deltas may change durable memory.
4
+
model: inherit
5
+
---
6
+
7
+
# AGENTS.md memory updater
8
+
9
+
Own the actual `AGENTS.md` write for continual learning.
- Any narrowed list of changed transcripts from the caller
17
+
- Any extracted candidate bullets from the caller
18
+
19
+
## Workflow
20
+
21
+
1. Read existing `AGENTS.md` first. If it does not exist, create it with only:
22
+
-`## Learned User Preferences`
23
+
-`## Learned Workspace Facts`
24
+
2. Load the incremental index if present.
25
+
3. Use the caller's narrowed transcript set or extracted bullets when provided. Otherwise, inspect only transcript files that are new or whose mtimes are newer than the index.
26
+
4. Keep only high-signal reusable information:
27
+
- recurring user corrections/preferences
28
+
- durable workspace facts
29
+
5. Update `AGENTS.md` carefully:
30
+
- update matching bullets in place
31
+
- add only net-new bullets
32
+
- deduplicate semantically similar bullets
33
+
- keep each learned section to at most 12 bullets
34
+
6. Write back the incremental index:
35
+
- store latest mtimes for processed files
36
+
- remove entries for files that no longer exist
37
+
7. If no meaningful updates exist, leave `AGENTS.md` unchanged and respond exactly: `No high-signal memory updates.`
38
+
39
+
## Guardrails
40
+
41
+
- Use plain bullet points only.
42
+
- Keep only these sections:
43
+
-`## Learned User Preferences`
44
+
-`## Learned Workspace Facts`
45
+
- Do not write evidence/confidence tags.
46
+
- Do not write process instructions, rationale, or metadata blocks.
47
+
- Never store secrets, credentials, private personal data, or one-off instructions.
48
+
- Exclude transient details like branch names, commit hashes, or temporary errors.
49
+
50
+
## Output
51
+
52
+
- Updated `AGENTS.md` and `.cursor/hooks/state/continual-learning-index.json` when needed
`Run the \`continual-learning\` skill now. First read existing \`AGENTS.md\` and update existing entries in place (do not only append). Use incremental transcript processing with index file \`${INCREMENTAL_INDEX_PATH}\`: only read transcripts not in the index or transcripts whose mtime is newer than indexed mtime (re-read changed transcripts). After processing, write back the updated index mtimes and remove entries for deleted transcripts. Update \`AGENTS.md\` only for high-signal, repeated user-correction patterns or durable workspace facts. Exclude one-off/transient details and secrets. Keep each learned section to at most 12 bullets. Write plain bullet points only, with no evidence/confidence tags or other metadata annotations. If no meaningful updates exist, respond exactly: No high-signal memory updates.`;
18
+
`Run the \`continual-learning\` skill now. Use the \`agents-memory-updater\` subagent for the actual \`AGENTS.md\` merge/write. First read existing \`AGENTS.md\`. Use incremental transcript processing with index file \`${INCREMENTAL_INDEX_PATH}\`: only read transcripts not in the index or transcripts whose mtime is newer than indexed mtime (re-read changed transcripts). After processing, have the subagent update existing entries in place (do not only append), write back the updated index mtimes, and remove entries for deleted transcripts. Update \`AGENTS.md\` only for high-signal, repeated user-correction patterns or durable workspace facts. Exclude one-off/transient details and secrets. Keep each learned section to at most 12 bullets. Write plain bullet points only, with no evidence/confidence tags or other metadata annotations. If no meaningful updates exist, respond exactly: No high-signal memory updates.`;
Copy file name to clipboardExpand all lines: continual-learning/skills/continual-learning/SKILL.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
name: continual-learning
3
-
description: Incrementally extract recurring user corrections and durable workspace facts from transcript changes, then update AGENTS.md with plain bullet points only. Use when the user asks to mine previous chats, maintain AGENTS.md memory, or build a self-learning preference loop.
3
+
description: Incrementally extract recurring user corrections and durable workspace facts from transcript changes, then delegate the AGENTS.md merge/update to a dedicated subagent. Use when the user asks to mine previous chats, maintain AGENTS.md memory, or build a self-learning preference loop.
4
+
disable-model-invocation: true
4
5
---
5
6
6
7
# Continual Learning
@@ -12,24 +13,27 @@ Keep `AGENTS.md` current using transcript deltas instead of full rescans.
0 commit comments