memx-core: Command for Claude Code

.claude/commands/knowledge.md

knowledge is a command for Claude Code from RNA4219/memx-core. It costs 0 tokens per session (243 once invoked), scanned A, original, MIT.

A command for adding a time-independent fact, definition, policy, or other note to the memx knowledge store. Entries are organized by a scope such as glossary, patterns, or architecture.

In plain words
What is it for?
Use /knowledge with a scope and content to save a knowledge-base entry. Entries can optionally be pinned for quick reference.
Why use it?
It gives a project a persistent place for reusable knowledge instead of keeping important details only in a conversation.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is RNA4219/memx-core's own configuration. It tells Claude Code how to work on memx-core 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 memx-core configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd C:/Users/ryo-n/Codex_dev/memx-core/memx_spec_v3/go && go run ./cmd/mem in knowledge --title "<auto-generated title>" --body "<knowledge content>" --scope "<s.

Reuse

Borrowing it

Nothing to install: this file belongs to RNA4219/memx-core. 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/RNA4219/memx-core/main/.claude/commands/knowledge.md
Clone the repo
git clone --depth 1 https://github.com/RNA4219/memx-core

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 knowledge

README.md
[![agentmods](https://agentmods.dev/badge/commands/rna4219/memx-core/knowledge/github.svg)](https://agentmods.dev/commands/rna4219/memx-core/knowledge)
Your own site
<a href="https://agentmods.dev/commands/rna4219/memx-core/knowledge"><img src="https://agentmods.dev/badge/commands/rna4219/memx-core/knowledge/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 knowledge

Your own site · 80×15
<a href="https://agentmods.dev/commands/rna4219/memx-core/knowledge"><img src="https://agentmods.dev/badge/commands/rna4219/memx-core/knowledge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 243 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00243
Opus 5.5 $0.00000 $0.00097
Sonnet 5.5 $0.00000 $0.00049
Haiku 4.5 $0.00000 $0.00024

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

Security

Grade A, and why

knowledge 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 2mo 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/commands/knowledge.md · 41 lines

What it actually says

Add Knowledge

Add a knowledge base entry to memx knowledge store.

Usage

/knowledge --scope <scope> <knowledge content>

Required Arguments

  • --scope: Working scope (e.g., glossary, patterns, architecture)

Optional Arguments

  • --pinned: Pin the knowledge for quick access

What it does

  1. Creates a knowledge entry with the specified working scope
  2. Knowledge entries are time-independent facts, definitions, policies
  3. Can be pinned for quick reference

Example

/knowledge --scope glossary typed_ref format: memx:{type}:{provider}:{id}
/knowledge --scope architecture --pinned memx uses 4 SQLite stores: short, journal, knowledge, archive

Implementation

Use the Bash tool to run:

cd C:/Users/ryo-n/Codex_dev/memx-core/memx_spec_v3/go && go run ./cmd/mem in knowledge --title "<auto-generated title>" --body "<knowledge content>" --scope "<scope>" [--pinned] --sensitivity internal
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. 2mo ago First seen · 41 lines · 0 tokens per session scan A b090f0412312

Subscribe to this mod's changes

knowledge is a command published in the GitHub repository RNA4219/memx-core (23 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 243 tokens. 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.

Related

knowledge compared with commands from other repositories

knowledge next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledgeRNA4219/memx-coreCommand238mo agoMITA0Claude Code
memoryyonatangross/orchestkitCommand299yesterdayMITA36Claude Code, Cursor
gh-triagemastra-ai/mastraCommand29kyesterdaynoneA19Claude Code
compact-prepsammcj/agentic-codingCommand1682d agoApache-2.0A30Claude Code
analyze-contextRohiRIK/OpenLtmCommand298d agoMITA39Claude Code
claude-flow-memoryruvnet/agentic-flowCommand838yesterdaynoneA12Claude Code
session-memoryruvnet/agentic-flowCommand838yesterdaynoneA0Claude Code