/memory:ingestfrom memory
Walks a repo or subtree and populates the memory graph with code symbols, files, markdown headings, and wiki-link references using deterministic extractors. Use when indexing a codebase into memory for project-aware recall.
Ships in memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Indexes a project tree into the graph store with the deterministic
extractors — no LLM calls. Code files (.ts/.tsx/.js/.jsx/.py/.go/.rs) become
file + symbol nodes with DEFINED_IN edges; TypeScript/JavaScript files
also become import nodes with IMPORTS edges for static import and re-export
specifiers. Markdown files become concept nodes (one per file, one per h1–h3
heading) with REFERENCES edges for every [[wiki-link]], plus a stored doc
chunk for later search. Everything dedupes by content hash, so re-ingesting an
unchanged tree is a no-op.
For changed-file freshness, use memory refresh: it stores a per-file content
hash manifest, skips unchanged files, reports added / updated / skipped / stale
graph elements, and supports hook-friendly --staged and --stdin modes. The
first freshness implementation is hook-only; there is no filesystem watcher.
This is the EXTRACTED (deterministic) ingest path only. Conversation/git
(INFERRED) ingestion is not part of this surface.
Index the repository tree into the graph store with the deterministic extractors, then relay the file, node, edge, and doc counts so the user knows what was graphed.
See Memory preconditions. If memory is not initialized, run /memory:init. If mode is not graph, ingest has nothing to write to; tell the user to re-run memory init --mode graph.
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" ingest <path>
<path> is the directory to walk (defaults to .). Add --max-files N to cap
the pass on a large monorepo. node_modules/, dist/, .git/, .red/, and
build/coverage output are ignored by default.
Before graphing a big tree, scope the pass. The CLI always prints the
candidate-file count before processing so you know what you're about to
index. Narrow it with --scope:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" ingest <path> --scope core
--scope | What it graphs |
|---|---|
proceed | every candidate (the default) |
core | core/app source only — skips tests, examples, vendored & lib trees |
libs | shared library/package code only — skips app trees, tests & examples |
generate-ignore | writes a committed .memoryignore and stops (no ingest this run) |
--scope generate-ignore writes a .memoryignore at the repo root — a
committed, human-editable, gitignore-style list of fast-glob patterns (one per
line, # comments allowed). Commit it so the whole team shares the same graph
scope. Every later memory ingest / memory refresh honours it automatically,
with no re-prompt. Hand-edit it any time to add or remove patterns.
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" refresh <file...> --root .
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" refresh --staged --root .
git diff --cached --name-only -z | node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" refresh --stdin --root .
Use refresh after small edits or from git hooks. It is graph-mode only and
does not require a daemon.
The CLI prints the file / node / edge / doc counts. Relay them so the user knows
what was indexed. For refresh, also relay added / updated / skipped / stale
graph element counts. Then use /memory:recall to read the graph back.
memory init --mode graph so recall has structure to search.memory refresh --staged or --stdin from git hooks for daemon-free freshness.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-graph, code-indexing, repo-ingestion, knowledge-graph
npx claudepluginhub reddb-io/red-skills --plugin memory14 skills in this plugin
/context-statusReport the project context stack posture without mutating anything. Use when checking whether agent rules, domain docs, ADRs, Memory graph/telemetry, and LLM Wiki are ready before a large task or self-improvement loop./doctorInspect and maintain the memory graph — list stale nodes (long-unaccessed and never recalled) and, only after explicit confirmation, prune them. Use when the user says "memory doctor", "clean up memory", "what's stale in memory", "prune old memory", or wants a health check of the graph. Graph mode only./exportExport the memory graph to a self-contained, navigable bundle — graph.json (data), graph.html (an interactive node-link view that opens straight from disk), and audit.md (a health summary). Use when the user says "export memory", "visualize the memory graph", "show me the graph", "dump the memory graph", or wants to browse what's stored. Graph mode only.Other plugins' skills for the same job