rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Eclipse-NotFound/dsh-flow-queue
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A visual flow editor for DeepSeek Harness, in the right sidebar. Draw prompts, model switches, commands, condition branches, loops, checkpoints, subagent fan-outs and cross-session sends/waits as one directed graph; the Harness executes it in connection order — and only at turn boundaries. A Fleet view layers the workspace's collaborating sessions above the flows.
In DSH a /model switch applies immediately. If a turn is still running — or waiting to retry a dropped connection — the retry goes out with the new model, and "this turn" is silently served by a different model than it started with.
This plugin turns model switches, prompt delivery and command execution into graph nodes. The engine advances only after turn/end is committed and the session's Agent is idle, so:
From zero to a running Prompt → Model switch → Branch flow.
dsh plugin --profile web add github:Eclipse-NotFound/dsh-flow-queue
Then restart the Harness web runtime — bundles are composed at startup — and reload the page. Requires DSH >=0.2.1-rc.1 <0.3.0.
Check: the plugin's icon appears at the sidebar foot beside Settings; hovering it says "Open the flow queue".
Click that icon, or the "Flow queue" card on the right sidebar's start page. The right sidebar gains a "Flow queue" tab, and the canvas lives inside it. Next to the title sit two view toggles, "Flow" and "Fleet" — this tour stays on "Flow" ("Fleet" manages the workspace's collaborating sessions).
Check: the run chip beside the title reads "Idle"; the Start button on the top bar's right side is greyed out while the canvas is empty (the ⋯ menu sits farthest right); the panel footer shows v0.7.0.
In the second button row click +Prompt, then +Model switch, then +Branch. Each click adds a card to the canvas; the first card you added — the Prompt — is where the run starts.
Check: three cards on the canvas with the type chips Prompt / Model switch / Branch.
Clicking a card (a press that does not move) opens its inspector drawer under the canvas, headed "Edit step"; ↓ closes it.
Ctrl/⌘ + Enter (losing focus also saves). Leave "Model" on "Not set (keep current)".FLOW-OK.Check: the three card bodies now show the prompt's first line, provider / model, and Contains text · FLOW-OK.
Drag from the Prompt card's right dot onto the Model-switch card (or click the dot, then click the target card), then connect Model switch to Branch. Prompt and Model switch have one output dot (hover: "Next · Click a connection to remove it"); Branch has two, "Yes" and "No". To make the branch's direction visible, add a +Checkpoint card and connect "Yes" to it.
Check: the three cards are chained by two connections; with the checkpoint added, the "Yes" dot carries a connection too.
Press "Start". The prompt is delivered into the current session as a real user message; only after that turn ends — right before the next input — does the session switch models; the branch then evaluates the prompt turn's reply. Configuration steps like Model switch never overwrite the outcome conditions read.
Check:
FLOW-OK takes "Yes" and stops at the checkpoint — the chip reads "Waiting" and "Continue" finishes the run; without it the flow ends directly, leaving the checkpoint card "Pending".Two running rules: edit the graph only while it is stopped (edits are rejected mid-run — "Pause" or "Stop" first), and pressing "Start" again resets every step's status and reruns from the top.
To reuse this flow later, save it via ⋯ → Packages; all nine step types are described under "Step types" below.
The plugin registers one right-sidebar tab, and the whole canvas lives inside it — no separate window:
⋯ menu (auto layout, packages, reset, clear).+Prompt +Fan-out +Send message +Wait session +Model switch +Command +Branch +Loop +Checkpoint; one click adds a step.− / + / ⤢ at the bottom-right control zoom.⋯ → Packages saves, loads and deletes reusable flows in the same panel.Two entry points open it: the icon beside Settings at the sidebar foot, and the "Flow queue" card on the right sidebar's start page. That start page lists one card per tab type and clips its overflow instead of scrolling, so with enough plugins installed the last cards become unreachable; the plugin's own card walks up to the container that clips and turns on scrolling while it is mounted (the original inline styles come back when it unmounts).
| Type | What it does | Outputs |
|---|---|---|
| Prompt | Delivers one user message (optional image and file attachments; optional model for this step only) | next |
| Model switch | Switches the session's model at the next turn boundary, including the reasoning effort when the model declares levels | next |
| Command | Runs a slash command (/compact, /plan, …) through commands.execute |
next |
| Branch | Evaluates a condition and picks a path | yes / no |
| Loop | Follows "again" until the exit condition holds or the iteration cap is reached | again / exit |
| Checkpoint | Stops and waits for a human to press continue | next |
| Fan-out | Sends one shared prompt to up to 8 throwaway subagents (spawn backend) — each lane may force its own provider/model/effort or inherit the session route — then aggregates every lane's output into the flow outcome. Collection is all, k-of-n (cancel the stragglers once k finish) or first. The parent turn is untouched, so the fan-out waits beside the boundary, never across it |
next |
| Send message | Delivers one message to another fleet session (persisted first, backoff retries, strictly ordered per target; a dead letter blocks its queue until revived). May attach this session's touched-file list (file-tool intents only, blind spots labelled) | next |
| Wait session | Waits until the target finished a turn after the wait started and is idle, or until its latest turn text contains a marker ([[FLOW:REPORT by default) |
next |
A condition is evaluated against the most recent outcome (for a prompt step: the assistant text of that turn plus its tool failures; for a command step: the command result):
alwaysregex against the previous turn (multiline)contains a literal stringmarker — contains a completion marker (default [[FLOW:DONE]]; ask the model to print it when finished)tool failed last turn (a tool/result error in that turn)last step failed (the command failed, or the turn ended in error/abort)model judges (natural-language condition, e.g. "latency is below 10ms"): reaching the step starts one minimal judge turn — about 40 instruction tokens plus the condition verbatim; the model verifies with the cheapest sufficient check and answers YES or NO on the first line, which is the only thing the engine parses. The card shows the verdict and a reason excerpt; a reply without YES/NO fails the step (no-decision). No global tool is registered and no session's tool table changes; inside a loop every iteration judges fresh.attachments.saveImages, sent as an image content part);attachments.admitEncodedFile → file content part);/ commands and skills, @ file references — the prompt editor keeps the composer's two habits:
/ at a line start opens the session's command catalog (host commands such as /compact) and its skill catalog; ↑↓ walks, Enter/Tab accepts, Escape closes. A command inserts /name, a skill inserts "Use the {name} skill: " for the model to load from its catalog.@ opens workspace file references (native @file semantics: the path is referenced, content is not injected — the model reads it itself); picking a directory keeps the menu open on its trailing slash./compact) runs as that command at the turn boundary instead of being sent to the model — the composer's "a command line is never silently downgraded to a plain prompt" rule, kept for queued steps too. Multi-line text and unknown commands are still delivered as prompts./model) are neither offered in the menu nor executed inline.Known difference: an @path is a text reference, not injected content — use "Add attachment" to ship the bytes. Up to 8 attachments per step.
idle / running / waiting (checkpoint) / paused / done / error. Each card shows its state, duration, the model that actually served it (read from that turn's request/header), errors, and command output.
no-turn) and marks the run as errored.interrupted and the run becomes paused; it never resumes by itself.⋯ → Packages stores the current graph under $DSH_PROFILE_DIR/flow-queue/packages/*.json (nodes and edges only, no run state) and loads or deletes them from any session.
A package may declare variables: write {{task}} in a prompt / fan-out / send text (or a command or note), and loading the package asks for one fill per name ({{task}} → your text) before the graph lands. Unfilled placeholders stay visible in the loaded steps — never an empty prompt by surprise. Saving keeps declared vars and auto-derives any {{placeholder}} still present in the texts, so "load, retype some parts as placeholders, save" yields a reusable template.
Two packages ship built in (written once, never overwritten — an edited copy stays edited):
report-protocol — the four-state turn-end marker ([[FLOW:REPORT waiting|ready|blocked|failed]]) as a worker-prompt template plus the matching marker wait.superagent-review — the whole superagent lifecycle as one runnable graph: ticket-first worker dispatch → readiness branch on the four-state marker → an independent reviewer → a bounded follow-up loop (≤3 rounds) → a delivery gate that hands the push back to this session. Two vars to fill on load: {{task}} and {{ticket}}. It runs in any session with no fleet setup: workers and reviewers are throwaway subagents whose context lives in the ticket file, and the opening checkpoint parks the run so you confirm the filled prompts before a single subagent is spent.dsh plugin --profile web add github:Eclipse-NotFound/dsh-flow-queue
Then restart the Harness web runtime — bundles are composed at startup — and reload the page. Requires DSH >=0.2.1-rc.1 <0.3.0.
The plugin adds same-origin routes under /flow-queue/api/…; every one of them goes through ctx.connection.requestRejection, so only the authenticated page can call them. It stores only what you create (the graph per session and the packages directory) and sends nothing anywhere else.
node --check client.js
node --check index.js
node test/offline-check.mjs # Host module against a mock Cordis context
node test/client-apply-check.mjs # client activation against a mock loader/context
The Host check runs twenty-five scenarios: boundary guard, branching, loops (including the iteration cap), checkpoint, command step, attachments, package round-trip, validation guards, mention catalogs and inline command lines, the natural-language judge, fan-out aggregation with a failing lane, early k-of-n collection, fan-out timeout, stop-cancels-fan-out, loop re-fan-out, outbox delivery with fleet CRUD, backoff/dead-letter/revive ordering, wait-idle, wait-marker, the hop cap with the change-attribution block, fleet.stop idempotence, the shipped report-protocol package, the superagent package with {{var}} fills, the superagent loop end to end (ready → blocked review → follow-up → pass), and a marker wait feeding the branch that follows it. The client check emulates the browser module loader and confirms apply registers the tab type, the tab body and the sidebar entry.
The Host half is loaded once per process, so a Host change needs a bundle toggle in the plugin manager or an app restart. The client half is fetched by the page, so a reload is enough — but keep the bundle row naming the package itself (name: dsh-flow-queue): a subpath row gives the client module system a row id the bundle never registers under, and the whole client half silently stays unloaded.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。