npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pugbrain

v1.8.1

Published

PugBrain plugin for OpenClaw — brain-inspired persistent memory for AI agents

Readme

NeuralMemory — OpenClaw Plugin

Brain-inspired persistent memory for AI agents. Stores experiences as interconnected neurons and recalls them through spreading activation, mimicking how the human brain works.

This is the OpenClaw plugin for Neural Memory.

Prerequisites

pip install neural-memory

Python 3.11+ required. Verify the install:

nmem-mcp --help

Install

npm install -g neuralmemory

Or add to your OpenClaw config directly.

OpenClaw Setup

Add to ~/.openclaw/openclaw.json:

{
  "plugins": {
    "slots": {
      "memory": "neuralmemory"
    },
    "entries": {
      "neuralmemory": {
        "config": {
          "pythonPath": "python",
          "brain": "default",
          "autoContext": true,
          "autoCapture": true
        }
      }
    }
  }
}

Important: Setting slots.memory = "neuralmemory" disables the default memory-core plugin. Without this, agents may still use memory_search instead of NeuralMemory tools.

Tools

v1.7.0+: The plugin dynamically fetches all tools from the MCP server at startup. Whatever version of neural-memory you have installed, the plugin automatically exposes every tool it provides — no plugin update needed when new tools are added.

With neural-memory>=2.28.0, this includes 39 tools:

| Category | Tools | |----------|-------| | Core | pugbrain_remember, pugbrain_remember_batch, pugbrain_recall, pugbrain_context, pugbrain_todo, pugbrain_stats | | Management | pugbrain_edit, pugbrain_forget, pugbrain_pin, pugbrain_health, pugbrain_evolution, pugbrain_alerts | | Recall | pugbrain_suggest, pugbrain_narrative, pugbrain_explain, pugbrain_recap | | Workflow | pugbrain_session, pugbrain_eternal, pugbrain_auto, pugbrain_habits, pugbrain_review | | Cognitive | pugbrain_hypothesize, pugbrain_evidence, pugbrain_predict, pugbrain_verify, pugbrain_cognitive, pugbrain_gaps, pugbrain_schema | | Training | pugbrain_train, pugbrain_train_db, pugbrain_index, pugbrain_import | | Sync | pugbrain_sync, pugbrain_sync_status, pugbrain_sync_config, pugbrain_telegram_backup | | Infra | pugbrain_version, pugbrain_transplant, pugbrain_conflicts |

If the MCP server is unreachable at startup, the plugin falls back to 5 core tools (remember, recall, context, stats, health) that auto-reconnect on first use.

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | pythonPath | string | "python" | Python executable with neural-memory installed | | brain | string | "default" | Brain name (each workspace can have its own) | | autoContext | boolean | true | Auto-inject relevant memories before each agent run | | autoCapture | boolean | true | Auto-extract memories after each agent run | | contextDepth | integer | 1 | Recall depth: 0=instant, 1=context, 2=habits, 3=deep | | maxContextTokens | integer | 500 | Max tokens for auto-context injection | | timeout | integer | 30000 | MCP request timeout (ms) |

How It Works

OpenClaw Agent
    |
    v
NeuralMemory Plugin (this package)
    |  Spawns + manages lifecycle
    v
nmem-mcp (Python MCP server, stdio transport)
    |
    v
~/.neuralmemory/brains/<brain>.db (SQLite)

The plugin spawns nmem-mcp as a subprocess and communicates via JSON-RPC over stdio. Memories are stored in a local SQLite database.

Troubleshooting

Timeout on startup: If you see MCP timeout: initialize (30000ms), the Python process is slow to start. Fix:

# Pre-install to avoid cold start delays
pip install neural-memory

# Or increase the timeout in your config
"timeout": 60000

"nmem-mcp not found": Ensure neural-memory is installed in the Python environment that pythonPath points to.

Schema validation errors: Upgrade to plugin >=1.7.0 — schemas are now normalized for strict providers (Anthropic SDK, OpenAI strict mode, Gemini). The plugin strips constraint keywords, ensures additionalProperties: false, and adds missing properties fields automatically.

How Schema Normalization Works

The plugin normalizes MCP schemas for cross-provider compatibility:

  • Strips minimum, maximum, maxLength, maxItems (rejected by some providers)
  • Replaces integernumber (Gemini compatibility)
  • Adds additionalProperties: false to all objects (OpenAI strict mode)
  • Ensures every object type has a properties field (Anthropic SDK requirement)

This means the MCP server can use full JSON Schema features while the plugin ensures the schemas work with any LLM provider.

Claude Code (MCP Direct)

For Claude Code users, you can skip the plugin and use MCP directly for the full toolset:

claude mcp add --scope user neural-memory -- nmem-mcp

Links

License

MIT