agentleFS
AVIDS2AVIDS2/memorix/CLAUDE.md

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…

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
  1. Very specific:

    Default first step for non-trivial coding work: call memorix_project_context with the user's actual task.

    line 13
  2. Very specific:

    Do not skip project memory just because the initial MCP status says pending

    line 24
  3. Very specific:

    Use memorix_search when prior project context would help — for example:

    line 33
  4. Distinctive:

    If no memories exist yet, that's fine — just proceed normally.

    line 40
  5. Very specific:

    Use memorix_store when you learn something a future session should not have to rediscover:

    line 44
  6. Very specific:

    Tips: Use concise titles (~5-10 words).

    line 54
  7. Very specific:

    Use memorix_resolve when a task is done or a bug is fixed.

    line 60
  8. Distinctive:

    Read that file after the Memory Autopilot step for long-running release or development work.

    line 90

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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_context with the current task
  • Default first step for non-trivial coding work: call memorix_project_context with 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 happenedType
Architecture or design decisiondecision
Bug found and fixedproblem-solution
Non-obvious pitfall or gotchagotcha
Config or dependency changedwhat-changed
Trade-off discussed with conclusiontrade-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).

ToolUse when
memorix_searchFind relevant past context
memorix_detailRead full content of a specific memory
memorix_project_contextGet the compact Memory Autopilot brief for a fresh task
memorix_context_packGet structured context when the agent needs refs/freshness
memorix_storeSave something worth persisting
memorix_store_reasoningSave the "why" behind a decision
memorix_resolveMark completed/outdated memories
memorix_session_startLoad session context (handoff, team coordination)
memorix_timelineSee chronological context around a memory
memorix_evidenceCheck a memory's source, freshness, and verification state
memorix_feedbackRecord whether a memory helped, conflicted, or was corrected
memorix_mediaInspect or import controlled local media; generation stays explicitly gated
memorix_retentionCheck 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.