flykit-cc/dsh-claude-live ↗★ 0

dsh-claude-live

以子代理方式无头运行Claude Code并实时流式展示步骤 适合想借Claude Code执行任务的用户,需已装其CLI

套件
dsh-claude-live
相容性
待驗證
Harness 依賴範圍
^0.1.1-rc.2
版本
0.2.0
最近更新
2026年8月27日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:flykit-cc/dsh-claude-live

Usage

claude_live task="Refactor src/calc.js and run its tests" permissionMode="full" cwd="/srv/project"
ArgumentRequiredMeaning
taskyesComplete, self-contained prompt. The child does not see this conversation.
cwdnoWorking directory. Defaults to the harness process directory.
permissionModenoreadonly → --permission-mode plan; full → --dangerously-skip-permissions; default (the default) → Claude's own configuration.
modelno--model override. Omit for Claude's default.

Returns { ok, result, stats: { events, toolCalls, durationMs } }, or { ok: false, error } when the CLI could not start, timed out, was cancelled, or exited without a result event. Every return value is sanitized to strict lossless JSON (no undefined, no NaN/Infinity/-0, no class instances, no cycles) — the harness rejects anything else.

While the run is in flight you see ONE self-updating row under the claude_live call (throttled ≤1/s) — the header tracks the current step, the body is a rolling window of recent digest lines plus a live counter:

claude:Bash · npm test          ← header = current step
▸ claude full: Refactor src/calc.js and run its tests
✱ Reading the module to see what the tests cover
▸ Read: /srv/project/src/calc.js
▸ Bash: npm test
◦ 4 steps · 0:12                ← rolling counter

The row settles to claude:done when Claude finishes. No row-per-step stacking — the transcript stays flat, like the Claude Code CLI.