Logo: Neural Memory

Neural Memory

Organisatioun
Rune-kit
neural-memory

Cross-session cognitive persistence via Neural Memory MCP. Use when needing semantic recall of past decisions / errors / insights across projects — distinct from session-bridge (file-based, project-scoped). Provides hypothesis tracking, evidence chains, and graph-based associative memory.

Add to TypingMind

Iwwersiicht

EditeurRune-kit
Repositoryrune
Skill-Nummneural-memory
Stären
88
Forks
26
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Rune-kit huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Neural Memory an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Rune-kit/rune/tree/master/skills/neural-memory
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rune-kit/rune.git /tmp/rune
mkdir -p .claude/skills
cp -r /tmp/rune/skills/neural-memory .claude/skills/neural-memory
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Neural Memory an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Neural Memory automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Neural Memory net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

neural-memory

Purpose

Bridges Rune's file-based persistence (session-bridge, journal) with Neural Memory MCP's semantic graph. While session-bridge saves decisions to .rune/ files and journal tracks ADRs locally, neural-memory captures cross-project learnable patterns — decisions, error root causes, architectural insights, and workflow preferences — into a persistent cognitive layer that compounds across every project and session.

Without this skill, each project is an island. With it, a caching pattern discovered in Project A auto-surfaces when Project B faces a similar problem.

Triggers

Auto-trigger:

  • Session start → Run Recall Mode (load relevant context before any work)
  • After cook completes a feature → Run Capture Mode (save learnings)
  • After debug finds root cause → Run Capture Mode (save error pattern)
  • After review finds issues → Run Capture Mode (save code quality insight)
  • After rescue completes a phase → Run Capture Mode (save refactoring pattern)
  • After journal writes an ADR → Run Capture Mode (extract to nmem)
  • Session end / before compaction → Run Flush Mode (capture remaining context)

Manual trigger:

  • /rune recall <topic> — search neural memory for a topic
  • /rune remember <text> — save a specific memory
  • /rune brain-health — check neural memory health + maintenance
  • /rune hypothesize <question> — start hypothesis tracking

Calls (outbound)

  • session-bridge (L3): after Capture Mode — sync key decisions back to .rune/ files

Called By (inbound)

  • cook (L1): Phase 0 (resume) + Phase 8 (complete) — recall context at start, capture learnings at end
  • rescue (L1): phase start + phase end — recall past refactoring patterns, capture new ones
  • debug (L2): after root cause found — capture error pattern for future recognition
  • fix (L2): after fix verified — capture fix pattern (cause → solution)
  • review (L2): after review complete — capture code quality insight
  • plan (L2): before architecture decisions — recall past decisions on similar problems
  • sentinel (L2): after security finding — capture vulnerability pattern
  • incident (L2): after resolution — capture incident root cause + fix
  • retro (L2): during retrospective — capture retro insights and patterns
  • session-bridge (L3): Step 6 (cross-project extraction) — extract generalizable patterns
  • journal (L3): after ADR written — extract decision + rejected alternatives
  • context-engine (L3): before compaction — trigger Flush Mode to preserve context

Modes

Mode 1: Recall (Session Start / Before Decisions)

Load relevant context from neural memory before starting work.

Step 1 — Identify Recall Topics Read .rune/progress.md and current task context to determine 3-5 diverse recall topics. Always prefix queries with the project name to avoid cross-project noise.

GOOD: "Rune compiler cross-reference resolution"
GOOD: "MyTrend PocketBase auth session handling"
BAD:  "cross-reference" (too generic, returns all projects)
BAD:  "auth" (returns noise from every project)

Step 2 — Execute Recall Call nmem_recall for each topic. Use diverse angles:

  • Technology-specific: "<project> React state management"
  • Problem-specific: "<project> caching strategy decision"
  • Pattern-specific: "<project> error handling approach"

Step 3 — Synthesize Context Summarize recalled memories into actionable context:

  • Decisions that apply to current task
  • Patterns that worked (or failed) before
  • Constraints or preferences from past sessions
  • Open hypotheses still being tracked

Step 4 — Surface Gaps If recall returns thin results for the current domain, note the gap. Call nmem_gaps(action="detect") if working in a domain with sparse memories.


Mode 2: Capture (After Task Completion)

Extract learnable patterns from completed work and save to neural memory.

Step 1 — Classify What Happened Determine which memory types to create from the completed task:

What happenedMemory typePriorityExample
Chose approach A over Bdecision7"Chose Zustand over Redux because single-store simpler for this scale"
Found and fixed a bugerror7"Root cause was stale closure in useEffect — fixed by adding dep array"
Discovered a reusable patterninsight6"This codebase uses barrel exports for every feature module"
Learned user preferencepreference8"User prefers Phosphor Icons over Lucide for all UI work"
Established a workflowworkflow6"Deploy: build → test → push → verify CI → tag"
Found a fact worth keepingfact5"API rate limit is 100 req/min on free tier"
Received instruction to followinstruction8"Always run prettier before commit in this project"

Step 2 — Craft Rich Memories Each memory MUST use cognitive language patterns for strong neural connections:

BAD:  "PostgreSQL" (flat, no context — orphan neuron)
GOOD: "Chose PostgreSQL over MongoDB because ACID needed for payment processing"

BAD:  "Fixed auth bug" (no root cause — useless for future recall)
GOOD: "Auth cookie expired silently because SameSite=Lax blocked cross-origin. Fixed by setting SameSite=None + Secure flag"

BAD:  "React project structure" (vague — won't match specific queries)
GOOD: "Rune compiler uses 3-stage pipeline: Parse SKILL.md → Transform cross-refs → Emit per-platform files"

Cognitive patterns to use:

  • Causal: "X caused Y because Z", "Root cause was X which led to Y"
  • Temporal: "After upgrading to v3, the middleware broke because of new cookie format"
  • Decisional: "Chose X over Y because Z", "Rejected X due to Y"
  • Comparative: "X is 3x faster than Y for read-heavy workloads"
  • Relational: "X depends on Y", "X replaced Y", "X connects to Y through Z"

Step 3 — Tag and Prioritize Every memory MUST include:

  • Tags: [project-name, technology, topic] — lowercase, specific
  • Priority: 5 (normal), 7-8 (important decisions/errors), 9-10 (critical security/breaking)
  • Max length: 1-3 sentences. If longer, split into focused pieces.

Step 4 — Save Memories Call nmem_remember for each memory. Save 2-5 memories per completed task:

  • A bug fix has: root cause, fix approach, prevention insight
  • A feature has: architecture decision, pattern used, trade-off made
  • A review has: quality issue found, fix suggestion, pattern to avoid

Step 5 — Reinforce Connections After saving, call nmem_recall on the topic to reinforce new neural connections. This activates related neurons and strengthens the memory graph.


Mode 3: Hypothesis Tracking

Track uncertain decisions with evidence over time.

Step 1 — Form Hypothesis When making an uncertain architectural or design decision:

nmem_hypothesize("Redis will handle our session load better than Memcached
                   because our access pattern is 80% reads with complex data types")

Step 2 — Collect Evidence As you work, update the hypothesis with evidence:

nmem_evidence(hypothesis_id, "Redis handled 10K concurrent sessions with
              p99 < 5ms in load test — SUPPORTS hypothesis")

nmem_evidence(hypothesis_id, "Memory usage 2x higher than Memcached estimate
              — WEAKENS hypothesis for memory-constrained deployments")

Step 3 — Make Predictions Create falsifiable predictions:

nmem_predict("If we switch to Redis Cluster, session failover time will drop
              from 30s to < 2s")

Step 4 — Verify Outcomes After deployment/testing, verify:

nmem_verify(prediction_id, outcome="Failover time dropped to 1.2s — CONFIRMED")

Mode 4: Flush (Session End / Pre-Compaction)

Capture remaining context before session ends.

Step 1 — Scan Unsaved Context Review the current session for:

  • Decisions made but not yet captured
  • Errors encountered and their resolutions
  • Patterns discovered during exploration
  • User preferences expressed

Step 2 — Batch Save Call nmem_auto(action="process", text="<session summary>") with a concise summary of the session's key outcomes, decisions, and learnings.

Step 3 — Update Session Bridge If significant decisions were captured, also call session-bridge to sync the most important ones to .rune/decisions.md for local persistence.


Mode 5: Maintenance (Weekly / On-Demand)

Keep the neural memory healthy and useful.

Step 1 — Health Check Call nmem_health() to assess brain status. Key metrics:

  • Consolidation % (low = run consolidation)
  • Orphan % (>20% = prune disconnected memories)
  • Activation levels (low = recall more diverse topics)
  • Connectivity (low = use richer cognitive language)
  • Diversity (low = vary memory types)

Step 2 — Consolidation If brain has >100 memories or consolidation is low:

nmem_consolidate  — merge episodic → semantic memories

Step 3 — Review Queue Call nmem_review(action="queue") to surface memories needing attention:

  • Outdated decisions that may no longer apply
  • Low-confidence memories that need evidence
  • Wall-of-text memories (>500 chars) that should be split

Step 4 — Corrections Fix bad memories:

  • Wrong type → nmem_edit(memory_id, type="correct_type")
  • Wrong content → nmem_edit(memory_id, content="corrected text")
  • Outdated → nmem_forget(memory_id, reason="outdated")
  • Sensitive/garbage → nmem_forget(memory_id, hard=true)

Step 5 — Connection Tracing Use nmem_explain(entity_a, entity_b) to trace paths between concepts. Useful for understanding why certain memories surface together.

Output Format

Recall Report

## Neural Memory Recall — <project>

### Loaded Context
- <memory 1 summary — decision/pattern/insight>
- <memory 2 summary>
- <memory 3 summary>

### Applicable to Current Task
- <how memory X applies>
- <how memory Y applies>

### Gaps Detected
- <domain with sparse coverage>

Capture Report

## Neural Memory Capture — <task summary>

### Saved Memories
| # | Type | Priority | Tags | Content (preview) |
|---|------|----------|------|--------------------|
| 1 | decision | 7 | [project, tech, topic] | Chose X over Y because... |
| 2 | error | 7 | [project, bug, tech] | Root cause was X... |
| 3 | insight | 6 | [project, pattern] | This codebase uses... |

### Reinforced Topics
- <topic recalled to strengthen connections>

Health Report

## Neural Memory Health

| Metric | Value | Status |
|--------|-------|--------|
| Total memories | N | — |
| Consolidation | N% | ✅ / ⚠️ |
| Orphans | N% | ✅ / ⚠️ |
| Activation | level | ✅ / ⚠️ |
| Top penalty | <metric> | Fix: <action> |

### Recommended Actions
1. <action with command>

Constraints

  1. MUST prefix all recall queries with project name — generic queries return cross-project noise that confuses the AI. The ONLY exception is intentional cross-project searches.
  2. MUST use rich cognitive language — flat facts ("X exists") create orphan neurons with zero connections. Every memory MUST include WHY, BECAUSE, or relationship context.
  3. MUST NOT save wall-of-text memories — max 1-3 sentences per memory. Split longer content into focused pieces. Memories >500 chars degrade recall quality.
  4. MUST NOT duplicate file-based state — don't save task progress, file paths, or git history to nmem. Those belong in .rune/ files (session-bridge) or git. nmem is for learnable patterns only.
  5. MUST save 2-5 memories per completed task — a single memory per task is insufficient. Capture the decision, the reasoning, the pattern, and the prevention insight separately.
  6. MUST NOT save sensitive data — no API keys, passwords, tokens, or PII. Mask or omit sensitive values.
  7. MUST tag every memory — always include [project-name, technology, topic]. Tags enable future recall precision.

Sharp Edges

Failure ModeSeverityMitigation
Cross-project noise from generic queriesHIGHAlways prefix queries with project name. Use nmem_explain to trace unexpected connections
Orphan neurons from flat factsHIGHEnforce cognitive language patterns (causal, decisional, comparative). Run nmem_health to detect orphan %
Memory bloat from over-savingMEDIUMCap at 5 memories per task. Run nmem_consolidate weekly. Use nmem_review to prune
Stale decisions applied to changed codebaseMEDIUMInclude temporal context ("As of v2.1, ..."). Verify recalled decisions against current code before applying
Duplicate memories from repeated sessionsMEDIUMBefore saving, nmem_recall the topic first to check for existing memories. Update rather than create duplicates
Loss of nuance from oversimplificationLOWSave rejected alternatives alongside chosen approach. Use nmem_hypothesize for uncertain decisions

Done When

Recall Mode:

  • 3-5 diverse topics recalled with project-name prefix
  • Applicable context summarized for current task
  • Gaps noted if coverage is thin

Capture Mode:

  • 2-5 memories saved with rich cognitive language
  • All memories tagged with [project, technology, topic]
  • Priority assigned (5-10 scale)
  • Connections reinforced via post-save recall

Flush Mode:

  • All significant unsaved decisions captured
  • nmem_auto called with session summary
  • Session-bridge synced if major decisions made

Maintenance Mode:

  • nmem_health run and metrics assessed
  • Top penalty addressed with specific action
  • Review queue processed (outdated/bloated memories fixed)

Cost Profile

  • Recall: ~200-500 tokens (3-5 queries + synthesis)
  • Capture: ~300-600 tokens (2-5 memories + reinforcement)
  • Flush: ~100-300 tokens (auto-process + sync)
  • Maintenance: ~500-1000 tokens (health + consolidate + review)
  • Hypothesis: ~200-400 tokens per hypothesis lifecycle

Heefeg gestallte Froen

Wat mécht de KI-Skill Neural Memory?

Cross-session cognitive persistence via Neural Memory MCP. Use when needing semantic recall of past decisions / errors / insights across projects — distinct from session-bridge (file-based, project-scoped). Provides hypothesis tracking, evidence chains, and graph-based associative memory.

Firwat Neural Memory op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Neural Memory besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Neural Memory an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Rune-kit/rune/tree/master/skills/neural-memory an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Neural Memory benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Neural Memory benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Neural Memory domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Neural Memory gratis?

Jo. Rune-kit huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇