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

@yadsh/dsh-user-correction-miner

v0.2.3

Published

Mine durable project-rule candidates from user corrections in DeepSeek Harness sessions

Readme

@yadsh/dsh-user-correction-miner

Server-side DeepSeek Harness plugin that scans persisted and live session logs for explicit user corrections. The current Phase 1 implementation produces provenance-preserving correction evidence; it does not generate, approve, or apply durable rules.

Installation

Install the published npm package by name:

dsh plugin --profile <profile> add @yadsh/dsh-user-correction-miner

To remove the plugin:

dsh plugin --profile <profile> remove @yadsh/dsh-user-correction-miner

Restart the DeepSeek Harness host to pick up the plugin.

Design principles

  • Corrections are evidence, not durable instructions.
  • Every record retains its source session and event sequence.
  • Historical reads use ctx.sessionQuery; the plugin does not parse persistence backends directly.
  • Live observation stays off the model request path.
  • Stored text is bounded and redacted by default.
  • Plugin failures are contained and never change agent authority.

Commands

  • /corrections — show the current workspace summary.
  • /corrections scan — incrementally scan previous sessions for the current workspace.
  • /corrections scan <N> — scan at most the newest N workspace sessions.
  • /corrections review — show recent mined evidence. This is debug output, not an approval surface.

Configuration

- id: dsh-user-correction-miner
  config:
    enabled: true
    retention:
      maxRecordsPerWorkspace: 1000
    live:
      maxPendingSessions: 256
      maxPendingEventsPerSession: 32
      pendingTtlMs: 1800000
    analysis:
      maxContextEvents: 20
      maxContextBytes: 32768
    privacy:
      redactSecrets: true
      persistRawMessages: false
      maxStoredTextChars: 512

privacy.maxStoredTextChars counts Unicode code points, including the ellipsis added when stored text is truncated. analysis.maxContextBytes counts UTF-8 bytes, also including any truncation ellipsis.

retention.maxRecordsPerWorkspace bounds durable evidence independently for each workspace. After an insert, the oldest records in that workspace are deleted until the limit is met; records belonging to other workspaces are not counted or removed. The storage-domain API currently has no secondary index, so retention performs a workspace-filtered table scan when a record is inserted. Status counting is a single pass and does not materialize or sort records.

Live candidates are also bounded. At most live.maxPendingSessions session IDs and live.maxPendingEventsPerSession matching event IDs per session are kept in memory. Entries expire after live.pendingTtlMs without a session event. Capacity and TTL evictions emit metadata-only warnings; pending state is cleared when the plugin is disposed.

Development

pnpm --filter @yadsh/dsh-user-correction-miner check

License

MIT