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

claude-memory-agent

v2.1.0

Published

Persistent semantic memory system for Claude Code sessions with anti-hallucination grounding

Downloads

735

Readme

Claude Memory Agent

A persistent semantic memory system for Claude Code sessions. Stores memories, tracks decisions, and provides anti-hallucination grounding context.

Features

  • Semantic Memory Storage - Store and retrieve memories using natural language
  • Session Timeline - Track decisions, actions, and observations
  • Anti-Hallucination - Grounding context injection to prevent contradictions
  • Pattern Learning - Store and reuse successful solution patterns
  • Dashboard - Web UI for browsing and managing memories
  • Claude Code Integration - Hooks for automatic session tracking

Quick Start

1. Prerequisites (Install These First!)

| Requirement | Download | Why Needed | |-------------|----------|------------| | Python 3.9+ | https://python.org | Runs the agent | | Ollama | https://ollama.ai/download | Provides embeddings | | Node.js 16+ | https://nodejs.org | For npm install |

After installing Ollama, run these commands:

# Download the embedding model (required!)
ollama pull nomic-embed-text

# Start Ollama (runs in background)
ollama serve

2. Installation

Option A: Install via npm (Recommended)

# Install globally
npm install -g claude-memory-agent

# Run the setup wizard
claude-memory-agent install

# Start the agent
claude-memory-agent start

Option B: Install via npx (No global install)

# Run directly without installing
npx claude-memory-agent install
npx claude-memory-agent start

Option C: Clone from GitHub

# Clone the repository
git clone https://github.com/yourusername/claude-memory-agent.git
cd claude-memory-agent

# Run the installation wizard
python install.py

The installer will:

  • Install Python dependencies
  • Create .env configuration file
  • Configure Claude Code MCP settings
  • Set up session tracking hooks
  • Create platform-specific startup scripts

3. Start the Agent

Windows:

# Option 1: Double-click start-memory-agent.vbs
# Option 2: Use CLI
memory-agent start

Mac/Linux:

./start-memory-agent.sh
# or
python memory-agent start

4. Open Dashboard

memory-agent dashboard
# or open http://localhost:8102/dashboard

CLI Commands

If installed via npm:

claude-memory-agent install    # Run setup wizard
claude-memory-agent start      # Start agent in background
claude-memory-agent stop       # Stop running agent
claude-memory-agent status     # Check if agent is running
claude-memory-agent dashboard  # Open web dashboard
claude-memory-agent logs       # View recent log output

If cloned from GitHub:

python memory-agent start      # Start agent in background
python memory-agent stop       # Stop running agent
python memory-agent status     # Check if agent is running
python memory-agent dashboard  # Open web dashboard
python memory-agent logs       # View recent log output
python memory-agent install    # Re-run installation wizard

Configuration

Configuration is stored in .env (created during installation):

# Server
PORT=8102
HOST=0.0.0.0
MEMORY_AGENT_URL=http://localhost:8102

# Ollama / Embeddings
OLLAMA_HOST=http://localhost:11434
EMBEDDING_MODEL=nomic-embed-text

# Database
DATABASE_PATH=./memories.db
USE_VECTOR_INDEX=true

# Logging
LOG_LEVEL=INFO

See .env.example for all available options.

MCP Tools

The agent provides these tools to Claude Code:

| Tool | Description | |------|-------------| | memory_store | Store a memory with semantic embedding | | memory_search | Search memories by natural language | | memory_context | Load session context and relevant memories | | memory_search_patterns | Find reusable solution patterns | | memory_store_pattern | Save a successful solution pattern | | memory_get_project | Get project-specific information | | memory_store_project | Store project configuration | | memory_stats | Get memory system statistics | | memory_dashboard | Open the web dashboard |

Project Structure

claude-memory-agent/
├── main.py              # FastAPI server
├── config.py            # Centralized configuration
├── install.py           # Installation wizard
├── memory-agent         # CLI tool
├── services/            # Core services
│   ├── database.py      # SQLite with connection pooling
│   ├── embeddings.py    # Ollama integration
│   ├── vector_index.py  # FAISS similarity search
│   └── websocket.py     # Real-time updates
├── skills/              # A2A skill implementations
├── hooks/               # Claude Code hooks
├── .env.example         # Configuration template
└── .gitignore           # Excludes user-specific files

Uninstall

python install.py --uninstall

This removes Claude Code integration but preserves your data.

Troubleshooting

Agent won't start:

  • Check if Ollama is running: ollama serve
  • Check if port is in use: netstat -an | grep 8102
  • Check logs: memory-agent logs

No embeddings:

  • Pull the model: ollama pull nomic-embed-text
  • Check Ollama host in .env

Hooks not working:

  • Restart Claude Code after installation
  • Check ~/.claude/hooks.json configuration

License

MIT