- Startseite
- Plugins
- Workflow-Automatisierung
- dsh-plugin-crossfire
dsh-plugin-crossfire
9931666/dsh-plugin-crossfire
Adversarial Review für DeepSeek Harness: Einen festgelegten Plan nach Dimensionen von read-only Red-Team-Experten prüfen lassen und ihre Befunde in einzelne Fehler zerlegen, die du nacheinander annimmst oder ablehnst. Der Plan wird nie umgeschrieben und Code nie repariert.
Installation
dsh plugin --profile web add github:9931666/dsh-plugin-crossfireREADME
English | 中文
Crossfire 针锋
Put a settled result on the stand, let the red team attack it from the dimensions you choose, and endorse or reject every single point yourself.
Crossfire is a DeepSeek Harness plugin that does exactly one thing: adversarial review. It does not produce plans, does not change code and does not fix anything automatically — it is a verifier, not an executor.
How it differs from other multi-agent plugins
| Collaborative teams (e.g. AgentTeams) | Roundtable meeting | Crossfire | |
|---|---|---|---|
| Goal | Get the work done | Hold a multi-role meeting | Judge whether a result holds up |
| What the machine does | Divide work, execute, auto-fix | Orchestrate, relay, aggregate | Only finds flaws |
| Who draws the conclusion | Process gates | The captain's summary | You, item by item |
| Interface | Member tree / task DAG | Topology graph + panels | One card, four states |
Four boundaries (crossing one breaks the very point of its existence):
- The verdict is always made by a human. Endorsing / rejecting a defect can only be done by you, on the card; the plugin has no — and should have no — tool that "endorses a defect on your behalf".
- No plans, no code changes, no automatic fixes.
- Red-team experts are read-only. Their tools are an allowlist:
read/read_image/glob/grepplus a singlecrossfire_report. They can gather evidence; they cannot touch anything. - Your past verdicts are used only for de-duplication and for advancing the re-review, and are never fed to the red team as a "user profile" — otherwise the model would predict your preferences and simply stop raising a whole class of problems, the exact opposite of what an opposing attack is for.
Installation
dsh plugin --profile web add @y9931666/dsh-plugin-crossfire
The package name is
@y9931666/...(the author's npm account name);@huanlinis another user's scope, and that package name in the older docs is already taken and unusable.
After installing, restart the Harness process and refresh the browser (host-side changes are not hot-reloaded).
Requirements: DeepSeek Harness 0.2.2-rc.5+, Node >= 22 (24.x at development time).
Usage
Say "review this plan with Crossfire" in the conversation, or click the button on the card — both paths drive the same state machine.
crossfire_plan_review ──▶ crossfire_open ──red team in──▶ attacking ──collect──▶ judging ──settle──▶ settled
(settings card, not persisted) (draft) ▲ │
└─────re-review─────┘
(only re-checks the old ledger)
Tool surface (crossfire_*)
| Tool | What it does |
|---|---|
crossfire_plan_review | First step of a review: shows the settings confirmation card (table 1 review settings + table 2 red-team roster) and blocks until the user answers "Start" / "Needs changes"; nothing is persisted and no expert is spawned. Once confirmed, pass the returned full config (including experts) verbatim to crossfire_open |
crossfire_open | Puts the subject on the stand (title + content + dimensions + intensity + the confirmed experts). Status draft |
crossfire_stance | Records the user's stance and reasons; if there are none, distil them from the conversation (distilled=true), but never invent them |
crossfire_attack | Spawns read-only red-team experts per dimension (preferring the expertRoster persisted by the confirmation card). Status attacking |
crossfire_collect | Splits expert utterances into individually adjudicable defects. Status judging |
crossfire_finish | Settles the review, freezes the known-flaws checklist and writes it into history. Status settled |
crossfire_recheck | Re-review: only checks whether the defects endorsed in the previous pass have been fixed |
crossfire_export | Exports a Markdown deliverable |
crossfire_report | Expert side: the only channel for a red-team expert to submit its findings |
The card
It takes one card in the conversation trajectory (tool.call.toolview, key = crossfire_open), with one sub-card per defect where you can inline endorse / reject (reason required) / leave undecided, switching freely between the three states. The card polls a snapshot every second, so it follows the state machine the moment it changes.
Pre-launch confirmation card (v0.2.0): crossfire_plan_review first takes a settings card in the trajectory — two Markdown tables (review settings / red-team roster) with the buttons "Start" / "Needs changes". When it is shown again after an edit, the top lists "this round's changes"; if the captain did not write any, it honestly says "(no specific changes noted this round)". The confirmation card only confirms how the review opens; endorsing / rejecting still happens on the review card, done by a human.
The top impact bar shows the counts of endorsed / rejected / undecided and of "strikes the stance".
Visuals (v0.1.3): each defect has a 3px status colour bar on its left (endorsed = green / rejected = red / undecided = grey), so the spread across a dozen defects is visible at a glance; a collapsed heading no longer stuffs a long locator string into the title but shows "point N · the core sentence" instead (the full path stays in the expanded body); the status area wording changed from "undecided 9 / votes 9" to "undecided 9 / 9 in total". The settings page now uses card grouping, a uniform 32px control height and inline SVG icons as a section index.
Where the data lives
<workspace>/.crossfire/crossfire/<reviewId>/
review.json review record (subject, stance, defect tri-state, pass history)
transcript.jsonl red-team utterances (append-only)
user-actions.jsonl user actions
export.md export output
The namespace is fully isolated from the roundtable meeting's .roundtable: the two plugins share zero code and never read or write each other's state.
Deliberately absent: topology graph, directed edges, aggregation gateway, knowledge-base relay, skill relay, proxy thinking.
Two "real defects" that were fixed
- Dimension labels: in the roundtable's historical data the actual
dimensionvalues were维度②/其他/ an empty string (the circled digit ended up treated as a dimension name). Crossfire's rule is that a persisted dimension must be ∈ the dimensions adopted for this review; anything out of range is normalized and leaves adimensionFallbackmarker. - Progress chatter polluting the adjudication surface: utterances such as
[当前状态] 已收到主持人任务…used to be collected into the list as defects. Crossfire blocksauto-captureand line-initial progress markers during collection, but does not kill real defects by mistake (short sentences like "the key is hard-coded in the source" are guarded by dedicated tests).
Development
Running from source (must-read after cloning)
.gitignore excludes node_modules/ and lib/, so a clone is a source tree with no build artifacts —
package.json's main points at ./lib/index.js, so you cannot install it without building:
pnpm install # or npm install
pnpm run build # typecheck×2 → tsdown dual artifacts → declaration emit
On the author's machine this repository's
node_modules/is a junction pointing at another local package (created with elevation), so it is never committed; install your own dependencies after cloning.
Four gates
node ./node_modules/typescript/bin/tsc -p tsconfig.json --noEmit # host types
node ./node_modules/typescript/bin/tsc -p tsconfig.client.json --noEmit # client types
node --test --test-isolation=none "test/*.test.mjs" # unit tests (zero new deps)
node ./node_modules/.bin/tsdown.cmd -c tsdown.config.ts # build both artifacts
--test-isolation=none is not optional: in a confined environment node --test spawns a child process per test file by default and captures its output, which fails outright with EPERM.
Runtime acceptance after installing
This needs a real, running Harness (it can only run in the browser):
- Open the DSH Web GUI and press F12 to open the console
- Paste the whole of
test/browser-acceptance.jsin and press Enter - Look at
PASS / FAIL / SKIPPED
Why it has to be the browser: the two web routes the plugin builds itself go through the host's
connection.requestRejection fence (Host/Origin + browser authentication). A bare Node process has no
such authentication context and is turned away with 401 connection trust check failed — this is the fence working normally,
not a defect.
License
MIT
Ähnliche Plugins
ds-bot
fei-craft/ds-bot
webnovel-writer
lingfengqaq/webnovel-writer
loopx (dsh-loopx-plugin)
loopx-project/loopx
ouroboros (dsh-plugin)
q00/ouroboros