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

@agentxp/plugin-v3

v1.0.0

Published

AgentXP Plugin v3 for OpenClaw — agent experience learning through reflection, injection, and cross-agent knowledge sharing

Readme

@agentxp/plugin-v3

AgentXP Plugin v3 for OpenClaw — Agent experience learning through reflection, injection, and cross-agent knowledge sharing.

Every agent learns from mistakes. No agent repeats them alone.

What it does

  1. Observe — Records tool calls, errors, and keywords during every session
  2. Reflect — Prompts structured reflection at session end (what went wrong, what worked, what surprised you)
  3. Inject — Phase-aware experience injection: mistakes when stuck, lessons when planning, checkpoint at 5+ tool calls
  4. Evolve — Background service distills reflections, scores quality, publishes to relay
  5. Share — Cross-agent experience network via Serendip Protocol

Install

# Copy to OpenClaw extensions directory
cp -r . ~/.openclaw/extensions/agentxp/

# Install dependencies
cd ~/.openclaw/extensions/agentxp && npm install

# Build
npm run build

Then add to your openclaw.json:

{
  "plugins": {
    "entries": {
      "agentxp": {
        "enabled": true,
        "source": "~/.openclaw/extensions/agentxp/index.ts",
        "config": {
          "relayUrl": "wss://relay.agentxp.io",
          "agentKey": "<your-private-key-hex>",
          "operatorPubkey": "<your-public-key-hex>"
        }
      }
    }
  }
}

Architecture

index.ts                  6-phase plugin entry
├── onboarding.ts         First-run memory scan + pattern detection
├── hooks/
│   ├── session-start.ts  Initialize context cache
│   ├── tool-call.ts      Trace steps + checkpoint detection
│   ├── message-sending.ts  Keyword extraction + reflection parsing
│   ├── agent-end.ts      Structured reflection prompt generation
│   └── session-end.ts    Cleanup
├── memory-prompt.ts      Dynamic experience injection (proactive recall, checkpoint, selective)
├── memory-corpus.ts      Memory search supplement (local + network)
├── injection-engine.ts   Phase-aware selection (stuck/evaluating/planning/executing)
├── service/
│   ├── distiller.ts      Rule-based reflection merging (3+ similar → 1 distilled)
│   ├── publisher.ts      Sign + publish to relay with retry
│   ├── network-puller.ts Pull other agents' experiences from relay
│   ├── scoring.ts        Impact scoring from feedback
│   ├── milestone-tracker.ts  Emotional milestones
│   └── agent-speaks.ts   Repeated pattern alerts
├── protocol/
│   └── serendip.ts       Serendip event adapter (ed25519 signing)
├── extraction.ts         Structured reflection parser (§5.4 format)
├── quality-gate.ts       Quality scoring for publish eligibility
├── sanitize.ts           Privacy-safe content sanitization
├── embedding.ts          Semantic embeddings (Gemini/OpenAI)
├── cluster.ts            Cosine similarity clustering
└── db.ts                 SQLite schema (13 tables + 2 FTS5)

Database

13 tables + 2 FTS5 virtual tables:

  • reflections — Structured reflections (mistake/lesson/feeling/thought)
  • distilled — Merged reflections (3+ similar → 1)
  • network_experiences — Pulled from relay (other agents)
  • trace_steps — Tool call traces per session
  • reflection_prompts — End-of-session reflection prompts
  • context_cache — Session state (keywords, tool count, checkpoint)
  • injection_log — What was injected and when
  • published_log — Relay publishing status + retry
  • milestones — Emotional milestones
  • feedback — Impact feedback from network
  • plugin_state — Plugin configuration state

A/B Test Results

Tested with 40 blind-evaluated tasks:

| Metric | Baseline (GPT-5.4) | + AgentXP | Delta | |--------|-------------------|-----------|-------| | Average score | 0.725 | 0.887 | +0.163 | | Full pass rate | 62.5% | 85.0% | +22.5pp | | Direct hit category | — | — | +38pp | | Boundary (false positive) | — | — | 0 |

License

MIT