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

@m3mory/lossless-m3mory-claw

v0.2.4

Published

Lossless m3mory Claw — DAG-based context management with m3mory long-term memory integration for OpenClaw

Readme

lossless-m3mory-claw

Lossless m3mory Claw — A fork of Lossless Claw that integrates m3mory long-term memory into the Lossless Claw context-engine assembly path.

This is the plugin rebuild workstream for the Lossless m3mory Claw runtime. It is not the m3mory commercial dashboard or API service.

What this is

This plugin combines:

  • Lossless Claw — DAG-based context management, incremental compaction, and token-budget assembly (upstream base, MIT licensed)
  • m3mory — Long-term memory retrieval and verified storage, injected as a dynamic context item inside the Lossless Claw assembly path

The result is a context-engine plugin where:

  • m3mory context appears in the assembled prompt as a dynamic, budgeted context item — not as fake conversation history
  • Compaction runs through the lossless path first, not native lossy fallback
  • Compacted material is not released until transfer to m3mory is verified, or a fallback path is explicitly recorded and logged
  • Chatbot, general agent, and coding agent runs receive different context shapes without polluting transcript history

What it does differently from the hook-only plugin

The previous @m3mory/m3moryclaw-plugin used pre-turn and post-turn hooks for recall and capture. That approach worked for basic memory injection but had four gaps:

  1. It did not register as a context engine — Lossless Claw owned assembly, the plugin was a side passenger
  2. It did not own compaction — native lossy compaction could still fire as a fallback
  3. It did not participate in the lossless overflow path
  4. It did not verify transfer before releasing compacted material

This fork fixes all four gaps by extending the Lossless Claw engine base rather than wrapping it from the outside.

Architecture overview

OpenClaw runtime
  └── lossless-m3mory-claw (context-engine)
        ├── Assembly (per turn)
        │     ├── Summaries (DAG, from upstream LCM)
        │     ├── Fresh raw turns (protected tail)
        │     └── m3mory block (dynamic, budgeted)
        │           ├── Retrieved from m3mory API
        │           ├── Shaped by agent type (chatbot / general / coding)
        │           └── Omitted or shrunk under token pressure
        ├── Ingest / capture (write path)
        │     ├── Strip injected m3mory blocks before capture
        │     ├── Apply noise filters
        │     └── Send durable turns to m3mory API
        ├── Compaction (lossless path first)
        │     ├── Transfer to m3mory before release
        │     ├── Verify transfer receipt
        │     └── Log fallback explicitly if verification fails
        └── Diagnostics (/lcm)
              ├── All upstream LCM diagnostics preserved
              └── m3mory retrieval, transfer, and fallback state added

Status

This package is under active development as part of the Lossless m3mory Claw rebuild (Sprint 0 — WP0).

Current sprint: Sprint 0 — Fork foundation and identity (WP0 complete)

Upcoming:

  • WP1: m3mory client and config layer
  • WP2: Unified identity model
  • WP3: Dynamic retrieval in assembly
  • WP4: Agent-type retrieval policy
  • WP5: Capture on the lossless lifecycle
  • WP6: Verified transfer ledger
  • WP7: Continuity index and overflow path
  • WP8: Extended /lcm diagnostics
  • WP9: Manual tools and setup flows
  • WP10: Tests and docs verification

Installation

Install with OpenClaw's plugin installer. This records the install metadata and load path OpenClaw needs for reliable plugin loading, status provenance, and updates.

openclaw plugins install @m3mory/[email protected]

Do not install this package by raw npm install --prefix ~/.openclaw/extensions, by copying files into ~/.openclaw/extensions, or by running npm install inside the extension directory. Those paths can leave OpenClaw without install metadata, which makes the plugin fail to load or appear as drifted/untracked in openclaw status.

For local plugin development, link a working copy through OpenClaw as well:

openclaw plugins install --link /path/to/lossless-m3mory-claw

Configuration

Configuration schema inherits the upstream Lossless Claw options and adds m3mory-specific capture, recall, transfer, and identity settings. See openclaw.plugin.json for the current schema.

Upstream attribution

This package is a fork of Lossless Claw by Josh Lehman / Martian Engineering, used under the MIT License.

The upstream context-engine architecture, DAG summarization, SQLite conversation store, assembly and compaction machinery, and /lcm diagnostics are derived from the Lossless Claw codebase. New work — m3mory API integration, dynamic context injection, verified transfer, identity model, agent-type policy, and diagnostics extensions — is Copyright (c) 2026 m3mory Inc.

See LICENSE for the full licence text and upstream attribution.

Licence

New fork work: Business Source License 1.1 (converts to MIT on 2030-04-20). Upstream Lossless Claw base: MIT. See LICENSE for details.