treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:flykit-cc/dsh-claude-live
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Run Claude Code headless as a subagent from the DeepSeek Harness, with its steps streaming into the session view while it works.
One tool. One child process. No registry, no role library, no continuable sessions.
Two things that don't work today:
subagent_progress only reports what the child has
already flushed; between polls you see nothing, and the model burns turns
asking. Progress has to be pushed, not sampled.dsh-background-agents writes its own
background-agents/fact event type. The rc.2 persistence read path refuses
to interpret any event outside KNOWN_SESSION_EVENT_TYPES, so the web UI
cannot replay those sessions at all.This plugin pushes progress through an event pair the installed harness
already understands: tool/code-dispatch-start / tool/code-dispatch — the
same pair the core's own Code Mode bridge uses to log nested sub-calls. Both
are documented as log-only: deriveMessages() ignores them, so the digest
lines never re-enter model context, but UIs use them for live per-sub-call
state. The digest therefore renders as sub-rows under the still-running
claude_live call, exactly like nested tool calls under run_code.
0.1.1-rc.2 or later.claude on PATH (or ~/.local/bin, ~/.claude/local, /usr/local/bin,
/opt/homebrew/bin), authenticated.dsh plugin --profile web add dsh-claude-live
dsh plugin --profile headless add dsh-claude-live # optional
For a local checkout, install the directory into the profile with pnpm and add the layer yourself:
cd ~/.dsh/profiles/web
pnpm add file:/path/to/dsh-claude-live
# ~/.dsh/profiles/web/cordis.patch.yml
- insert:
- id: claude-live
name: 'dsh-claude-live'
config:
timeoutMs: 1800000
Restart the harness afterwards. See TESTPLAN.md for the full install +
smoke-test sequence.
claude_live task="Refactor src/calc.js and run its tests" permissionMode="full" cwd="/srv/project"
| Argument | Required | Meaning |
|---|---|---|
task |
yes | Complete, self-contained prompt. The child does not see this conversation. |
cwd |
no | Working directory. Defaults to the harness process directory. |
permissionMode |
no | readonly → --permission-mode plan; full → --dangerously-skip-permissions; default (the default) → Claude's own configuration. |
model |
no | --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.
| Key | Default | Meaning |
|---|---|---|
timeoutMs |
1800000 (30 min) |
Hard cap per run. On expiry the child's whole process group gets SIGTERM, then SIGKILL after 5s. |
command |
auto-detected | Explicit path to the claude binary. Used strictly — a bad value fails loudly rather than falling back. |
Cancelling the tool call (exec.signal) kills the child the same way.
Distinct plugin id (claude-live) and tool name (claude_live), so it runs
alongside dsh-plugin-product-subagents without collision.
MIT
Small by design, and there's plenty to do: streaming for codex and ACP CLIs as the child, cancellation from the UI, richer digests (diffs, token counts), tests against future dsh releases. Issues and PRs welcome.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: developer-tools。