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

@wiolett/agent-memory-mcp

v0.1.5

Published

MCP server backing the Agent Memory Codex plugin.

Readme

Agent Memory

Persistent memory for Codex with separate global and project scopes.

agent-memory helps Codex retain durable knowledge without turning every session into prompt archaeology. It gives the model a structured way to store and retrieve:

  • user preferences and long-lived behavior rules
  • cross-project coding patterns
  • repository-specific workflows and conventions
  • deployment notes, credentials, setup steps, and operational gotchas

The plugin is powered by a bundled MCP server and a Codex skill.

Highlights

  • global memory stored under ~/.agents/agent-memory/
  • project memory stored under <repo>/.memory/
  • deep and lite memory layers
  • semantic and keyword search
  • meaningful memory filenames
  • weighted links between deep memories
  • automatic project-memory setup on first use

Memory Scopes

Global Memory

Global memory is for information that should follow the user across repositories:

  • response style preferences
  • coding habits and tool choices
  • cross-project requirements for model behavior
  • reusable personal workflows

Global memory is always available through global_memory_* tools.

Project Memory

Project memory is for repository-specific knowledge:

  • setup and bootstrap steps
  • deployment and release workflows
  • project conventions
  • undocumented dependencies
  • credentials and environment-specific instructions

Project memory now auto-initializes on first project-memory use in a repository.

Storage Model

Global memory:

~/.agents/agent-memory/
  memories/
  embeddings/
  graph/
  memory.db

Project memory:

.memory/
  memories/
  embeddings/
  graph/
  memory.db
  memory.db-shm
  memory.db-wal

Markdown memory files, embedding files, and graph files are the source of truth. SQLite is used as local cache for fast lookup.

Tool Surface

Project tools:

  • memory_write
  • memory_get
  • memory_read_lite
  • memory_search
  • memory_delete
  • memory_link
  • memory_unlink
  • memory_neighbors
  • memory_subgraph
  • memory_read_all

Optional manual maintenance tool:

  • memory_setup for explicit initialization or repair, though normal use no longer requires it

Global tools:

  • global_memory_write
  • global_memory_get
  • global_memory_read_lite
  • global_memory_search
  • global_memory_delete
  • global_memory_link
  • global_memory_unlink
  • global_memory_neighbors
  • global_memory_subgraph
  • global_memory_read_all

Install

Register the Wiolett marketplace in Codex:

npx @wiolett/marketplace install

Then install agent-memory from that marketplace in Codex.

To enable semantic search and AI-generated memory names, either:

export OPENAI_API_KEY="your-key"
codex

or save the key once through the marketplace installer or the agent_memory_configure MCP tool. Agent Memory stores the saved key in:

~/.agents/agent-memory/config.json

At runtime, Agent Memory uses this precedence:

  1. OPENAI_API_KEY from the environment
  2. stored key from ~/.agents/agent-memory/config.json
  3. no key, which disables embeddings and AI naming

For non-interactive installs, the CLI also supports:

npx @wiolett/marketplace install --openai-api-key-env OPENAI_API_KEY --yes

Usage

At conversation start, the bundled skill tells Codex to read global lite memory first:

global_memory_read_lite()

When a repository should use project memory, just start using project memory tools. The first project-memory call will initialize the local .memory/ store automatically.

From there, use memory tools to store and retrieve reusable knowledge as needed.

Development

Requirements:

  • Node.js 22.5+
  • optional OPENAI_API_KEY for semantic search and AI-generated memory slugs

Useful commands:

npm run typecheck
npm run build
npm test