dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Multi-agent debate framework for academic research.
Instead of one AI writing a literature review for you — an AI team interviews you, debates each claim, reaches consensus with per-claim confidence scores, and verifies every citation against the source abstracts.
📖 中文文档 · 📦 GitHub Releases · 🔗 Related project: Multivest
Pick one of three paths (start with 1 or 2):
🚀 1. One-shot installer (fastest)
# Windows PowerShell
irm https://github.com/fangqian616/consensus-pipeline/raw/main/install.ps1 | iex
# macOS / Linux
curl -fsSL https://github.com/fangqian616/consensus-pipeline/raw/main/install.sh | bashOne command clones + installs deps + prints your MCP config.
🤖 2. DSH plugin (AI-driven, recommended)
git clone --depth 1 https://github.com/fangqian616/consensus-pipeline.git
npx -p @deepseek-ai/dsh dsh plugin --profile web add file:./consensus-pipeline/dsh-pluginThen tell DSH "consensus-pipeline start" — it runs the requirement interview → department config → multi-round debate → confidence-annotated report. The 📊 floating button (bottom-right) shows live progress, atomic verification, and full-text upload.
🖥️ 3. Streamlit / CLI (manual)
git clone https://github.com/fangqian616/consensus-pipeline.git
cd consensus-pipeline
pip install -r requirements.txt
# Set the key (export on Linux/macOS, $env: on PowerShell)
export DEEPSEEK_API_KEY="sk-your-key-here"
streamlit run app.py # web UI, browser opens
python run_pipeline_v2.py --topic "Your Topic" # headless CLIA full run is an offline batch job — start it and let it run in the background, no need to watch. Full details on all three paths (MCP config, full-text upload, custom endpoints) → 📖 Usage
A single LLM produces confident-sounding answers with no cross-validation — hallucinations slip through, conflicting perspectives get flattened, and you can't tell which conclusions are solid vs. speculative.
Consensus Pipeline replaces one-shot generation with structured multi-agent debate as a quality gate: every claim is challenged by independent "departments," contradictions are surfaced explicitly, and final conclusions carry confidence annotations (e.g., "42/77 papers, high confidence").
Think of it as built-in peer review — not a single author, but an adversarial committee.
The pipeline starts by interviewing you — an AI agent asks clarifying questions to understand your research scope, constraints, and goals.
Based on your topic, the AI auto-generates 10+ specialized debate departments with multiple debaters per department. Each debater argues from a different methodological perspective.
Watch debaters argue in real-time. Each round, debaters present their position, challenge others' assumptions, and refine their arguments. The pipeline runs 3-8 rounds per department (default), stopping early once debaters converge via dynamic termination.
Debate results are structured into JSON with clear roles, positions, and consensus points — ready for report generation.
The final report includes per-claim confidence scores, methodology comparison matrices, and verified citations. Every conclusion tells you how many papers support it.
Full example report (148 papers, energy economics): see examples/final_report.md
The pipeline also generates runnable Python code for key methods and compiles a verified reference list.
Here's what a real report excerpt looks like — note the per-claim confidence annotations:
Deep learning methods dominate short-term energy load forecasting *(42/77 papers, high confidence)*
LSTM and Transformer-based models consistently outperform traditional ARIMA methods by 10-40% in MAE metrics across multiple benchmark datasets. However, the methodology review department flagged widespread data leakage concerns — several studies used overlapping train/test splits that inflated apparent accuracy gains.
Graph neural networks show emerging potential in energy network optimization *(3/77 papers, low confidence — trend not established)*
While GNNs demonstrate structural advantages for modeling grid topology, current evidence is limited to small-scale test networks (< 100 nodes). Cross-department validation rated this claim as "promising but insufficiently validated."
Each claim survives adversarial challenge from multiple AI agents before appearing in the report. Claims that can't be verified from available abstracts are explicitly separated rather than silently scored.
Consensus Pipeline takes a research topic and produces a structured literature review through multi-agent debate.
The pipeline in one sentence: Search papers → 3-layer QC filter → 11 departments debate each claim → cross-department validation → generate report with confidence scores.
Key difference from tools like Elicit/Consensus: Those tools extract and summarize. This tool *debates*. Each finding has to survive adversarial challenge from multiple AI agents before it makes it into the report.
Core capabilities:
Full feature list:
--lang en or --lang zh)irm …install.ps1 | iex / curl …install.sh | bashdsh plugin add with auto-clone of the projectPhase · Stage · What happens 0 · Requirement Interview · AI interviews you about scope, constraints & goals 0.5 · Domain Config · AI generates the domain config (zero hardcoding) 1 · Structuring · Scope & constraint extraction 2 · Discussion · Multi-angle requirement discussion 3 · Config Recommendation · Department configuration recommendation 3.5 · QC Gate · 3-layer quality filter: hard_filter → LLM_classify → tag_layer 4 · Paper Search · OpenAlex + Semantic Scholar + arXiv — dedup, abstract backfill 4.9 · Full-text Fetch · Auto-fetch OA full text (Unpaywall → Semantic Scholar → OpenAlex) 5 · Department Debate (v2) · 11 departments debate; stance quantification (CV) + Kendall's W → dynamic termination 5.5 · Full-text Gate · Interactive breakpoint — import the few missing-but-necessary paywalled PDFs 6 · Cross-Debate · Departments validate each other's conclusions 7 · Report Generation · Literature review + confidence annotations + code + PDF/DOCX export 7.5 · Citation Verification · NLI verification of every claim against source abstracts / full text
Department · What They Debate Literature Search · Which databases to query, what keywords to use, how broad vs. precise Metadata Inspector · DOI verification, metadata completeness, source reliability Citation Network · Citation analysis, impact metrics, influence mapping Methodology Review · 7-dimension evaluation: accuracy, efficiency, interpretability, etc. Data Validation · Data source quality, reproducibility, potential biases Counter-Evidence · Anti-mainstream findings, controversy identification Topic Clustering · Thematic grouping, trend detection, gap identification Visualization · Chart analysis, distribution patterns, data representation Report Integration · Synthesize department conclusions into the final structured report Programming · Which tools/methods to recommend, runnable code generation Tutorial · How to use research tools, methodological guidance
Every conclusion in the report carries a confidence tag:
Deep learning methods dominate short-term energy load forecasting (42/77 papers, high confidence)
Graph neural networks show emerging potential in energy network optimization (3/77 papers, low confidence — trend not established)
No more unsupported claims.
After the report is generated, a dedicated verifier checks every claim against the retrieved abstracts using natural language inference — no claim ships unexamined.
Each claim gets an explicit verdict:
Claims that *cannot* be judged from abstracts alone are honestly separated, not silently counted:
The overall confidence score therefore reflects only claims the verifier could actually judge. Author metadata is injected during verification, so the checker first confirms *"this is the right paper"* before judging the content — catching mismatched citations that merely look plausible.
Paywalled papers are the honest gap: the verifier can only judge a claim from its abstract, and many claims need the real full text. The pipeline closes this gap in two steps:
fulltext_papers/.weight=core and guaranteed a spot in the report — your uploads never go to waste.Upload PDFs two ways:
fulltext_papers/, then run --rerun-67 to regenerate just the report + verification stageThe biggest quality gate. Three layers ensure zero pollution:
Result on energy economics: 219 → 77 papers, 64.8% exclusion rate.
No hardcoded keywords. The LLM generates everything based on your topic — exclusion signals, query rotation, tier definitions. Change from "ML in Energy Economics" to "LLM in Healthcare"? Zero code changes.
Three ways to run Consensus Pipeline. Pick one:
Entry · Best for 🚀 One-shot installer · Fastest start — one command clones + installs + prints config 🤖 DSH / MCP (AI agent) · Let an AI agent drive it from chat (DeepSeek Harness, Claude, Cursor…) 🖥️ Streamlit / CLI (manual) · Run locally yourself, watch debates, script it