返回目录
模型与 MCP 插件

dsh-llm-council

Hans-wan/dsh-llm-council

Ask several models the same question at once, watch them answer side by side, then read a chaired verdict. A council panel for DeepSeek Harness.

Stars
0
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:Hans-wan/dsh-llm-council

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-llm-council

Ask several models the same question at once, watch them answer side by side, then read a chaired verdict.

A DeepSeek Harness plugin that turns "let me get a second opinion" into one call. Instead of asking a model, reading the answer, switching models, and asking again, you convene a council: the question goes out to every seat in parallel, each member answers in its own column, and a chair model reads them all and writes the verdict.

llm_council("Should I make the cache write-through or write-back?")
### 1. DeepSeek · DeepSeek-V4.1-Flash            (2.0s)
Write-through. Your write volume is one order of magnitude below the read
volume, so the extra write latency is invisible while the consistency
guarantee removes an entire class of stale-read bugs...

### 2. Anthropic · Claude                          (2.4s)
Write-back. You already have a versioned store, so staleness is recoverable
rather than corrupting...

### Verdict — chaired by DeepSeek · DeepSeek-V4.1-Flash
The two answers disagree about the failure mode, not the design...

Why

One model gives you one sample. A council gives you the disagreement, which is usually where the real information is — the assumption one member made that the other didn't, the failure mode only one of them noticed. The verdict is not a vote: it is a model reading every answer and telling you where they actually diverge.

Two things make this different from asking a model to "consider multiple perspectives":

  • The seats are real. Each member is a genuine, independent model call through the harness llm service — its own provider, its own model, its own token budget. Not a role-played persona in one context window.
  • Nothing is hidden. Every member's full answer stays on screen in its own column, with timing and token counts. You can read the raw material the verdict was built from and decide whether you agree with the chair.

Install

dsh plugin add dsh-llm-council

Or from outside the harness:

dsh plugin --profile <profile> add dsh-llm-council

Then restart the harness so the new host half loads.

Use

As a tool

The agent calls llm_council when a second and third opinion is worth more than a faster single answer — checking a diagnosis, choosing between designs, sanity-checking a risky change, or any question where models plausibly disagree.

Parameter Meaning
question The question every member answers. Required.
members How many models to convene, 2–6. Defaults to the saved setting.
models Seats to fill, each "provider/model" or a bare model id. Omit to spread the seats across the available providers.
chair The model that writes the verdict. Omit to chair with the session default.

The result renders as a council table in the conversation — one column per member, then the verdict underneath. It also stays in the session log, so replaying an old conversation replays the whole panel.

As a command

/council Should I make the cache write-through or write-back?

Runs the same council and prints the result as text.

From another tool (the llm_council API)

The plugin also exposes itself as a callable tool definition, so the council can be convened programmatically from a script or a larger workflow, not only from the chat.

Settings

Settings → LLM council gives you:

  • Seats — how many models to convene by default (2–6).
  • Chair — whether a chair model writes a verdict after the members answer.
  • Instruction — a standing instruction prepended to every council question (for example, "answer in at most 150 words").
  • Models — which models are allowed to take a seat, chosen from every provider the harness knows about.

Settings are stored in ~/.dsh-llm-council/settings.json and are read fresh on every council, so changing them never requires an edit to any profile file.

How it works

  • The host half registers one tool (llm_council) and one command (/council), and streams every member's answer in parallel through ctx.llm.stream(...).
  • Seat selection spreads across distinct providers first, so a council of three doesn't quietly become three calls to the same model.
  • A member that fails is reported as a failed column rather than sinking the council; a member that already streamed usable text is kept.
  • The client half registers a tool view for llm_council, so the panel renders as a real council table instead of a raw JSON dump. It uses only the harness theme tokens and bundles no client code of its own.
  • Adapter failures arrive as a terminal finish chunk rather than a thrown error, and the plugin reads them that way — a member is only marked failed when it genuinely produced nothing.

Requirements

  • DeepSeek Harness >= 0.2.2-rc.1
  • Node >= 20.3.0
  • At least two usable providers/models configured in the harness.

No runtime dependencies. The host half uses only Node built-ins; the client half requires only the React instance the harness already loads.

License

MIT © Hans-wan

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek-harness。