Перейти к основному содержимому
H

dsh-plugins

hy-sde/dsh-plugins

The rich `edit` tool for DeepSeek Harness (replace / patch / apply_patch / hashline modes) with embedded format-on-write and diagnostics — a standalone plugin with no upstream harness changes required.

Установка

dsh plugin --profile web add github:hy-sde/dsh-plugins

README

dsh-plugins

Monorepo of standalone @hy-sde-org/dsh-* plugins for DeepSeek Harness (working fork: deepseek-harness, upstream deepseek-ai/deepseek-harness).

  • Read first: WORKFLOW.md — standalone-first (B) vs fork-first (A), and the build → file: verify → publish → pkg:version pipeline.
  • Phase 0 recon: scripts/recon/ — one command turns a candidate-repo list into clones + codebase-memory indexes + analysis notes.
  • Publication tracker: plugin-list.txt — published versions per plugin + still-to-publish queue.
  • Private plugins: excluded/never-publish plugins live OUTSIDE this repo, in dsh-plugins-private (client UI slots, private API controllers). The publish flow blocks them via scripts/excluded-plugins.list — see WORKFLOW.md → "Private / never-publish plugins".
  • Release infra: scripts/release-public.sh (one package) and scripts/publish-all.sh (all packages in dependency order).

Plugin catalog

Each row is one capability, told as a user story. Rows with several packages are atomic groups — they come from one port (or one engine+tool pair) and only make sense mounted together; a group row's packages share the same origin and the same "why". Single-package rows are self-sufficient. Private/never-publish plugins (client UI, private API controllers) are not here — they live in dsh-plugins-private.

CapabilityPackagesUser storyPorted from
Parallel orchestration layerdsh-orchestration-policy · dsh-llm-slots · dsh-tool-subagent-reportYou run a multi-agent session on a shared inference endpoint: model-call slots stay predictable (FIFO budget, ctx.modelSlots), every continuable child reports findings back before it ends (report tool, child-scoped), and work fans out in parallel by default with a fail-closed isolation guard + review-gate posture on pushes. Only useful together — three packages, one dispatch profile.firstmate
Agent Graph — durable schedulingdsh-graph-control · dsh-graph-stream · dsh-graph-executor · dsh-tool-graph · dsh-graph-wakes · dsh-graph-projection · dsh-graph-hostThe main agent becomes the supervisor of a durable work schedule: view/update/yield_agent_graph add, stop and finish work with deterministic ids and exactly-once claims (CAS control store); children are executable operators with worktree leases; the host wakes the supervisor at durable checkpoints — no polling. The schedule authority for the orchestration plane above.Apache Maka (No. 1)
Agentic git flowdsh-git (engine: ctx.git) · dsh-tool-git (model)The model proposes a conventional commit split for your changes, applies it hunk-aware with log autoplacement and a P2 review gate on push, and works in per-task worktrees with durable leases — commit plan/apply split keeps every step read-only-then-validated.fork packages/git/tool-git
Long-horizon memorydsh-memory · dsh-tool-memory · dsh-memory-extractionThe agent keeps durable project memory across sessions (retain/recall/reflect/learn/memory_edit, first-turn prompt injection), and memory-extraction automatically projects, proposes and commits durable facts at every compaction checkpoint. Full loop = all three.oh-my-pi memory surface + Apache Maka (extraction)
Rich file editingdsh-hashline (engine) · dsh-tool-edit (model)The four-mode edit tool (replace / patch / apply_patch / hashline) with embedded LSP format-on-write and diagnostics, replacing stock str_replace_editor on official releases. hashline is the dependency-free patch engine behind the hashline mode and has no standalone value.oh-my-pi
Internal URL routingdsh-internal-urls · dsh-tool-fs-internal-urls · dsh-tool-fs-search-internal-urlsconflict://, pr://, issue:// resolve through one registry before the FS is touched, so the normal read/write semantics apply to conflicts, PRs and issues — and grep/glob can search them with ripgrep semantics.oh-my-pi
Debuggingdsh-dap (engine) · dsh-tool-debug (model)One debug tool, 28 operations: launch/attach real debuggers (debugpy, lldb-dap, gdb, dlv, …), source/function/instruction/data breakpoints, continue/step/pause, threads, stack traces, scopes/variables/evaluate, memory read/write.oh-my-pi coding-agent/src/dap/* + tools/debug.ts + DSH
Agentic browserdsh-browser (engine) · dsh-tool-browser (model)The model opens/closes real browser sessions over CDP (launch with stealth, attach to the user's own Chrome via local relay + companion extension) and reads ARIA snapshots + screenshots.oh-my-pi
Secret / hardening auditdsh-av (engine) · dsh-tool-av (model)Read-only vault audit: scan for exposed credentials, check hardening, inspect the detector/hardener catalog, list secret names — the tool never returns a secret value.fork @deepseek-ai/dsh-av (macOS av CLI)
OpenWiki enginedsh-openwiki (engine) · dsh-tool-openwiki (model)Model-free repository wiki construction: begin → submit plan → next page → submit page → finish, in-process and resumable (durable run/page manifests, Grounded Claims store). The tools are just the lifecycle verbs over the engine.langchain-ai/openwiki 0.4.3
Logseq graphdsh-logseq-graph (engine) · dsh-tool-logseq (model)Drive a Logseq database headlessly: list/show/search/Datalog-query/upsert/remove plus graph & server lifecycle — a terminal-first alternative to the desktop MCP bridge.Logseq CLI
Code kernelsdsh-code-runtime-kernelsPersistent Python/JS kernels with session state that survives across calls — run_kernel_code with state snapshots, magics/await support. Already mounted in the cordis-plus preset.DSH
Structural code toolsdsh-tool-astast_grep structural search + ast_edit structural rewrite over the packaged native ast-grep engine (AST-aware, not text).oh-my-pi + ast-grep
Codebase memorydsh-tool-codebase-memoryOne-shot codebase-memory queries (index_repository, search_graph, query_graph, trace_path, …) against the local codebase-memory daemon — the same daemon the stdio MCP client fronts.codebase-memory CLI
Library searchdsh-tool-library-searchFree "has this already been built?" across npm/crates.io/Maven/Go/PyPI/RubyGems + GitHub — exact-name ranked, stars/downloads as fitness signals, no API key.DSH
Session healthdsh-session-intelligencesession_health: how did past sessions actually go — outcome classification (with confidence), A–F grading with per-signal penalties, tool-health and context-pressure signals.agentsview (MIT, Kenn Software) + DSH
Stream rulesdsh-stream-rulesTime-traveling behavioral guard: project rules stay dormant until a regex matches the live token stream, then the request aborts, the rule is injected as a system reminder and retried from the same point.oh-my-pi
VCS surfacesdsh-vcsctx.vcs: narrow read-only VCS over the user-installed pi-vcs CLI — rev/staged/worktree diffs with --name-only/--numstat, status counts, branch detection, HEAD info.pi-vcs (native CLI)
Session URL schemedsh-session-urlsession:// handler: your own session history becomes files — list sessions, rendered transcripts, exact event JSON, FTS cross-session search via internal-URL-aware read/grep. Optional companion to internal-URL routing.oh-my-pi internal-urls + DSH
Credential-free web searchdsh-web-search-publicOne web_search call fans out to Startpage/DuckDuckGo/Ecosia/Google/Mojeek in parallel, merges by consensus, respects soft/hard deadlines — zero API keys.oh-my-pi web/search/* + Effect
Zstd framesdsh-zstd-frameZstandard frame primitives (scan / compress / decompress / multi-frame decoder) shared by the session persistence backend (session.jsonl.zstd) and project memory bank (bank.jsonl.zstd).DSH
Archive enginedsh-fs-archivePure-TS multi-format archive library — zip/tar/tar.gz/rar/7z/iso/deb/rpm/cpio/cab/arj/asar plus codecs (gzip, bzip2, LZW, xz, deflate, zstd).oh-my-pi pi-utils

Layout

dsh-<plugin>/                container dir (private root package, docs, tests)
  packages/<pkg>/            publishable package → npm @hy-sde-org/dsh-<name>
dsh-web-search-public/       flat package (publishes from its root)
scripts/                     shared infra: recon, release guards, publish runner

One git repo, one pnpm workspace (pnpm-workspace.yaml — all publishable @hy-sde-org/dsh-* packages, including nested members like dsh-git/packages/git/tool-git), one lockfile. The previous per-plugin git repos are archived under ~/.dsh/archives/dsh-plugins-git/.

Typical commands (from the root)

pnpm install                 # one install for everything (native builds whitelisted)
pnpm -r check                # typecheck all packages
pnpm -r test                 # run every package's tests
pnpm -r build                # build every package
bash scripts/publish-all.sh --check     # validate all packages, no publishing
bash scripts/publish-all.sh --publish   # publish in dependency order (prompts each)
bash scripts/release-public.sh dsh-vcs/packages/vcs --check   # one package

Intra-monorepo dependencies use workspace:^ — pnpm rewrites them to the real version ranges on pnpm publish (never use bare npm publish, it leaks workspace:^ into the tarball).

Похожие плагины