Borrowing it
Nothing to install: this file belongs to JubaKitiashvili/context-mem. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/JubaKitiashvili/context-mem/main/CLAUDE.mdgit clone --depth 1 https://github.com/JubaKitiashvili/context-memWrote 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.
[](https://agentmods.dev/instructions/jubakitiashvili/context-mem/claude-md)<a href="https://agentmods.dev/instructions/jubakitiashvili/context-mem/claude-md"><img src="https://agentmods.dev/badge/instructions/jubakitiashvili/context-mem/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.
<a href="https://agentmods.dev/instructions/jubakitiashvili/context-mem/claude-md"><img src="https://agentmods.dev/badge/instructions/jubakitiashvili/context-mem/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01038 | $0.01038 |
| Opus 5 | $0.00519 | $0.00519 |
| Sonnet 5 | $0.00208 | $0.00208 |
| Haiku 4.5 | $0.00104 | $0.00104 |
Grade A, and why
context-mem 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
context-mem Project Instructions
Strategic Context (read first)
The source of truth for direction, positioning, pricing, fundraising, roadmap is:
📍 docs/superpowers/plans/2026-04-17-1b-company-architecture.md
Read it before answering any strategic question. Update the Decision Log (§9) whenever a strategic call is made. Plans navigation: docs/superpowers/plans/INDEX.md.
Current phase: v3.4.0 "LLM Wiki Preview" shipped (2026-04-18). Next: v4.0.0 "Cognition" (target 2026-05-22) — full synthesis pages, Obsidian plugin, 8 IDE integrations, Context Protocol v1 RFC, and the post-migration benchmark re-run to backfill docs/benchmarks/synonym-migration-2026-04.md.
Auto-Observe Rule
When working on this project, use mcp__context-mem__observe to store:
- Every benchmark result (scores, per-category breakdown)
- Every decision about search strategy changes
- Every file modification with before/after scores
- Every failed experiment (what was tried, why it failed)
This ensures nothing is lost between sessions.
Git Safety
- ALWAYS commit before any git checkout, revert, or stash operation
- Never overwrite uncommitted working files
- When experimenting, commit each iteration separately
Benchmark Commands
npm run bench # quick mode
npm run bench:full # full benchmarks
node benchmarks/longmemeval.js /tmp/longmemeval-data/longmemeval_s_cleaned.json
node benchmarks/locomo.js /tmp/locomo/data/locomo10.json
node benchmarks/convomem.js --category all --limit 50
node benchmarks/membench.js /tmp/membench-data/MemData/FirstAgent --limit 500
node benchmarks/beam.js /tmp/beam/chats/100K
node benchmarks/lmeb.js /tmp/lmeb/eval_data
Core Search Architecture (v3.2)
BM25 (src/plugins/search/bm25.ts) runs 8 strategies:
- AND-mode (weight 2.0) — high precision
- Phrase matching (1.9) — consecutive keyword pairs
- Entity-focused (1.8) — proper nouns, dates
- Sanitized FTS5 (1.5) — default tokenization
- Relaxed AND (1.2) — entity + top keywords
- OR-mode with synonym expansion (1.0) — broad recall
- Individual keywords (0.5) — long-tail catch 7b. Individual synonym search (0.2) — semantic gap bridge (e.g., "siblings" → "brother")
- Temporal resolution (1.6) — relative dates → absolute keywords
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.
- 10d ago First seen · 81 lines · 1,038 tokens per session scan A 4b810bd7c371
context-mem CLAUDE.md is an instructions file published in the GitHub repository JubaKitiashvili/context-mem (19 stars, last pushed 4mo ago), licensed MIT. It adds 1,038 tokens to every session, about $0.0052 per session on Opus 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.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.