rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Starlight-bananice/dsh-zhushou
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) sidebar assistant plugin: manage and pick assistant personas from the sidebar, then talk to the selected one inside the main DSH session — with its own persona, model, parameters, world book and memory. Leave the selection empty and the session stays fully native.
The problem: you want to switch between assistant personas (a coding mentor, a translator, a story writer…) without juggling separate apps, separate chat windows, or hand-edited system prompts per session.
What dsh-zhushou does: a sidebar 助手 (Assistant) option opens a management panel where you create and edit assistants — name, avatar, tags, workspace binding, model parameters, system prompt with variables, quick replies, injection modes, world book entries, skill switches and memory. Selecting an assistant activates a session-level activation pipeline: every LLM request in that DSH session is rebuilt with the assistant's persona, model parameters, injected blocks, world-book context, memory and time-awareness line. Deselect (or delete) the assistant and the session returns to its native behavior.
Feature highlights:
selection.json per DSH session; the activation pipeline intercepts llm/stream (exact sessionId match, purpose === undefined filters out compaction/session-title/subagent calls) and short-circuits with a rebuilt request{{var}} and {var}) + per-assistant variable overridesctx.skills.list() and enable/disable per assistantsidebar.footer.action text entry (with selected state) + shell.overlay management panel (select/cancel/edit/copy/delete) + settings.section full settings page| Item | Value |
|---|---|
| DSH versions | 0.1.1-rc.2 (mainline master) |
| Runtime | Node ≥ 22 (host) + modern browser (client); no external services |
| Data | ${DSH_HOME \|\| ~/.dsh}/dsh-assistant-panel/ (assistants, selection, memory; overridable via the settings page) |
# From npm (recommended)
dsh plugin --profile web add @bananiceee/dsh-zhushou
# Or pin an exact npm version
dsh plugin --profile web add @bananiceee/dsh-zhushou@0.0.1
# Or from the GitHub repository
dsh plugin --profile web add github:Starlight-bananice/dsh-zhushou
# Or from a local checkout (profile assembly)
dsh plugin --profile web add ../dsh-assistant-panel
# Or a pinned release tarball — immutable and versioned (attached to every GitHub release)
dsh plugin --profile web add https://github.com/Starlight-bananice/dsh-zhushou/releases/download/v0.0.1/bananiceee-dsh-zhushou-0.0.1.tgz
Note: pnpm 11 enforces a 24h
minimumReleaseAgefor freshly published packages — if a same-day release is rejected, append--config.minimumReleaseAge=0to thedsh plugin addcommand.
Note: the built
lib/artifacts are committed to the repository — a git install is ready to run immediately, no build step required. Add the plugin, restart DSH Web, done.
# Or runtime injection without a restart (developer workflow)
# dev_inject_plugin / dsh-super-injector → point at this repository
Then start/restart DSH Web. No configuration is required — the 助手 entry appears in the sidebar footer.
# npm installs: update straight to the latest registry version
dsh plugin --profile web update @bananiceee/dsh-zhushou
# github: installs pin a commit at install time — re-add a newer ref to upgrade:
dsh plugin --profile web remove @bananiceee/dsh-zhushou
dsh plugin --profile web add github:Starlight-bananice/dsh-zhushou#v0.0.1
bundles list; re-adding restores it.dsh plugin --profile web remove @bananiceee/dsh-zhushou
Data left behind: ${DSH_HOME || ~/.dsh}/dsh-assistant-panel/ (settings, selection, assistants, memory) is not deleted — remove it manually if you want a clean slate.
| Feature | Details |
|---|---|
| Assistant profiles | name / avatar (dataURL or URL) / tags / bound workspace |
| Model parameters | model (empty = follow main model) / temperature / Top-P (reserved) / reasoning effort / max tokens / context message count / streaming switch |
| System prompt | template + dual variable syntax ({{var}} and {var}) + per-assistant variable overrides |
| Quick replies | one-click prewritten message templates (bound to an assistant) |
| Injection modes | role (system/user/assistant) + position (before/after/replace) + trigger (always/keywords) |
| World book | keyword hit → priority order → token budget (1024) truncation → injection |
| Skills | enumerate ctx.skills.list() and enable/disable per assistant |
| Memory | global/private pool switches, chat-history reference, time-awareness switch (injects current time / last-chat time / interval as a natural context line) |
| Session selection | selection.json records the chosen assistant per DSH session; selecting injects persona/model/world-book/memory into the main session, deselecting restores native behavior |
| Sidebar UI | sidebar.footer.action text entry (with selected state) + shell.overlay management panel (select/cancel/edit) + settings.section settings page |
Root: /assistant-panel/api (prefix route, same-origin local service, no auth). Unified envelope: { ok: true, data } / { ok: false, error: { code, message, details? } }.
| Method / path | Purpose |
|---|---|
| GET /health | health check (version / dataDir / uptime) |
| GET /assistants · POST /assistants | assistant list summary / create |
| GET /assistants/:id · PUT /assistants/:id · DELETE /assistants/:id | read / partial update / delete (cascades private memory) |
| GET /selection?sessionId= · POST /selection | session-level activation ({sessionId, assistantId\|null}; null = restore native) |
| GET /memory?global=&assistantId= · POST /memory · PUT /memory/:id · DELETE /memory/:id | memory entry CRUD |
| GET /skills?cwd= | skill enumeration (ctx.skills.list) |
| GET /models | provider/model enumeration (default main-model marker, reasoning-effort tiers, context windows) |
| GET /workspaces | workspace enumeration (ctx.workspaceRegistry.list) |
| GET /profile · PUT /profile | plugin identity/localization (userName/locale/timezone/dataDir) |
Data root (overridable via PUT /profile dataDir): ${DSH_HOME || ~/.dsh}/dsh-assistant-panel/
settings.json # plugin settings (userName/locale/timezone/dataDir)
selection.json # session selection state (sessionId → {assistantId, lastChatTs})
assistants/<id>.json # assistant profiles (atomic write: tmp + rename)
global-memory.jsonl # global memory pool
memory/<assistantId>.jsonl # per-assistant private memory pool
# chats/ retired: chat history is carried by DSH sessions (~/.dsh/sessions)
GenerateOptions / LlmCallConfig has no topP field today; the setting is kept, validated and persisted but not passed to ctx.llm.stream. It will be wired once the official API supports it.llm/stream request layer (activation pipeline, see docs/ARCHITECTURE-ACTIVATION.md); the session header and DSH UI still show the original provider/model.rebuilt.system is the assistant-composed block (persona first); if the assistant system prompt is empty the official system prompt is kept.session/event records the original messages (consistency first).ctx.skills.list() returns the skills registered in the current runtime (e.g. vision-skills), not a compile-time full catalog.# Rebuild host + client (needs a DeepSeek Harness checkout; probes DSH_CHECKOUT or common paths)
DSH_CHECKOUT=~/deepseek-harness bash scripts/build.sh
npm run build:client # tsdown → lib/client.js
# Verify committed lib/ is in sync with src/ (full rebuild + byte diff)
npm run verify
# Enable the pre-push guard (auto-runs verify.sh when src/ or build config changes)
git config core.hooksPath .githooks
# Runtime injection without a restart (dsh-super-injector workflow)
dev_build_plugin { "dir": "/path/to/dsh-assistant-panel" }
dev_inject_plugin { "dir": "/path/to/dsh-assistant-panel" }
dev_plugin_status
dev_uninject_plugin { "match": "dsh-zhushou" }
MIT © 2026 Starlight-bananice
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。