rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Culeot/dsh-batch-pipeline
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A batch-task pipeline plugin for DeepSeek Harness: hand the agent a list of work (50 essays, 60 years of PDFs, 100 listings), and it tracks progress, resumes after restarts, stops when the budget runs out, and checks each product file.
You often ask the agent to do "a big list of similar work". The common trait: one session cannot finish it — 50 essays, interrupted at #30, session restarted, progress gone, start over.
dsh-batch-pipeline gives that work a track:
You may wonder: can't the plugin scan the directory and count files itself? Why must the agent report?
Because "written" ≠ "file exists". The agent may write halfway, save to the wrong path, or keep it in memory without persisting — a directory scan shows "exists or not", not "done or not". So the design is: the agent reports "I finished item N, product is here" after each item, and the plugin records it. If the index matches, it advances; if not, it rejects and tells the agent which item it should be doing.
| Tool | Purpose |
|---|---|
batch_create |
Create a task: name + list + optional budget + optional assert rules |
batch_status |
Progress: current item, spend, estimated total, recent failures |
batch_report |
Report one item done: index + ok/fail + product path |
batch_pause |
Pause |
batch_resume |
Continue (takeover=true to claim after a restart) |
batch_finish |
Archive: returns success/failure stats |
⚠️ Not yet published to npm. Install from a local path with
file:.
# 1. add to your profile
cd ~/.dsh/profiles/<name>
pnpm add dsh-batch-pipeline@file:/path/to/dsh-batch-pipeline
# 2. add a row in the agent preset (~/.dsh/.agent-presets/<preset>/agent.cordis.yml)
- id: batch
name: 'dsh-batch-pipeline'
# 3. restart DSH
No preset? Mount on the profile host plane (~/.dsh/profiles/<name>/cordis.patch.yml):
- insert:
- id: batch
name: 'dsh-batch-pipeline'
Prerequisite: the storage trio (dsh-storage, dsh-storage-json, dsh-storage-domain — web profile ships with them).
Write 50 essays:
batch_create name=putonghua-essays items=[topic1, topic2, ..., topic50] minBytes=500
# after each essay:
batch_report itemIndex=current ok=true product=essays/topicN.md
# all done → auto finishing → archive:
batch_finish
Download 60 years of contest papers:
batch_create name=IMO-papers items=[1959, 1960, ..., 2026]
# after each year:
batch_report itemIndex=current ok=true product=IMO/2024/IMO_2024_chs.pdf
batch_finish
| Option | Default | Description |
|---|---|---|
budgetUsd |
5 | Spending cap in USD (estimated) |
injectEnabled |
true | Inject batch progress (current item/budget) each step |
takeover=truenpm install && npm run build && npm test # build + 32 unit tests
npm run smoke # headless end-to-end (incl. cross-session resume)
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。