Skip to content
dsh.fish
Bundle

@deepseek-ai/dsh-lens

Repository and agent-runtime analysis skills as an installable DeepSeek Harness plugin: repo recon, DSH enhancement analysis, runtime optimization, publish screening, and DSH plugin-potential assessment.

Source
coffee-man666
License
MIT
Updated
Updated 6 days ago

Readme

# dsh-lens

English | [中文](README.zh.md)

`dsh-lens` is an installable [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH) plugin: a packaged skill provider with five repository- and runtime-analysis workflows.

- `repo-recon` — staged, read-only reconnaissance of local Git projects via parallel subagents.
- `dsh-enhancement-analysis` — map a project's orchestration pain points onto DSH capabilities and produce a prioritized report.
- `harness-runtime-optimizer` — diagnose runtime-policy waste, design controlled experiments, and evaluate policy changes.
- `publish-screen` — screen a repository for sensitive information before or after making it public.
- `dsh-plugin-potential` — assess whether any project's functionality could be packaged as a DSH plugin; evaluation only, never builds it.

The plugin is guidance-only: beyond writing its own reports under the analyzed project's `dsh-scan/` directory, it never modifies repositories and never rolls out runtime policies automatically.

## Install

Requires the `dsh` CLI. Install into a profile (npm):

```sh
dsh plugin --profile <name> add @deepseek-ai/dsh-lens
dsh --profile <name>   # the dsh-lens layer mounts the provider
```

From GitHub (installs sources and runs the `prepare` build; allow the build in the profile's `pnpm-workspace.yaml` when pnpm asks):

```sh
dsh plugin --profile <name> add github:coffee-man666/dsh-lens
```

From a tarball (no build permission needed):

```sh
pnpm pack
dsh plugin --profile <name> add ./deepseek-ai-dsh-lens-0.6.0.tgz
```

Verify the layer with `dsh --profile <name> --dump-config`; the five skills then appear in the session skill catalog via `@deepseek-ai/dsh-tool-skill`.

## Development

```sh
pnpm install   # links @deepseek-ai/cordis and @deepseek-ai/dsh-skill from ../deepseek-harness
pnpm test      # provider registration/loading via the real skill registry
pnpm build     # tsdown → lib/
pnpm verify    # VERSION ↔ SKILL.md frontmatter ↔ provider METADATA ↔ package.json
```

The devDependencies link the sibling `deepseek-harness` checkout, so clone both repositories side by side. Consumers get the peers from their DSH installation.

## License

MIT

Install

dsh plugin --profile web add github:coffee-man666/dsh-lens

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source