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

@gaud_erp/paperclip-plugin-agentmemory

v0.4.0

Published

Memory-as-Skill plugin for Paperclip — persistent recall, observation, and search with token budget enforcement

Downloads

1,328

Readme

paperclip-plugin-agentmemory

Memory-as-Skill plugin for Paperclip. Gives every agent persistent memory — recall context, observe decisions, and search history — with configurable token budget enforcement.

Features

  • 3 Agent Toolsmemory-recall, memory-observe, memory-search available to all agents
  • Managed Skill — injects memory protocol into every agent automatically
  • Curator Agent — consolidates observations, compresses history, cleans expired data
  • Token Budget — memory injection capped at a configurable % of context window (default 40%)
  • Knowledge Graph — optional entity/relation extraction via agentmemory
  • Dashboard Widgets — health status + memory stats (memories count, graph nodes/edges)
  • Settings Page — full configuration UI (connection, budget, curator, graph toggles)

Requirements

  • A Paperclip instance with plugin runtime
  • A running agentmemory service (default http://127.0.0.1:3111)

Installation

Via Paperclip UI

  1. Open your Paperclip instance in the browser
  2. Go to Settings > Plugins
  3. Click Install Plugin
  4. Enter the package name: paperclip-plugin-agentmemory
  5. Click Install
  6. After installation, go to Settings > Agent Memory to configure the connection

Via CLI

# Install from npm
paperclip plugin install paperclip-plugin-agentmemory

# Verify installation
paperclip plugin inspect customizar.agentmemory

# Or install with explicit API base
paperclip plugin install paperclip-plugin-agentmemory --api-base http://127.0.0.1:3100

From Source (local development)

git clone https://github.com/gauderp/paperclip-plugin-agentmemory.git
cd paperclip-plugin-agentmemory
npm install
npm run build
npm test

# Install locally into your Paperclip instance
paperclip plugin install "$(pwd)"

Configuration

After installing, configure the plugin under Settings > Agent Memory in the Paperclip UI.

Connection Settings

| Setting | Default | Description | |---------|---------|-------------| | AgentMemory URL | http://127.0.0.1:3111 | URL of the agentmemory service | | Memory Namespace | (company ID) | Namespace for memory isolation | | Bearer Token | (empty) | Auth token (optional for localhost) |

Memory Settings

| Setting | Default | Description | |---------|---------|-------------| | Context Window (tokens) | 128000 | Context window size of the model used by agents | | Memory Budget (%) | 40 | Max % of context window for memory injection | | Default Search Limit | 20 | Max results per search query | | Curator Interval (hours) | 6 | How often the curator runs consolidation | | Auto-Forget (days) | 30 | Remove consolidated observations after N days | | Sketch TTL (days) | 14 | Discard unpromoted sketches after N days | | Knowledge Graph | false | Extract entities/relations automatically | | Auto-Consolidate | true | Consolidate memory after an issue is completed |

How It Works

Agent Memory Protocol

Every agent receives a managed skill that teaches the memory protocol:

  1. At task start — call memory-recall with a description of the task. The agent receives relevant prior context (decisions, patterns, failures) without re-reading files or re-investigating.

  2. During work — call memory-observe to capture:

    • "decision" — architectural or design decisions
    • "discovery" — non-obvious findings
    • "pattern" — recurring patterns identified
    • "failure" — unexpected failures and root causes
  3. When in doubt — call memory-search to check "have we tried this before?" or "how did we solve X?"

Budget Engine

The budget engine ensures memory never overwhelms the context window:

availableBudget = (contextWindow × budgetPercent) - toolOverhead

Results from memory-recall are ranked by relevance and truncated at the budget. The agent receives tokenCount so it knows exactly how much context was consumed.

Curator Agent

A managed curator agent runs periodically (configurable) and after issues are completed:

  • Consolidates raw observations into compact crystals
  • Compresses history via flow compression
  • Auto-forgets observations older than the configured threshold
  • Garbage-collects unpromoted sketches
  • Extracts knowledge graph entities/relations (if enabled)

Agent Tools Reference

memory-recall

Recall relevant context from persistent memory before starting a task.

Input:  { query: string, project?: string, maxTokens?: number }
Output: { context: string, tokenCount: number, sources: string[] }

memory-observe

Store an observation into persistent memory.

Input:  { observation: string, category: "decision"|"discovery"|"pattern"|"failure", project?: string }
Output: { stored: boolean, id: string }

memory-search

Search persistent memory for specific information.

Input:  { query: string, project?: string, limit?: number }
Output: { results: Array<{ content: string, score: number, source: string }> }

Development

npm run dev        # Watch mode (rebuilds on change)
npm run build      # Production build
npm test           # Run tests (vitest)
npm run typecheck  # TypeScript check

Windows (agentmemory sidecar)

On Windows, prefer 127.0.0.1 over localhost (Node may resolve to ::1 while the service binds 127.0.0.1).

# Start agentmemory and wait for health
npm run start:windows

# Smoke test (health, observe, search)
npm run verify:windows

Set AGENTMEMORY_URL=http://127.0.0.1:3111 when running outside these scripts.

Plugin Manifest

| Field | Value | |-------|-------| | Plugin ID | customizar.agentmemory | | Version | 0.2.0 | | Category | connector | | Default URL | http://127.0.0.1:3111 |

License

MIT