nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:XBXyftx/dsh-live-side-chat
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
dsh-live-side-chat)中文 | English
A Codex-style side chat for DeepSeek Harness: open a temporary empty conversation in the right sidebar that follows the current session's work live, ask "how is it going?" or "confirm that conclusion" while the main session keeps working, and destroy it by closing the tab.
It is not a fork. It never copies the main session's history; it runs empty and reads a live digest instead:
seed and no isSeeded, so the tab opens as a genuinely empty conversation. It can be created at any time; it no longer waits for the main session to complete a turn.sideChatDigest session projection, re-read as runtime context on every step. Work that happened after the side chat was created is visible; the digest is partial by design, so the model verifies details with the read-only tools before asserting them.sandbox/mode: read-only), with approvals pinned to never and a tool guard on tools that change state. It can query, never write. The guard denies file-mutating tools (write/edit/…), persistent shells (terminal) and background jobs, and inspects arguments to refuse run_in_background and any sandbox_permissions escalation. One-shot shell queries (ls, git log) are allowed because the sandbox already refuses their writes; run_code is allowed because a PTC preset exposes only that transport. Mutators reached from inside a program hit the same guard. Read-only here means no file effects: the sandbox seam does not constrain network or process lifetime, so shell queries can reach the network — set allowShellQueries: false to allow only the plugin's own read-only tools.| Capability | Description |
|---|---|
| Sidebar entry | Adds a "Side chat" box to the right sidebar's guide page |
/btw |
Opens the side chat from the composer |
| Empty start | The child session opens with no inherited history, so the tab is a real empty conversation |
| Live digest | sideChatDigest projection: goal, one line per settled turn, the open turn, todos, recent tools, counters — bounded and clipped |
| Live context | Re-read and injected as runtime context on every step, so work after creation is visible |
| Status strip | Main-session title, running/idle dot, turn number, todo progress, newest tool, relative activity, open-turn prompt |
| Background digest | Collapsed panel in the strip; expands the exact block the model reads (same renderer as the injection) |
| Empty greeting | Plugin-owned card naming the connected main session, plus three quick questions |
| Composer | Anchored at the bottom of the panel and reusing the main conversation composer chrome: the same elevated rounded card, a read-only pill and a 34px circular send button |
| Model chip | Shows the model the next turn will use and opens a picker over every model the Host can route (grouped by provider); the switch applies from the next turn only, and the main session is never touched |
| Read-only tools | side_chat_main_status (freshest digest + running/idle) and side_chat_main_history (turn / contains filters, bounded, real log lines) |
| Report back | side_chat_report queues a result into the main session; can be disabled in settings |
| Close confirmation | "Close this side chat?" dialog with "Don't ask again"; cancel reopens the tab |
| Destruction | Disposes the agent and removes the session's JSONL directory; success is verified through the persistence seam |
dsh plugin add dsh-live-side-chat
Or from a local checkout while developing:
dsh plugin add /absolute/path/to/dsh-side-chat
Refresh the Web page afterwards; the plugin card appears in Settings → Plugins.
/btw in the composer.side_chat_main_status / side_chat_main_history.Right sidebar panel → "Side chat":
side_chat_report is refused and the side chat stays local.Plugin-row configuration (override the side-chat row in a profile or cordis.patch.yml):
| Field | Default | Meaning |
|---|---|---|
readOnly |
true |
Force the read-only sandbox in side chats |
allowShellQueries |
true |
Allow one-shot shell queries (bash/pwsh); off restricts the side chat to the plugin's own read-only tools |
allowReportToMain |
true (volatile) |
Whether reporting back is allowed; editable in the settings panel |
liveContext |
true |
Inject the main session's digest as runtime context on every step; off leaves only the on-demand status tool |
digestTurns |
12 (4–60) |
Settled main-session turns the digest retains |
historyEventLimit |
40 (5–200) |
Largest number of main-session log lines one history read returns |
preset |
"" |
Agent preset for side chats; empty inherits the main session's preset |
sessionsRoot |
"" |
Session storage root used only for destruction; empty means $DSH_HOME/sessions |
main session (the session you are working in)
│ every committed event → pure incremental fold (bounded)
▼
sideChatDigest (session projection, persisted by the projection cache)
├── runtime context, re-read on every step ──▶ the side chat's model
└── Host-wide control stream ───────────────▶ right-sidebar status strip
sideChatDigest session projection (src/digest.ts): the framework folds it incrementally on every committed event, the projection cache persists it, and the Host-wide control stream pushes it to the browser, so the model, the status strip and restart recovery read the same state.goal), recent settled turns (prompt, final reply, tool count, error count; digestTurns, 4–60), the open turn (prompt, steps, latest assistant text, recent tool calls, error count, start time), the latest whole todo list, recent tool calls, the last error, monotonic counters and lastActivityAt. Every string is clipped and every array is capped.systemPrompt.context({ name: 'side-chat:main-digest', order: 220, text: () => ... }), which re-reads the main session's digest synchronously on every step and renders it as a "Main session live digest (partial; verify any detail with the side_chat_main_history or side_chat_main_status tool before asserting it)" block. Work that happened after the side chat was created is visible; a fork could never show that.side-chat:role prompt section states that the digest is partial and is not the log, and that the model must call the read-only tools before asserting that work is done, that a file changed, or that an error was fixed.src/) creates the hidden child with ctx.agents.create(...), passing no seed and no isSeeded, so its conversation opens empty. Its setup mounts the main session's preset, registers the role prompt, the digest context, the three tools and the read-only guard, and appends sandbox/mode, approval/policy and subagent/descriptor.subagent/descriptor is required: the Web client refuses ordinary history reads for an origin: 'subagent' session, and only a descriptor-backed child can use the subagent history route.client/client.js) contributes two tab types (draft page and addressed conversation), a resource provider that retains the session, the live status strip with the "Background digest" panel, the plugin-owned empty greeting (instead of dsh's shared blank hero, whose workspace chrome does not apply to a side chat), a conversation.composer chain entry that replaces the composer, a shell.overlay close dialog, the /btw client command, and the settings panel.POST /side-chat/<endpoint> route on the web server (create, ask, digest, interrupt, destroy; connection.requestRejection enforces the Host/Origin and browser-credential fence). Plain JSON, owner only.dsh deliberately hides ordinary runtime-context rows from the Chat transcript: isVisibleChatNode in ui-chat excludes kind === 'context' unless the row carries tool changes. The digest is injected as exactly such a context row, so it does not appear in the conversation.
The Background digest panel in the status strip is the supported way for a user to inspect it: it is served by the /side-chat/digest RPC endpoint and rendered by the same function as the injection, so the panel cannot drift from what the model reads. The rendered snapshots do accumulate in the side chat's own history (dsh appends rather than replaces), but only while the side chat itself runs.
session-side-chat-* directories at startup, so a stale one stays until it is removed manually.$DSH_HOME/sessions/<projectKey>/<sessionId>/). With another persistence backend or a custom root, set sessionsRoot; every removal is verified with sessionPersistence.stat() and a failure is reported honestly in the dialog.0.2.1-rc.2 (commit 687f282e).sandbox/mode: read-only guarantees writes fail; bash may still run read-only commands.webServer and connection, so it targets the Web/desktop deployments; a headless profile without a web server leaves the Host half inactive.npm install
npm run typecheck
npm test
npm run build # emits lib/ for `dsh plugin add`
MIT © 2026 XBXyftx
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ai-agent。