nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Komorebi-Nine/dsh-inline-pi-agent
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Run the pi coding agent loop inside DeepSeek Harness.
The bundle replaces DSH's agent loop (dsh-agent-loop) with a headless pi --mode rpc child process. DSH keeps its sessions, web UI, presets and permission surface; pi keeps its own prompt, tools, compaction and model routing.
agent/assistant-stream frames.pi --mode rpc get_available_models and registers pi's own catalog in DSH's LLM registry. The selector lists exactly the models pi can run, and a selection is forwarded with set_model.steer is forwarded to pi mid-run and claimed once accepted; queued follow-ups run as separate turns in order.request/header that declares the registry's tool schemas).Requirements: DSH 0.2.2-rc.1 or a compatible release, and pi on PATH (or an explicit piPath).
dsh plugin --profile web add github:Komorebi-Nine/dsh-inline-pi-agent
The bundle layer disables agent-loop, DSH-side compaction and tool-result pruning, then inserts the pi-agent row. Restart dsh web, or rely on the profile's patch reload.
Installing from a local checkout instead:
dsh plugin --profile web add link:/absolute/path/to/dsh-inline-pi-agent
| key | default | meaning |
|---|---|---|
piPath |
pi |
pi executable. On Windows, a .cmd/.exe path or a bare name (resolved through cmd.exe). |
model |
empty | Initial route pushed to pi, e.g. deepseek/deepseek-flash. |
models |
empty | DSH route → pi route mapping, when the two catalogs use different names. |
catalog |
true |
Register pi's model catalog into DSH so the selector lists pi's models. |
requestHeader |
true |
Record request/header and request/context per step. Needed for token measurement and for handing a session back to the built-in loop. |
streamPaceMs |
16 |
Reveal cadence for streamed text (8–200 ms). pi delivers deltas in bursts; each tick reveals at most one frame of buffered text. |
streamCatchUpFrames |
6 |
How many ticks a full backlog should take to drain, which sets the reveal rate while text is arriving faster than it is shown. |
streamMaxCharsPerFrame |
64 |
Upper bound on characters revealed by one frame. |
piSessionDir |
~/.dsh/pi-sessions |
Where rebuilt pi session snapshots are written. |
debug |
false |
Protocol and lifecycle diagnostics. |
Override any of them in your profile patch:
- id: pi-agent
config:
piPath: 'C:/Users/me/.pi/agent/bin/pi.cmd'
agent/pre-step. Hooks that rely on it — time-context injection, the per-step flush, plan-mode narration — do not run for pi sessions.contextBreakdown.toolsTokens describes DSH's tool registry rather than pi's tool block; it is declared on request/header so a native-loop resume stays valid. Context pressure itself comes from provider-reported usage.Disable the bundle under Settings → Plugins, or remove the package. The bundle layer disappears with it, so agent-loop is enabled again and existing sessions continue under the built-in loop.
Restart dsh web after toggling the bundle. Switching it on or off replaces the single agent factory and the loop's session projections. A running loader cannot apply that swap atomically; a half-applied reload can show an empty session list even though every session is intact on disk. A restart always restores them. Session data is never touched by the toggle.
If you also changed the deployment default model to a pi route while the bundle was active, set it back to a built-in route before disabling — pi providers only exist while the bundle is loaded:
- id: agent-default-model
config: { provider: deepseek-official, model: deepseek-flash }
CONTRACT.md records the interface, event and protocol contracts the plugin is built against, together with the measurements behind them. scripts/smoke.mjs is a standalone harness (no DSH server) covering text, tool, multi-turn, abort, dispose, resume, steer, followup, token accounting and the model catalog:
node scripts/smoke.mjs text
node scripts/smoke.mjs tool
node scripts/smoke.mjs resume
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent。