fangqian616/consensus-pipeline 预览 preview

fangqian616/consensus-pipeline

Multi-agent department framework for long-form complex tasks, fighting AI hallucination, validated on academic research. 共识管线:多智能体部门长线任务解决框架,对抗AI幻觉,以学术研究为验证场景。

Project Overview项目介绍

Consensus Pipeline is a multi-agent debate framework built for academic literature review. It differs from traditional single-pass LLM summarization tools by running a structured multi-agent debate where every claim is challenged by agents from different perspectives before a consensus is reached. The framework supports three different installation and use paths: a one-shot installer that sets up MCP configuration automatically, installation as a DSH plugin for AI-driven workflow, and standalone use via Streamlit web UI or headless CLI. It works with any OpenAI-compatible LLM API, with primary testing done on DeepSeek models, and supports custom endpoints for locally hosted models.

The typical workflow starts with an AI-led requirement interview, where the agent asks clarifying questions to nail down the user’s research scope, goals, and constraints. Next, the framework automatically generates more than 10 specialized debate departments, with multiple debaters per department each arguing from a distinct methodological perspective. It then runs 3 to 8 rounds of debate, stopping early once consensus is reached across debaters. Finally, it outputs a full literature review with per-claim confidence scores, runnable code for discussed methods, and a verified reference list. The tool is designed for graduate students, researchers, and academics working on literature reviews for research projects.

This project is released under the permissive MIT open source license, so users can modify and redistribute it freely per license terms. It requires Python 3.10 or newer and Streamlit 1.30 or newer as core dependencies, and users need to provide their own API key for their chosen LLM provider. Total run time and API cost depend on the size of your research topic and number of papers included; a full run is typically inexpensive per DeepSeek’s current pricing. First-time users are recommended to test with a small topic to get familiar with the workflow before running a large full literature review.

这是一个面向学术研究的多AI代理辩论框架,核心功能是通过多视角多轮辩论达成共识,最终生成带每论断言置信度标注的学术文献综述,支持自定义模型端点和本地部署模型,也支持用户自定义编辑辩论部门配置。该工具提供三种接入方式:一键脚本安装配置、作为DSH插件安装调用、独立通过Streamlit网页界面或命令行运行,可适配不同场景和用户习惯。

典型工作流程从需求访谈开始,AI会先询问用户研究主题、范围和约束,随后自动生成多个不同方法论视角的辩论部门,每个部门多个辩手开展多轮辩论,直到达成共识后停止。最终输出带置信度标注的文献综述、对应方法的可运行代码和经过验证的参考文献列表。该工具主要面向开展学术研究的学生和科研人员,帮助提升文献综述的结论可靠性。

该工具依赖Python 3.10+和Streamlit 1.30+,需要用户自行配置DeepSeek API密钥,也支持其他兼容OpenAI接口的模型,包括本地部署的大模型,支持用户自定义编辑辩论部门配置。该项目采用MIT许可证开源,可自由使用修改。运行时长取决于研究主题规模,通常辩论阶段耗时较长,成本随API调用次数变化,整体费用较低,首次运行建议从小规模主题开始测试。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
  • Not DSH-native: a multi-platform tool that may require Node / Electron or another runtime first非 DSH 原生,是多平台兼容工具:可能要先装 Node / Electron 等运行时
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:fangqian616/consensus-pipeline

把 fangqian616/consensus-pipeline 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

🧠 Consensus Pipeline

Consensus Pipeline

Python Streamlit License

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


⚡ Quick Start

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 | bash

One 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-plugin

Then tell DSH "共识管线开始需求调研" — 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 CLI

A 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

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-codex-subscription 下一个 Next dsh-status-rotator →