AriaCore Persistent Memory — Protocol
You have access to AriaCore, a persistent memory system that survives across sessions and compactions.
This protocol is MANDATORY and ALWAYS ACTIVE — not something you activate on demand.
AVAILABLE TOOLS
Core tools are loaded automatically at session start by the UserPromptSubmit hook.
They are available immediately — no manual ToolSearch needed.
mem_save, mem_search, mem_context, mem_session_summary
mem_get_observation, mem_suggest_topic_key, mem_update
mem_session_start, mem_session_end, mem_save_prompt
Fallback: If tools are unexpectedly unavailable, trigger ToolSearch manually:
select:mcp__plugin_aria_core_aria_core__mem_save,mcp__plugin_aria_core_aria_core__mem_search,mcp__plugin_aria_core_aria_core__mem_context,mcp__plugin_aria_core_aria_core__mem_session_summary,mcp__plugin_aria_core_aria_core__mem_get_observation,mcp__plugin_aria_core_aria_core__mem_suggest_topic_key,mcp__plugin_aria_core_aria_core__mem_update,mcp__plugin_aria_core_aria_core__mem_session_start,mcp__plugin_aria_core_aria_core__mem_session_end,mcp__plugin_aria_core_aria_core__mem_save_prompt
Admin tools (deferred — use ToolSearch only if needed):
mem_stats, mem_delete, mem_timeline, mem_capture_passive
PROACTIVE SAVE TRIGGERS (mandatory — do NOT wait for user to ask)
Call mem_save IMMEDIATELY and WITHOUT BEING ASKED after any of these:
After decisions or conventions
- Architecture or design decision made
- Team convention documented or established
- Workflow change agreed upon
- Tool or library choice made with tradeoffs
After completing work
- Bug fix completed (include root cause)
- Feature implemented with non-obvious approach
- Notion/Jira/GitHub artifact created or updated with significant content
- Configuration change or environment setup done
After discoveries
- Non-obvious discovery about the codebase
- Gotcha, edge case, or unexpected behavior found
- Pattern established (naming, structure, convention)
- User preference or constraint learned
After user confirmation or rejection
- User confirms a recommendation you made ("dale", "go with that", "sí", "perfect", "vamos con eso", "let's do that", "sounds good", "agreed")
- User rejects an option or approach ("no, better X", "descartemos eso", "not that one", "quiero algo diferente")
- User expresses a preference ("I prefer X over Y", "siempre hacé X", "me gusta más así", "always do it this way")
- User makes a decision after you presented tradeoffs or options
- A discussion concludes with a clear direction chosen — even if the agent proposed it
Self-check — ask yourself after EVERY task:
"Did I or the user just make a decision, confirm a recommendation, express a preference, fix a bug, learn something non-obvious, or establish a convention? If yes, call mem_save NOW."
Format for mem_save:
- title: Verb + what — short, searchable (e.g. "Fixed N+1 query in UserList", "Chose Zustand over Redux")
- type: bugfix | decision | architecture | discovery | pattern | config | preference
- scope:
project (default) | personal
- topic_key (optional but recommended for evolving topics): stable key like
architecture/auth-model
- content:
What: One sentence — what was done
Why: What motivated it (user request, bug, performance, etc.)
Where: Files or paths affected
Learned: Gotchas, edge cases, things that surprised you (omit if none)
Topic update rules (mandatory)
- Different topics MUST NOT overwrite each other (example: architecture decision vs bugfix)
- If the same topic evolves, call
mem_save with the same topic_key so memory is updated (upsert) instead of creating a new observation
- If unsure about the key, call
mem_suggest_topic_key first, then reuse that key consistently
- If you already know the exact ID to fix, use
mem_update
WHEN TO SEARCH MEMORY
When the user asks to recall something — any variation of "remember", "recall", "what did we do",
"how did we solve", "recordar", "acordate", "qué hicimos", or references to past work:
- First call
mem_context — checks recent session history (fast, cheap)
- If not found, call
mem_search with relevant keywords (FTS5 full-text search)
- If you find a match, use
mem_get_observation for full untruncated content
Also search memory PROACTIVELY when:
- Starting work on something that might have been done before
- The user mentions a topic you have no context on — check if past sessions covered it
- The user's FIRST message references the project, a feature, or a problem — call
mem_search with keywords from their message to check for prior work before responding
SESSION CLOSE PROTOCOL (mandatory)
Before ending a session or saying "done" / "listo" / "that's it", you MUST:
- Call
mem_session_summary with this structure:
Goal
[What we were working on this session]
Instructions
[User preferences or constraints discovered — skip if none]
Discoveries
- [Technical findings, gotchas, non-obvious learnings]
Accomplished
- [Completed items with key details]
Next Steps
- [What remains to be done — for the next session]
Relevant Files
- path/to/file — [what it does or what changed]
This is NOT optional. If you skip this, the next session starts blind.
AFTER COMPACTION
If you see a message about compaction or context reset:
- IMMEDIATELY call
mem_session_summary with the compacted summary content — this persists what was done before compaction
- Then call
mem_context to recover any additional context from previous sessions
- Only THEN continue working
Do not skip step 1. Without it, everything done before compaction is lost from memory.
All core tools are loaded automatically by the hook at session start — use the fallback ToolSearch above if they are unexpectedly missing.
1---2name: aria-core-memory3description: ALWAYS ACTIVE — Persistent memory protocol. You MUST save decisions, conventions, bugs, and discoveries to aria-core proactively. Do NOT wait for the user to ask.4---56# AriaCore Persistent Memory — Protocol78You have access to AriaCore, a persistent memory system that survives across sessions and compactions.9This protocol is MANDATORY and ALWAYS ACTIVE — not something you activate on demand.1011## AVAILABLE TOOLS1213Core tools are loaded automatically at session start by the UserPromptSubmit hook.14They are available immediately — no manual ToolSearch needed.1516- `mem_save`, `mem_search`, `mem_context`, `mem_session_summary`17- `mem_get_observation`, `mem_suggest_topic_key`, `mem_update`18- `mem_session_start`, `mem_session_end`, `mem_save_prompt`1920**Fallback**: If tools are unexpectedly unavailable, trigger ToolSearch manually:21```22select:mcp__plugin_aria_core_aria_core__mem_save,mcp__plugin_aria_core_aria_core__mem_search,mcp__plugin_aria_core_aria_core__mem_context,mcp__plugin_aria_core_aria_core__mem_session_summary,mcp__plugin_aria_core_aria_core__mem_get_observation,mcp__plugin_aria_core_aria_core__mem_suggest_topic_key,mcp__plugin_aria_core_aria_core__mem_update,mcp__plugin_aria_core_aria_core__mem_session_start,mcp__plugin_aria_core_aria_core__mem_session_end,mcp__plugin_aria_core_aria_core__mem_save_prompt23```2425Admin tools (deferred — use ToolSearch only if needed):26- `mem_stats`, `mem_delete`, `mem_timeline`, `mem_capture_passive`2728## PROACTIVE SAVE TRIGGERS (mandatory — do NOT wait for user to ask)2930Call `mem_save` IMMEDIATELY and WITHOUT BEING ASKED after any of these:3132### After decisions or conventions33- Architecture or design decision made34- Team convention documented or established35- Workflow change agreed upon36- Tool or library choice made with tradeoffs3738### After completing work39- Bug fix completed (include root cause)40- Feature implemented with non-obvious approach41- Notion/Jira/GitHub artifact created or updated with significant content42- Configuration change or environment setup done4344### After discoveries45- Non-obvious discovery about the codebase46- Gotcha, edge case, or unexpected behavior found47- Pattern established (naming, structure, convention)48- User preference or constraint learned4950### After user confirmation or rejection51- User confirms a recommendation you made ("dale", "go with that", "sí", "perfect", "vamos con eso", "let's do that", "sounds good", "agreed")52- User rejects an option or approach ("no, better X", "descartemos eso", "not that one", "quiero algo diferente")53- User expresses a preference ("I prefer X over Y", "siempre hacé X", "me gusta más así", "always do it this way")54- User makes a decision after you presented tradeoffs or options55- A discussion concludes with a clear direction chosen — even if the agent proposed it5657### Self-check — ask yourself after EVERY task:58> "Did I or the user just make a decision, confirm a recommendation, express a preference, fix a bug, learn something non-obvious, or establish a convention? If yes, call mem_save NOW."5960Format for `mem_save`:61- **title**: Verb + what — short, searchable (e.g. "Fixed N+1 query in UserList", "Chose Zustand over Redux")62- **type**: bugfix | decision | architecture | discovery | pattern | config | preference63- **scope**: `project` (default) | `personal`64- **topic_key** (optional but recommended for evolving topics): stable key like `architecture/auth-model`65- **content**:66 **What**: One sentence — what was done67 **Why**: What motivated it (user request, bug, performance, etc.)68 **Where**: Files or paths affected69 **Learned**: Gotchas, edge cases, things that surprised you (omit if none)7071### Topic update rules (mandatory)7273- Different topics MUST NOT overwrite each other (example: architecture decision vs bugfix)74- If the same topic evolves, call `mem_save` with the same `topic_key` so memory is updated (upsert) instead of creating a new observation75- If unsure about the key, call `mem_suggest_topic_key` first, then reuse that key consistently76- If you already know the exact ID to fix, use `mem_update`7778## WHEN TO SEARCH MEMORY7980When the user asks to recall something — any variation of "remember", "recall", "what did we do",81"how did we solve", "recordar", "acordate", "qué hicimos", or references to past work:821. First call `mem_context` — checks recent session history (fast, cheap)832. If not found, call `mem_search` with relevant keywords (FTS5 full-text search)843. If you find a match, use `mem_get_observation` for full untruncated content8586Also search memory PROACTIVELY when:87- Starting work on something that might have been done before88- The user mentions a topic you have no context on — check if past sessions covered it89- The user's FIRST message references the project, a feature, or a problem — call `mem_search` with keywords from their message to check for prior work before responding9091## SESSION CLOSE PROTOCOL (mandatory)9293Before ending a session or saying "done" / "listo" / "that's it", you MUST:941. Call `mem_session_summary` with this structure:9596## Goal97[What we were working on this session]9899## Instructions100[User preferences or constraints discovered — skip if none]101102## Discoveries103- [Technical findings, gotchas, non-obvious learnings]104105## Accomplished106- [Completed items with key details]107108## Next Steps109- [What remains to be done — for the next session]110111## Relevant Files112- path/to/file — [what it does or what changed]113114This is NOT optional. If you skip this, the next session starts blind.115116## AFTER COMPACTION117118If you see a message about compaction or context reset:1191. IMMEDIATELY call `mem_session_summary` with the compacted summary content — this persists what was done before compaction1202. Then call `mem_context` to recover any additional context from previous sessions1213. Only THEN continue working122123Do not skip step 1. Without it, everything done before compaction is lost from memory.124All core tools are loaded automatically by the hook at session start — use the fallback ToolSearch above if they are unexpectedly missing.