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

@digitalforgestudios/openclaw-sulcus

v7.2.1

Published

Thermodynamic memory for OpenClaw agents. Context Engine with constructive assembly and overflow prevention. SIU v2 pipeline (SIVU/SICU/SILU), Apache AGE knowledge graph, reactive triggers, multi-signal recall, interaction-based decay, local-first archite

Downloads

163

Readme

openclaw-sulcus

Thermodynamic memory for OpenClaw agents. Every memory is scored, classified, graph-linked, and subject to decay — your agent remembers what matters and forgets what doesn't.

What Makes Sulcus Different

Context Engine — Sulcus doesn't just store memories, it manages your agent's entire context window. The v7.2.0 Context Engine owns compaction, prevents overflow, and builds context constructively from memory rather than patching transcripts.

Reactive Triggers — Rules that fire on memory events (on_store, on_recall, on_boost, on_decay). Actions include notify, boost, pin, tag, deprecate, webhook, and chain. Your agent can react to its own memory changes.

Thermodynamic Decay — Memories have heat. Frequently accessed memories stay hot; ignored ones cool and eventually fall out of context. Three modes: time-only, interaction-only, or hybrid (default).

Install

openclaw skill install @digitalforgestudios/openclaw-sulcus

Quick Start

Add to your OpenClaw config (openclaw.json):

{
  "plugins": {
    "slots": {
      "memory": "openclaw-sulcus"
    },
    "entries": {
      "openclaw-sulcus": {
        "enabled": true,
        "config": {
          "serverUrl": "https://api.sulcus.ca",
          "apiKey": "sk-YOUR_KEY_HERE",
          "agentId": "my-agent",
          "namespace": "my-agent",
          "autoRecall": true,
          "autoCapture": true
        }
      }
    }
  }
}

Restart: openclaw gateway restart

No API key? The plugin works in local-only mode without cloud sync. Get a key at sulcus.ca → Dashboard → API Keys.

Features

Context Engine (v7.0+)

The Context Engine registers as an OpenClaw context provider with ownsCompaction: true, giving Sulcus full control over how your agent's context window is managed.

  • Constructive assembly — Builds context as a constructed view, not a patched log. Recent turns render at full fidelity; older turns use SILU-generated pointer summaries.
  • Overflow prevention — Emergency brake at 90% budget, cumulative pressure tracking, adaptive compaction intervals based on growth rate.
  • Working memory cache — Per-session cache of tool results with automatic Sulcus ingestion. Large results are stored in memory and replaced with pointers.
  • Session knowledge extraction — Automatically identifies and captures decisions, file paths, commands, and intents from the conversation.
  • 26 configurable thresholds — Every ratio, char limit, and interval is tunable. No hardcoded magic numbers.

SIU v2 Pipeline

Every memory_store fires the full pipeline automatically:

  1. SIVU — Utility scoring. Quality gate that accepts or rejects content. ONNX inference, <1ms.
  2. SICU — Type classification. Auto-classifies into memory types. ONNX inference, <1ms.
  3. SILU — Entity extraction + graph relationships. LLM-powered, async.
  4. AGE graph — Apache AGE knowledge graph updated with entities and edges.
  5. Triggers — Reactive trigger rules evaluated against the event.

Multi-Signal Recall

Recall combines multiple signals for relevance ranking:

  • Semantic similarity (vector search)
  • Full-text search with phrase proximity
  • Thermodynamic heat (access-based decay)
  • Knowledge graph neighbors (entity context)
  • Temporal recency with type-aware half-lives
  • Proper noun and keyword overlap boosts
  • Confidence weighting and conflict detection

SIRU — Adaptive Scoring

The Sulcus Intelligent Recall Unit learns your agent's recall patterns. After 20+ sessions, SIRU training optimizes scoring weights per namespace. Falls back to heuristic defaults until trained.

Reactive Triggers

Rules that fire on memory events:

  • Events: on_store, on_recall, on_boost, on_decay
  • Actions: notify, boost, pin, tag, deprecate, webhook, chain
  • SITU training: Feedback loop improves trigger accuracy over time

Local-First Architecture (v7.2.0+)

  • SulcusLocalClient — HTTP client for a localhost sidecar with health tracking
  • RetryQueue — Bounded in-memory retry buffer for failed remote writes
  • Dual-write — Local-first on store, fire-and-forget sync to cloud
  • Local-first recall — Sidecar is the fast path, cloud is the fallback

Tools

| Tool | Description | |---|---| | memory_store | Store a memory. SIU pipeline fires automatically. | | memory_recall | Multi-signal semantic search with relevance scoring. | | memory_status | Backend status, namespace info, hot nodes, decay mode. | | memory_delete | Delete a memory by ID. Optionally trains SIVU rejection. | | consolidate | Merge and prune cold memories below a heat threshold. | | export_markdown | Export all memories as Markdown. | | import_markdown | Import memories from Markdown. | | evaluate_triggers | Evaluate reactive triggers against an event. | | trigger_feedback | Submit feedback to improve trigger accuracy. |

Memory Types

| Type | Decay Rate | Use For | |---|---|---| | episodic | Fast | Events, sessions, one-off observations | | semantic | Slow | Concepts, relationships, domain knowledge | | preference | Slower | User preferences, opinions, style choices | | fact | Slow | Stable factual knowledge | | procedural | Slowest | How-tos, processes, workflows |

Configuration

| Option | Default | Description | |---|---|---| | serverUrl | — | Sulcus cloud URL (e.g. https://api.sulcus.ca) | | apiKey | — | Sulcus API key | | agentId | — | Agent identifier | | namespace | agentId | Memory namespace | | autoRecall | false | Inject relevant memories before each turn | | autoCapture | false | Auto-store important conversation content | | maxRecallResults | 5 | Max memories injected per turn | | minRecallScore | 0.3 | Min relevance score for auto-recall (0–1) | | boostOnRecall | true | Heat boost on recall (spaced repetition) | | captureOnCompaction | true | Preserve memories before compaction | | captureOnReset | true | Capture session summary on /reset | | captureFromAssistant | false | Capture from assistant messages | | maxCapturePerTurn | 3 | Max auto-captures per turn | | tokenBudget | 10000 | Token budget for context injection | | maxRecallChars | 2000 | Max chars per recalled memory |

Context Engine Config

{
  "contextEngine": {
    "compactMode": "smart",
    "thresholds": {
      "compactionTriggerRatio": 0.75,
      "trimTriggerRatio": 0.65,
      "largeResultChars": 3000,
      "emergencyBrakeRatio": 0.90,
      "emergencyHeadChars": 250,
      "emergencyTailChars": 250,
      "cumulativePressureChars": 50000,
      "highGrowthTokensPerTurn": 10000
    }
  }
}

Hooks

| Hook | Description | |---|---| | before_prompt_build | Injects memory awareness + hot context | | before_agent_start | Auto-recall relevant memories for the turn | | agent_end | Post-turn capture, triggers, knowledge extraction | | build_context | Context Engine assembly (when ownsCompaction enabled) | | on_compaction | Memory preservation before context compaction | | on_reset | Session summary capture |

Links

License

MIT — Digital Forge Studios Inc.