diff options
| author | Agando <roduccomm@gmail.com> | 2026-11-09 15:36:23 +0100 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-11-09 15:36:23 +0100 |
| commit | a065a4c30be748b0c8fc6dd0b5ee1dc4d3de4b1c (patch) | |
| tree | 8a84adabfccee9994937cd71888170ab205b9361 /skills/memory-pruner.json | |
| parent | a46ebee30cfbbac86abb45068411bc28e1c65503 (diff) | |
The daily collector and the feedback pipeline had left 57 modified files uncommitted (skills,
modules-index, CHANGELOG, feedback decisions, debug counters). The public mirror publishes git
HEAD, so without this the published repo stayed behind the tree - and it blocked the publisher
outright once uncommitted subtrees started failing loudly.
Diffstat (limited to 'skills/memory-pruner.json')
| -rw-r--r-- | skills/memory-pruner.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/skills/memory-pruner.json b/skills/memory-pruner.json new file mode 100644 index 0000000..238b419 --- /dev/null +++ b/skills/memory-pruner.json @@ -0,0 +1,15 @@ +{ + "name": "memory-pruner", + "description": "Optimize the memory graph, auto-cleanup stale entries, and maintain a healthy node count.", + "tags": [ + "memory", + "graph", + "cleanup", + "optimization", + "maintenance" + ], + "category": "system", + "created": "2026-10-16T16:28:11.556Z", + "updated": "2026-10-16T16:30:38.270Z", + "content": "---\nname: memory-pruner\ndescription: Optimize the memory graph, auto-cleanup stale entries, and maintain a healthy node count.\ntags: [memory, graph, cleanup, optimization, maintenance]\ncategory: system\n---\n## Steps\n1. **Assess current state:**\n - world_model_query({question: \"memory\"}) — get node/edge counts\n - session_stats — check session history length\n - user_list — review stored profile keys\n\n2. **Identify stale memory:**\n - Check session logs >30 days old\n - Find user profile keys with null/empty values\n - Identify duplicate or contradictory facts\n\n3. **Prune session logs:**\n - Load old sessions: session_load(\"YYYY-MM-DD\")\n - Remove redundant entries with session_save(\"\")\n - Keep: recent (last 7 days), milestone sessions, key decisions\n\n4. **Clean user profile:**\n - user_list — show all keys\n - user_forget(key) for: temp values, one-time preferences, debugging keys\n - Keep: preferredModel, securityLevel, theme, etc.\n\n5. **Checkpoint management:**\n - checkpoint-list — find old/unnamed checkpoints\n - checkpoint-del <name> for anything >14 days old\n - Keep: pre-major-update, pre-module-edit checkpoints\n\n6. **Final report:**\n - Show before/after node counts\n - List what was removed\n - Confirm healthy state achieved\n\n## Target metrics:\n- Memory graph: <50 nodes optimal\n- Session logs: <100 entries\n- User profile: <20 keys\n- Checkpoints: <10 active\n\n## When to use:\n- Monthly maintenance\n- Memory graph >60 nodes\n- System sluggishness reported\n- Before major updates\n" +}
\ No newline at end of file |