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

@luisarg/memory-auto

v0.3.1

Published

Auto-captura memoria DSH (idle, commit, compaction, dispose)

Readme

@luisarg/memory-auto

Cordis bundle that auto-captures session memory for DeepSeek Harness (DSH): it watches sessions and digests transcripts into an OKF vault at checkpoints — idle, git commit, compaction, and session end.

The digest runs in-process: extraction uses the harness's own LLM service (ctx.llm.stream, provider/model configurable, deepseek-official by default), and the resulting OKF entries are written through the vault's MCP server (store_* tools over stdio), keeping the Markdown source of truth and the SQLite FTS5 index in sync. No external CLI and no stored credentials — the plugin uses the same key DSH is configured with.

Install

dsh plugin --profile web add @luisarg/memory-auto

Requires the vault server directory (memory-vault-server in this repository) and either uv on PATH or Python ≥3.11: the bundled launcher.mjs runs the server with uv run and falls back to a pip-managed venv (python3 -m venv + pip install -r requirements.txt) when uv is missing.

Skills

The package ships one skill, registered as a bundled provider (rank 600, the weakest in DSH's local discovery table — a same-named skill in a user or project root still wins):

| Command | Source | What it does | |---|---|---| | /checkpoint-auto | skills/checkpoint-auto/SKILL.md | Explains and steers the automatic capture: the git-commit, compaction, idle and session-end triggers, what an injected [memory-checkpoint] prompt means, and the provider / model / maxTokens / minTranscriptChars / enabled knobs |

It deliberately does not restate the entry vocabulary: that lives in packages/memory-mcp's checkpoint skill and in src/pure.ts, which builds the injected prompt so it keeps working with no skill loaded. Registration happens before the enabled gate — the skill is how a session learns that capture is off and how to turn it back on.

Configuration

| Field | Purpose | Default | |---|---|---| | memoryPath | vault directory | $DSH_MEMORY_PATH or ~/.memories | | serverDir | directory containing the vault server.py | $DSH_MEMORY_SERVER_DIR or $DSH_HOME/memory-vault-server | | provider | LLM provider route (harness registry) | deepseek-official | | model | LLM model id | deepseek-v4-flash | | maxTokens | extraction output cap | 2048 | | minTranscriptChars | minimum transcript size to digest | 200 | | enabled | master switch | true |

Environment variables used at load time: DSH_MEMORY_PATH, DSH_MEMORY_SERVER_DIR.

Behavior

  • session/created — registers the session and resolves the project name (openspec/ present → directory basename; else package.json name; else pyproject.toml [project].name; else first # heading of README.md; else directory basename).
  • session/disposed — digests the transcript, skipping sessions with no activity. A dispose-time ctx.effect batch-digests any session still pending, using the tracked activity summary as a stand-in transcript.
  • agent/status with status idle — runs the auto-capture gate (idleCheckpoint): skips sessions without activity or already delivered, and on the first idle of a session also digests the tracked activity summary.
  • session/event — tracks activity and queues checkpoints:
    • tool/call (also accepted as tool_call) whose args.command matches git commit queues a commit checkpoint.
    • compaction/start queues a pre-compaction checkpoint (fires whenever there is activity, even if one was already delivered).
    • user/message and assistant/message are recorded as tracked activity.
  • agent/pre-step — delivers the queued checkpoint by pushing it onto payload.context (or payload.messages), and the agent writes entries with the store_* MCP tools.

Extraction failures are retried with bounded backoff and logged; a failed digest never takes the agent down.

Development

pnpm install
pnpm build
pnpm test

The bundle manifest (dsh.bundle) makes this package installable through the standard dsh plugin add flow; the patch layer lives in cordis.patch.yml.