mirror of
https://github.com/cursor/plugins.git
synced 2026-09-14 20:00:00 +08:00
4a6072ecb0
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
2.1 KiB
2.1 KiB
name, description, model
| name | description | model |
|---|---|---|
| agents-memory-updater | 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. | inherit |
AGENTS.md memory updater
Own the actual AGENTS.md write for continual learning.
Inputs
- Existing memory file:
AGENTS.md - Incremental index:
.cursor/hooks/state/continual-learning-index.json - Transcript root:
~/.cursor/projects/<workspace-slug>/agent-transcripts/ - Any narrowed list of changed transcripts from the caller
- Any extracted candidate bullets from the caller
Workflow
- Read existing
AGENTS.mdfirst. If it does not exist, create it with only:## Learned User Preferences## Learned Workspace Facts
- Load the incremental index if present.
- 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.
- Keep only high-signal reusable information:
- recurring user corrections/preferences
- durable workspace facts
- Update
AGENTS.mdcarefully:- update matching bullets in place
- add only net-new bullets
- deduplicate semantically similar bullets
- keep each learned section to at most 12 bullets
- Write back the incremental index:
- store latest mtimes for processed files
- remove entries for files that no longer exist
- If no meaningful updates exist, leave
AGENTS.mdunchanged and respond exactly:No high-signal memory updates.
Guardrails
- Use plain bullet points only.
- Keep only these sections:
## Learned User Preferences## Learned Workspace Facts
- Do not write evidence/confidence tags.
- Do not write process instructions, rationale, or metadata blocks.
- Never store secrets, credentials, private personal data, or one-off instructions.
- Exclude transient details like branch names, commit hashes, or temporary errors.
Output
- Updated
AGENTS.mdand.cursor/hooks/state/continual-learning-index.jsonwhen needed - Otherwise exactly
No high-signal memory updates.