|
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: Orchestrate continual learning by delegating transcript mining and AGENTS.md updates to `agents-memory-updater`. |
| 4 | +disable-model-invocation: true |
4 | 5 | --- |
5 | 6 |
|
6 | 7 | # Continual Learning |
7 | 8 |
|
8 | | -Keep `AGENTS.md` current using transcript deltas instead of full rescans. |
| 9 | +Keep `AGENTS.md` current by delegating the memory update flow to one subagent. |
9 | 10 |
|
10 | | -## Inputs |
| 11 | +## Trigger |
11 | 12 |
|
12 | | -- Transcript root: `~/.cursor/projects/<workspace-slug>/agent-transcripts/` |
13 | | -- Existing memory file: `AGENTS.md` |
14 | | -- Incremental index: `.cursor/hooks/state/continual-learning-index.json` |
| 13 | +Use when the user asks to mine prior chats, maintain `AGENTS.md`, or run the continual-learning loop. |
15 | 14 |
|
16 | 15 | ## Workflow |
17 | 16 |
|
18 | | -1. Read existing `AGENTS.md` first. |
19 | | -2. Load incremental index if present. |
20 | | -3. Discover transcript files and process only: |
21 | | - - new files not in index, or |
22 | | - - files whose mtime is newer than indexed mtime. |
23 | | -4. Extract only high-signal, reusable information: |
24 | | - - recurring user corrections/preferences |
25 | | - - durable workspace facts |
26 | | -5. Merge with existing bullets in `AGENTS.md`: |
27 | | - - update matching bullets in place |
28 | | - - add only net-new bullets |
29 | | - - deduplicate semantically similar bullets |
30 | | -6. Write back the incremental index: |
31 | | - - store latest mtimes for processed files |
32 | | - - remove entries for files that no longer exist |
| 17 | +1. Call `agents-memory-updater`. |
| 18 | +2. Return the updater result. |
33 | 19 |
|
34 | | -## AGENTS.md Output Contract |
| 20 | +## Guardrails |
35 | 21 |
|
36 | | -- Keep only these sections: |
37 | | - - `## Learned User Preferences` |
38 | | - - `## Learned Workspace Facts` |
39 | | -- Use plain bullet points only. |
40 | | -- Do not write evidence/confidence tags. |
41 | | -- Do not write process instructions, rationale, or metadata blocks. |
42 | | - |
43 | | -## Inclusion Bar |
44 | | - |
45 | | -Keep an item only if all are true: |
46 | | - |
47 | | -- actionable in future sessions |
48 | | -- stable across sessions |
49 | | -- repeated in multiple transcripts, or explicitly stated as a broad rule |
50 | | -- non-sensitive |
51 | | - |
52 | | -## Exclusions |
53 | | - |
54 | | -Never store: |
55 | | - |
56 | | -- secrets, tokens, credentials, private personal data |
57 | | -- one-off task instructions |
58 | | -- transient details (branch names, commit hashes, temporary errors) |
59 | | - |
60 | | -## Incremental Index Format |
61 | | - |
62 | | -```json |
63 | | -{ |
64 | | - "version": 1, |
65 | | - "transcripts": { |
66 | | - "/abs/path/to/file.jsonl": { |
67 | | - "mtimeMs": 1730000000000, |
68 | | - "lastProcessedAt": "2026-02-18T12:00:00.000Z" |
69 | | - } |
70 | | - } |
71 | | -} |
72 | | -``` |
| 22 | +- Keep the parent skill orchestration-only. |
| 23 | +- Do not mine transcripts or edit files in the parent flow. |
| 24 | +- Do not bypass the subagent. |
0 commit comments