본문으로 건너뛰기
9

dsh-plugin-crossfire

9931666/dsh-plugin-crossfire

DeepSeek Harness용 적대적 검토입니다. 확정된 계획 하나를 대상으로 관점별 읽기 전용 red-team 전문가를 실행하고 발견 사항을 개별 결함으로 나눠 하나씩 승인하거나 거부합니다. 계획을 다시 쓰거나 코드를 수정하지 않습니다.

설치

dsh plugin --profile web add github:9931666/dsh-plugin-crossfire

README

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 meetingCrossfire
GoalGet the work doneHold a multi-role meetingJudge whether a result holds up
What the machine doesDivide work, execute, auto-fixOrchestrate, relay, aggregateOnly finds flaws
Who draws the conclusionProcess gatesThe captain's summaryYou, item by item
InterfaceMember tree / task DAGTopology graph + panelsOne card, four states

Four boundaries (crossing one breaks the very point of its existence):

  1. 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".
  2. No plans, no code changes, no automatic fixes.
  3. Red-team experts are read-only. Their tools are an allowlist: read / read_image / glob / grep plus a single crossfire_report. They can gather evidence; they cannot touch anything.
  4. 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); @huanlin is 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_*)

ToolWhat it does
crossfire_plan_reviewFirst 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_openPuts the subject on the stand (title + content + dimensions + intensity + the confirmed experts). Status draft
crossfire_stanceRecords the user's stance and reasons; if there are none, distil them from the conversation (distilled=true), but never invent them
crossfire_attackSpawns read-only red-team experts per dimension (preferring the expertRoster persisted by the confirmation card). Status attacking
crossfire_collectSplits expert utterances into individually adjudicable defects. Status judging
crossfire_finishSettles the review, freezes the known-flaws checklist and writes it into history. Status settled
crossfire_recheckRe-review: only checks whether the defects endorsed in the previous pass have been fixed
crossfire_exportExports a Markdown deliverable
crossfire_reportExpert 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

  1. Dimension labels: in the roundtable's historical data the actual dimension values 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 a dimensionFallback marker.
  2. Progress chatter polluting the adjudication surface: utterances such as [当前状态] 已收到主持人任务… used to be collected into the list as defects. Crossfire blocks auto-capture and 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):

  1. Open the DSH Web GUI and press F12 to open the console
  2. Paste the whole of test/browser-acceptance.js in and press Enter
  3. 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

관련 플러그인