dayyanj

Nmem — AI skill for Claude Code

AI community

Give your AI agents a brain that gets smarter over time.

How to install Nmem

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dayyanj/nmem and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Nmem does

Give your AI agents a brain that gets smarter over time. 6-tier memory hierarchy with hybrid search, background consolidation, confidence decay, and cross-agent knowledge promotion. Ships with CLI, MCP server for Claude Code/Cursor, and importers for Claude Code, ChatGPT, markdown, and JSONL.

Alternatives in AI

  • Codeseek — Rust-powered code intelligence CLI for AI coding agents 764 ★
  • Openclaw Auto Dream — Automatic memory consolidation for OpenClaw agents — like sleep for your AI 545 ★
  • onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★

README

nmem

**English** | [简体中文](docs/i18n/zh-hans/README.md) | [日本語](docs/i18n/ja/README.md) | [한국어](docs/i18n/ko/README.md) | [Español](docs/i18n/es/README.md) | [Português](docs/i18n/pt/README.md) | [Français](docs/i18n/fr/README.md) | [Deutsch](docs/i18n/de/README.md) | [Русский](docs/i18n/ru/README.md)

**Cognitive memory for AI agents**: hierarchical, self-refining, and framework-agnostic.

nmem gives your agents a brain that learns. Not just storage and retrieval, but active cognition — automatic promotion, belief revision, nightly retrospectives, social learning across agents, and token-tracked prompt injection.

**We're actively looking for contributors.** nmem is intentionally built as a community-driven project. Code, docs, ideas, bug reports, independent benchmarks, and adversarial testing are all welcome. See [Contributing](#contributing) below.

How it works

Memory flows upward: entries earn their way

graph LR
    subgraph session [" "]
        W["Working Memory\nsession slots"]
    end

    subgraph shortterm [" "]
        J["Journal\n30-day log"]
    end

    subgraph longterm [" "]
        L["Long-Term Memory\nper-agent, permanent"]
    end

    subgraph shared [" "]
        S["Shared Knowledge\ncross-agent, canonical"]
    end

    W -- "session end" --> J
    J -- "importance ≥ 7\nor accessed 5x" --> L
    L -- "≥ 2 agents\naccessed it" --> S

    style W fill:#e8f5e9,stroke:#4caf50,color:#1b5e20
    style J fill:#fff3e0,stroke:#ff9800,color:#e65100
    style L fill:#e3f2fd,stroke:#2196f3,color:#0d47a1
    style S fill:#f3e5f5,stroke:#9c27b0,color:#4a148c
    style session fill:none,stroke:none
    style shortterm fill:none,stroke:none
    style longterm fill:none,stroke:none
    style shared fill:none,stroke:none

Plus two specialized tiers: **Entity Memory** (per-object collaborative workspace) and **Policy Memory** (governance rules with write permissions).