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

agent-recall-mcp

v3.4.35

Published

Memory Palace MCP server for AI agents

Readme

English · 中文

1. Install the MCP server (Claude Code):

claude mcp add --scope user agent-recall -- npx -y agent-recall-mcp

Generic MCP JSON for other clients:

{ "mcpServers": { "agent-recall": { "command": "npx", "args": ["-y", "agent-recall-mcp"] } } }

2. First message of every new session, run the loop:

At the start of a session, call session_start to load context.
When the human corrects you, call remember with type "correction".
At the end of a session, call session_end to compound what you learned.

What & Why

AgentRecall is not a memory tool. It's a learning loop. Memory is the mechanism; understanding is the goal. Every time you correct your agent — "no, not that version", "put this section first", "ask me before you assume" — that correction is stored, weighted, and recalled next time. After 10 sessions your agent doesn't just remember your project; it understands how you think.

  • Correction-first. When you say "no, that's wrong", we log a CorrectionRecord with severity, holder, and evidence. After N confirmations across sessions it auto-promotes to a cross-project insight.
  • Measurable learning loop. Every correction tracks retrieved_count, heeded_count, recurrence_count, precision. The KPI that matters: did the same bug recur after we warned about it?
  • Five memory types. Episodic, semantic, procedural, narrative, correction — mapped to the canonical cognitive-psychology taxonomy (Squire 2004, Tulving 1972).
  • Local markdown, local by default. Everything lives in ~/.agent-recall/. Open it in Obsidian, grep it in the terminal, version it in git. The default keyword + RRF retrieval is fully local — zero cloud, no API keys, no lock-in. Semantic vector search is optional: set OPENAI_API_KEY and query/content text is sent to OpenAI for embeddings. Leave it unset and nothing leaves your machine.
  • Backed by published math. FSRS-lite decay (Ebbinghaus → SuperMemo → FSRS-6), RRF fusion (Cormack 2009). A Modern Hopfield re-rank primitive (Ramsauer 2020) ships in the codebase but is not wired into the default retrieval path — what runs today is BM25/keyword + RRF, plus optional vector search.

The Automaticity Law. Memory only compounds if it's used automatically, not on demand. Measured on the live corpus: push channels (session_start, session_end, correction hooks) show repeated behavior-changing usage, while pull channels had zero organic calls across 44 projects over weeks of real use — including from the agent that built them. That's why only 5 tools ship by default; the two-verb model (inhale/exhale) carries all the compounding value, and everything else is opt-in via --full.

Injection Precision KPI. Every correction tracks precision = heeded / retrieved — of the times we surfaced this warning, how often did the agent actually act on it? precision < 0.3 → archive candidate (noise we should stop injecting). precision ≥ 0.8 → promote faster (high-signal, compound it sooner). This is the measurability claim: a memory system you can prove is working.


Why AgentRecall vs X?

| Feature | AgentRecall | Mem0 | Zep | Letta | |---|---|---|---|---| | Correction tracking + precision KPI | ✅ Core feature | ❌ | ❌ | ❌ | | Behavioral calibration across sessions | ✅ | ❌ | ❌ | Partial | | Local markdown, zero cloud by default | ✅ (vector search optional, opt-in) | ❌ cloud | ❌ cloud | ❌ cloud | | MCP native | ✅ | ✅ | ✅ | ✅ | | FSRS-lite decay + keyword/RRF retrieval | ✅ | ❌ | ❌ | ❌ | | Free / open source | ✅ MIT | Freemium | Freemium | Apache | | Works offline | ✅ (default; vector search needs network) | ❌ | ❌ | Partial |

The difference: AgentRecall is the only system that tracks whether the agent actually acted on a warning — not just that it stored one.


Quick Start

Visual setup guide — all 13 clients, copy-paste prompts: open warroom/install.html from the repo (or after unzipping the War Room release) in any browser. No server needed.

MCP Server — for AI agents

# Claude Code
claude mcp add --scope user agent-recall -- npx -y agent-recall-mcp

# Cursor — .cursor/mcp.json
{ "mcpServers": { "agent-recall": { "command": "npx", "args": ["-y", "agent-recall-mcp"] } } }

# VS Code — .vscode/mcp.json
{ "servers": { "agent-recall": { "command": "npx", "args": ["-y", "agent-recall-mcp"] } } }

# Windsurf — ~/.codeium/windsurf/mcp_config.json
{ "mcpServers": { "agent-recall": { "command": "npx", "args": ["-y", "agent-recall-mcp"] } } }

# Codex
codex mcp add agent-recall -- npx -y agent-recall-mcp

Skill (Claude Code only):

mkdir -p ~/.claude/skills/agent-recall
curl -o ~/.claude/skills/agent-recall/SKILL.md \
  https://raw.githubusercontent.com/Goldentrii/AgentRecall/main/SKILL.md

SDK & CLI

npm install agent-recall-sdk        # JS/TS apps
npx agent-recall-cli recall "topic" # terminal & CI
import { AgentRecall } from "agent-recall-sdk";
const memory = new AgentRecall({ project: "my-app" });
await memory.capture("What stack?", "Next.js + Postgres");
const ctx = await memory.recall("rate limiting");

5 Memory Layers

The canonical cognitive-psychology taxonomy mapped to your agent's filesystem:

| Layer | Type | What it holds | Path | |---|---|---|---| | 1 | Episodic | What happened in each session, chronologically. Auto-written during work. | journal/ | | 2 | Semantic | Topic-clustered facts with [[wikilinks]]: Architecture, Goals, Blockers. | palace/rooms/ | | 3 | Procedural | IF-THEN production rules — reusable how-tos. | palace/skills/ | | 4 | Narrative | Project phases: Goal → What was hard → How solved → Synthesis. | palace/pipeline/ | | 5 | Correction | Behavioral calibration: rules the agent must follow, with precision KPIs. | corrections/ | | + | Awareness | Cross-project insights promoted from N-confirmed corrections — the compounding layer. | palace/awareness |

All layers share one canonical naming grammar (<scope>/<type>/[<topic>/]<temporal>--<slug>.md) so any agent can compose retrieval paths from intent. Existing files keep working via a legacy_path view — no migration needed.


The Session Loop

| Command | When | What it does | |---|---|---| | 🔴 /arstatus | First — every session | Status board across ALL projects: pending work, blockers, relevance scores. Pick by number. | | /arstart | After picking a project | Load deep context: palace rooms, corrections, task-specific recall. | | 🔴 /arsave | Last — every session | Write journal + palace consolidation + awareness compounding + semantic prefetch. | | /arsaveall | End of day (multi-session) | Batch save all parallel sessions — scan, merge, deduplicate, done. | | /arbootstrap | First install / migrating | Scan your machine for existing projects and import them. |

Without /arstatus, a fresh agent has zero orientation. Without /arsave, nothing compounds. These two are the entire loop.


🌙 Dreaming — Nightly Consolidation (optional)

An autonomous overnight agent that runs while you sleep and compounds everything your sessions wrote during the day.

| What it does | Result | |---|---| | Mine patterns across all projects | Repeated corrections promote to palace/awareness | | Ebbinghaus salience decay | Low-signal rooms fade; your palace stays sharp | | Journal rollups | Entries >30 days compress into summary rooms | | Awareness graduation | Corrections confirmed N× times go cross-project | | Telegram report | Nightly summary: learned · decayed · crystallized |

Requires a live Claude Code login. If the session expires, dream skips with a Telegram alert.

# Fix expired login (run this when dreaming stops)
claude login

Dream reports are saved locally to ~/.agent-recall/dreams/YYYY-MM-DD.md.


🖥️ War Room Dashboard — Download & Deploy

A local-first visual dashboard for your memory: an activity calendar, per-project status, corrections, and insights — all rendered from your local ~/.agent-recall/ data. Fully offline (vendored assets), no Node and no build step.

  1. Download ar-warroom-v3.4.32.zip from the latest GitHub Release.
  2. Unzip it, then serve it locally:
cd warroom
python3 -m http.server 8080
  1. Open http://localhost:8080/AgentRecall.html

This is the recommended onboarding for Hermes / OpenClaw / OpenCode users too — one offline page to see everything your agent has learned.


Architecture

TypeScript monorepo, 4 published packages: core (storage + tool logic), mcp-server (thin MCP wrappers), sdk (programmatic API), cli (the ar command). All memory is local markdown under ~/.agent-recall/projects/<slug>/journal/, corrections/, and palace/ (rooms, skills, pipeline, awareness). An optional Supabase mirror adds pgvector semantic recall; all-local stays the default.

Platform Compatibility

| Platform | Mechanism | Status | |---|---|---| | Claude Code | MCP server + skill + hooks | ✅ Primary | | Cursor · Windsurf · VS Code (Copilot) · Codex | MCP server | ✅ | | Any JS/TS app | SDK (agent-recall-sdk) | ✅ | | Terminal / CI | CLI (ar) | ✅ |


Links

Contributing

PRs welcome. Open an issue first for anything substantive — the design is opinionated and grounded in published research; we want changes grounded the same way.

License

MIT — see LICENSE.