memorix
CLAUDE.md831 starsChanged 9 months agoApache-2.0View on GitHub
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. This project has Memorix MCP tools available for persistent cross-session memory. For broad continuation or a fresh handoff, start with Memory Autopilot before progress files, dev-log reads, ad-hoc file reads, or git archaeology: - MCP: memorix_project_context with the current task - Default first step for non-trivial…
In this repository3 other files it gives its agents.
- examples/CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Default first step for non-trivial coding work: call memorix_project_context with the user's actual task.
- Very specific: line 24
Do not skip project memory just because the initial MCP status says pending
- Very specific: line 33
Use memorix_search when prior project context would help — for example:
- Distinctive: line 40
If no memories exist yet, that's fine — just proceed normally.
- Very specific: line 44
Use memorix_store when you learn something a future session should not have to rediscover:
- Very specific: line 54
Tips: Use concise titles (~5-10 words).
- Very specific: line 60
Use memorix_resolve when a task is done or a bug is fixed.
- Distinctive: line 90
Read that file after the Memory Autopilot step for long-running release or development work.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memorix - Agent Instructions for Claude Code
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.
Using Memorix Memory Tools
This project has Memorix MCP tools available for persistent cross-session memory.
For broad continuation or a fresh handoff, start with Memory Autopilot before progress files, dev-log reads, ad-hoc file reads, or git archaeology:
- MCP:
memorix_project_contextwith the current task - Default first step for non-trivial coding work: call
memorix_project_contextwith the user's actual task. Memorix will choose a task-lensed brief (bugfix, feature, release, onboarding, refactor, docs, test, or general). Treat its "Start here" files as the first project files to inspect. - Claude Code exposes MCP tools through dynamic tool loading. If the tool is not directly visible in the first tool list, search/select the Memorix project context tool before using shell fallback.
- CLI fallback: only after MCP is confirmed unavailable, run
memorix context --task "<current task>"from the shell instead of skipping memory or hand-writing tool calls - Do not skip project memory just because the initial MCP status says
pending
Claude Code starts MCP servers asynchronously. An initial pending MCP status is
not a failure by itself; the tools may appear through dynamic tool loading after
startup. The reliable user-facing fallback is the memorix context CLI command,
but fallback should come after the MCP-first attempt.
When to search memory
Use memorix_search when prior project context would help — for example:
- The user asks about a past decision, bug, or change
- You need to understand why something was designed a certain way
- You're continuing work that started in a previous session
You do not need to search memory for simple, self-contained tasks.
If no memories exist yet, that's fine — just proceed normally.
When to store memory
Use memorix_store when you learn something a future session should not have to rediscover:
| What happened | Type |
| Architecture or design decision | decision |
| Bug found and fixed | problem-solution |
| Non-obvious pitfall or gotcha | gotcha |
| Config or dependency changed | what-changed |
| Trade-off discussed with conclusion | trade-off |
Tips: Use concise titles (~5-10 words). Include filesModified when relevant. Use topicKey for evolving topics. For "why" decisions, use memorix_store_reasoning.
Don't store: greetings, simple file reads, trivial commands.
When to resolve memory
Use memorix_resolve when a task is done or a bug is fixed. This keeps future searches focused on active work.
Tools quick reference
The installed memorix serve --mode lite surface exposes every tool below
except the three marked MEMORIX_MODE=full (set that env var or --mode full
to enable them).
| Tool | Use when |
memorix_search | Find relevant past context |
memorix_detail | Read full content of a specific memory |
memorix_project_context | Get the compact Memory Autopilot brief for a fresh task |
memorix_context_pack | Get structured context when the agent needs refs/freshness |
memorix_store | Save something worth persisting |
memorix_store_reasoning | Save the "why" behind a decision |
memorix_resolve | Mark completed/outdated memories |
memorix_session_start | Load session context (handoff, team coordination) |
memorix_timeline | See chronological context around a memory |
memorix_evidence | Check a memory's source, freshness, and verification state |
memorix_feedback | Record whether a memory helped, conflicted, or was corrected |
memorix_media | Inspect or import controlled local media; generation stays explicitly gated |
memorix_retention | Check memory health and archive expired items |
memorix_promote (MEMORIX_MODE=full) | Turn repeated patterns into permanent skills |
memorix_rules_sync (MEMORIX_MODE=full) | Inspect or sync rules across agents |
memorix_workspace_sync (MEMORIX_MODE=full) | Inspect or migrate workspace integrations |
Active Work
- Repository-wide current state:
ACTIVE_WORK.md - Read that file after the Memory Autopilot step for long-running release or development work.
- It is the only living work-status document. Update it after material cross-session work; do not create parallel progress or dev-log files.
- It must stay public-safe: no local absolute paths, account identifiers, credentials, raw chat transcripts, or local tool state.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

