nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:EliasKaslan/dsh-sidecar
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Ask questions about the current DeepSeek Harness session — without writing a single message into it.
dsh-sidecar adds a right-sidebar panel to the DSH web client. It reads the same model-visible context the main agent is using (system prompt, transcript, tool calls and results, todos, goal, token usage) and answers in the side panel through one auxiliary model call. The main session is never appended to, never steered, and never interrupted.
中文说明 · GitHub EliasKaslan/dsh-sidecar · GitCode EliasKaslan/dsh-sidecar

The main session's context is the most expensive state in an agent run. A normal follow-up question mutates it: another user message, another assistant turn, another compaction boundary. Sidecar gives you a separate channel for "what is going on?", "why did that fail?", "what should we do next?" while the main transcript stays exactly as it was.
The read-only guarantee is mechanical, not a prompt convention:
ctx.sessionQuery.readSurface() / observeSession() only;session.append() or any session mutation;ctx.llm stream with its own message list;localStorage, keyed per session.--dsw-alias-* tokens; light and dark, normal and fullscreen, narrow layouts.| Context details | Dark theme | Markdown |
|---|---|---|
![]() |
![]() |
![]() |
0.2.2-rc.1 (desktop or web profile), Node.js 22.15+.provider / model on the plugin row.The package declares dsh.bundle.patch, so DSH's plugin manager can install it as a bundle:
.tgz, or the published package.dsh-sidecar.sidecar row automatically.# 1) put the repository anywhere, e.g. D:\work\dsh-sidecar
cd $env:USERPROFILE\.dsh\profiles\desktop
# 2) edit package.json:
# dependencies."dsh-sidecar" = "link:D:/work/dsh-sidecar"
# dsh.profile.bundles += "dsh-sidecar"
pnpm install
# 3) restart DSH, or touch ~/.dsh/cordis.patch.yml to ask HMR to recompose
The bundle's own cordis.patch.yml inserts the sidecar row; do not add a second row by hand. That is also why a bare cordis.patch.yml row is not enough for the Plugins page: it loads the plugin, but the app lists only profile bundles. A manifest edit (package.json of the plugin) needs a host restart; a bundle-selection edit is picked up by HMR or the next restart.
The
desktopprofile is managed by the Electron app; the standalonedsh pluginCLI refuses it. Use Add plugin or the manual profile edit above.
git clone <repo> dsh-sidecar
cd dsh-sidecar
npm install
npm run verify # typecheck + build + syntax check + 12 tests
All fields are optional. They belong to the config: block of the sidecar row.
| Field | Default | Meaning |
|---|---|---|
provider |
— | Explicit provider id. Must be paired with model. |
model |
— | Explicit model id. |
maxTokens |
2048 |
Output cap for one side answer. |
maxContextChars |
96000 |
Character budget for the read-only snapshot (not tokens). |
maxHistoryMessages |
8 |
Previous side Q&A messages forwarded as history. |
reasoningEffort |
— | Optional effort override. By default Sidecar does not inherit the main loop's max effort. |
Route resolution order: explicit provider + model on the row → the current session's last request/context route → agentDefaultModel.currentSelection().
┌──────────────────────────── browser ────────────────────────────┐
│ sidebar.right.pane.tab (client plugin, prebuilt CJS bundle) │
│ ├─ ContextCard ← sidecar/snapshot │
│ └─ Thread ← sidecar/ask → sidecar/poll → sidecar/cancel│
└───────────────────────────────┬─────────────────────────────────┘
│ unary /api RPC (Typert Gateway)
┌───────────────────────────────▼─────────────────────────────────┐
│ Sidecar service (host cordis plugin) │
│ ├─ sessionQuery.readSurface / observeSession (read-only) │
│ ├─ buildSnapshot → system prompt + conversation + metadata │
│ └─ ctx.llm.prepareCall → call.stream (own message list) │
└─────────────────────────────────────────────────────────────────┘
The host service is a Cordis TypertRemoteService named sidecar, namespace sidecar. It exposes four methods:
| Method | Purpose |
|---|---|
snapshot(sessionId) |
UI-facing context summary; no model call. |
ask({ sessionId, question, history }) |
Creates a job and returns { jobId } immediately. |
poll(jobId, cursor) |
Returns the text delta since cursor, state, error, usage. |
cancel(jobId) |
Aborts the model stream. |
The gateway discovers the service through the standard typertRemote binding and a prototype marker, so the plugin does not need a generator or a build-time Typert artifact. signal is the literal final parameter of each method, as the source-mode signature contract requires.
system/message in the folded surface.user/message, assistant/message (text + tool-call names/args), tool/result (tool name resolved from the matching call), and developer/message.agent resident state, request/context route, request/header config, token projections, todos, goal, compaction count.readSurface is tried first; strict-surface failures fall back to readSession. A session that cannot be loaded returns sidecar/session-unavailable.ctx.llm.localStorage data in the DSH web origin. The host keeps jobs in memory and drops them after 30 minutes. Clear removes the thread from localStorage; running jobs are cancelled.npm install
npm run build # lib/index.js + lib/client.js
npm run check:syntax # Node parse + ModuleLoader wrapper assertions
npm test # 12 unit/contract tests
npm run typecheck
npm run verify # all of the above
The client half must be a prebuilt self-registering CJS factory. scripts/build.mjs bundles src/client/index.tsx with esbuild, keeps React and the DSH platform modules external, and wraps the output in:
window.__ModuleLoader__.load({
id: "dsh-sidecar",
factory: (require) => { /* ... */ return module.exports }
})
The host half is ordinary ESM with every @deepseek-ai/* import left external, so it resolves against the running DSH installation.
readSurface fallback, cold-lease state, no event mutation, manifest shape, service marker, literal signal position, client bundle purity.DSH_HOME redirected, port 3099) on a second profile: boot graph contains dsh-sidecar, /plugins/??dsh-sidecar/client.js&rev=... returns 200, stale rev 404.session.v4.jsonl.zstd stayed at 17,572 bytes and the same mtime across several side questions.MIT. See LICENSE and THIRD-PARTY-NOTICES.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ai-agent、context。