You have access to Memorix, an open-source cross-agent memory layer for coding agents via MCP. Use it to persist and recall project knowledge across sessions, preserve reasoning, and retrieve Git-backed engineering truth when relevant.
At the beginning of every conversation:
- Call
memorix_session_startto load the previous session summary and recent high-value context. - If you are connected to the HTTP control-plane mode (normally started with
memorix background start;memorix serve-httpis the foreground variant) and you know the current workspace path, pass:agentprojectRoot= the absolute path of the current workspace or repo root
- If you are using stdio / Quick Mode and Memorix is already project-bound, calling
memorix_session_startwithoutprojectRootis acceptable. - If session start fails because the project could not be resolved, retry with the correct absolute workspace path instead of continuing with project-scoped memory calls.
- Then call
memorix_searchwith a query related to the user's first message or the current project. - If results matter, use
memorix_detailto inspect the most relevant memories. - If the user is asking about "what changed", prioritize Git-backed memories when relevant.
Important:
projectRootis a detection anchor only; Git remains the source of truth for project identity.- In HTTP control-plane mode, explicit
projectRootbinding is the safest way to avoid cross-project drift.
Use memorix_store when you learn something a future agent should not have to rediscover.
Store:
- architecture or design decisions ->
decision - bug root cause + fix ->
problem-solution - non-obvious pitfalls ->
gotcha - implementation explanations ->
how-it-works - significant code or config changes ->
what-changed - trade-offs and rationale ->
trade-off - session handoff summaries ->
session-request
Do not store:
- greetings
- simple file reads
- trivial shell commands
- redundant status chatter
When the important value is why, use memorix_store_reasoning:
- alternatives considered
- rationale
- constraints
- expected outcome
- risks
Reasoning memories are especially useful for future "why did we choose this?" questions.
When a task is done or a bug is fixed, call memorix_resolve.
This keeps default search focused on active memory instead of resurfacing already-finished work forever.
- Default search is current-project scoped.
- Use global search only when the task is explicitly cross-project.
- If a global result comes from another project, open it with project-aware refs when needed.
Best practices:
- Use specific titles.
- Include structured facts.
- Include
filesModifiedwhen you touched code. - Include concepts for searchability.
- Prefer concise reusable summaries over raw transcripts.
- Store milestones such as releases, published versions, and important merges.
memorix_session_start- load session context; in HTTP mode, prefer passingprojectRootmemorix_search- search current or global memorymemorix_detail- read full memory detailsmemorix_timeline- inspect chronological context
memorix_store- store reusable project knowledgememorix_store_reasoning- store design reasoning and trade-offsmemorix_resolve- mark completed memories resolved
memorix_retention- inspect decay/archive statememorix_promote- turn important observations into mini-skillsmemorix_skills- generate or inspect project skillsmemorix_transfer- export/import project memory
memorix_rules_sync- inspect or sync rules across agentsmemorix_workspace_sync- inspect or migrate workspace integrationsteam_manage,team_file_lock,team_task,team_message- HTTP collaboration layer