memorix: Instructions file for Claude Code

CLAUDE.md

memorix CLAUDE.md is an instructions file for Claude Code from AVIDS2/memorix. It costs 1,073 tokens per session, scanned A, original, Apache-2.0.

Instructions for Claude Code agents to use Memorix, a shared memory system for coding agents. They explain how to load project context and preserve useful engineering knowledge.

In plain words
What is it for?
Use it to load task-focused project context, find recommended starting files, store important reasoning, and retrieve shared project knowledge.
Why use it?
It helps Claude Code continue work with relevant project history and reduces repeated investigation of known decisions, files, and fixes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is AVIDS2/memorix's own configuration. It tells Claude Code how to work on memorix itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything memorix configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AVIDS2/memorix. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AVIDS2/memorix/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/AVIDS2/memorix

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memorix CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/avids2/memorix/claude-md/github.svg)](https://agentmods.dev/instructions/avids2/memorix/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/avids2/memorix/claude-md"><img src="https://agentmods.dev/badge/instructions/avids2/memorix/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memorix CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/avids2/memorix/claude-md"><img src="https://agentmods.dev/badge/instructions/avids2/memorix/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,073 This file is loaded in full into every session.
When invoked 1,073 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01073 $0.01073
Opus 5.5 $0.00429 $0.00429
Sonnet 5.5 $0.00215 $0.00215
Haiku 4.5 $0.00107 $0.00107

Measured 1mo ago against content hash ba79fe1dfcc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memorix CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 96 lines · 1,073 tokens per session scan A ba79fe1dfcc6

Subscribe to this mod's changes

memorix CLAUDE.md is an instructions file published in the GitHub repository AVIDS2/memorix (873 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,073 tokens to every session, about $0.0043 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.