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

@sidleo3/instruction-scan

v0.2.2

Published

Configurable AGENTS.md file discovery provider for DSH: scan cwd / project / ancestors / global, editable candidates and project-root markers, replacing hardcoded discovery in dsh-agent-instructions.

Downloads

913

Readme

@sidleo3/instruction-scan

Configurable AGENTS.md instruction-file discovery provider for DeepSeek Harness (DSH). Replaces the hardcoded discovery of dsh-agent-instructions with four toggleable layers and user-editable candidates/markers.

Features

  • Four scanning layers: cwd (highest) → project/parents (mutually exclusive) → global (lowest)
  • scanParents mode: Walk every ancestor from cwd upward to filesystem root — no depth limit
  • Custom candidates: Add/remove base instruction file names and local overlay names
  • Custom project-root markers: Configure which files/dirs identify a project root
  • Web GUI card: Settings → Plugins → 指令扫描 — configure everything from the browser
  • Provider interface: Exposes instructionScanProvider on context for agent-instructions to consume

Installation

# From npm
dsh plugin --profile web add @sidleo3/instruction-scan

# From local checkout
dsh plugin --profile web add link:/path/to/instruction-scan

Configuration

interface InstructionScanConfig {
  scanCwd: boolean          // default: true
  scanProject: boolean      // default: true (mutually exclusive with scanParents)
  scanParents: boolean      // default: false (mutually exclusive with scanProject)
  scanGlobal: boolean       // default: true
  instructionFileCandidates: string[]       // default: ['AGENTS.md', 'CLAUDE.md']
  localInstructionFileCandidates: string[]  // default: ['AGENTS.local.md', 'CLAUDE.local.md']
  projectRootMarkers: string[]              // default: ['.git']
  dshHome: string           // default: '~/.dsh'
}

How it works

  1. Discovery: Scans configured layers for instruction files matching candidates
  2. Provider: Exposes results via ctx.instructionScanProvider.list(cwd)
  3. agent-instructions: Modified to consume from this provider (falls back to built-in discovery if unavailable)

Usage

The plugin mounts its workspace-instruction injection pipeline at HOST scope: an unscoped ctx.on('agent/pre-step') listener receives every agent's pre-step regardless of preset, so instruction-scan works in all modes (standard / liangshen / code / …) — no preset editing or special preset selection needed. Installation is fully automatic: the first activation seeds ~/.dsh/dsh-instruction-scan.json (parents mode by default).

  1. Install:
    dsh plugin --profile web add @sidleo3/instruction-scan
    (From a checkout: dsh plugin --profile web add link:/path/to/instruction-scan)
  2. Restart DSH (the host half mounts the pipeline on activation).
  3. Use ANY preset for new sessions. Workspace instructions are injected per the configured four-layer scan.
  4. Toggle layers from Settings → Plugins → AGENTS扫描; changes persist to ~/.dsh/dsh-instruction-scan.json and the pipeline reads disk config on every session start.

No duplicates: the pipeline removes every pending agent-instructions inbox message (including those injected by the built-in dsh-agent-instructions row in each preset) before injecting its own synthesized result, so the built-in discovery is fully replaced.

Development

pnpm build        # tsdown → lib/index.js + lib/client.js
pnpm typecheck    # tsc --noEmit