liangdabiao/Claude-Code-Deep-Research-main

利用claude code agent框架一步一步实现deep research!很强大很简单的skills。我一步一步介绍实现deep research,因为deep research就是agent框架第一应用,对比一下各个框架实现这个deep research,就知道哪个框架才是真厉害。

License:UnknownLanguage:N/A16122
claude-code

Deep Analysis

基于Claude Code框架的多Agent深度研究系统,实现图论推理和引文验证的学术级研究工具

Recommended

Core Features

图论推理引擎

GoT框架管理研究路径,支持生成、聚合、优化操作

7阶段研究流程

从问题优化到引文验证的完整结构化研究方法

多Agent并行处理

3-8个专业化研究Agent同时执行,提高研究效率

引文验证系统

A-E等级源质量评估,防止幻觉和假信息传播

Technical Implementation

Architecture:多层Agent架构:问题优化层→规划层→执行层→综合层→验证层
Execution Flow:
问题优化

通过5-6个澄清问题将模糊需求转化为结构化prompt

执行规划

分解主题为子主题,部署Agent,预估时间

并行研究

多Agent并行执行,综合来源信息

结果综合

汇聚多Agent输出为统一报告

引文验证

检验所有断言来源,评估质量等级

Key Components:
Claude Code Skills核心执行框架
Graph of Thoughts研究路径优化
Chain-of-Verification多源三角验证
Highlights
  • 支持快速(10-15分钟)到深入(45-90分钟)的多档次研究模式
  • 内置A-E源质量评估,确保学术级别的引文准确性
  • 8个独立命令支持工作流拆解,灵活适配不同研究场景
  • 图论框架支持深度优先、广度优先、平衡等多种搜索策略
Use Cases
  • 医疗健康领域市场研究与竞争分析
  • WebAssembly等技术评估与性能对比
  • 学术文献综述和系统性理论研究
  • 企业战略决策的深度背景调查
Tech Stack
Claude Code CLIMarkdownGraph-based reasoningMulti-agent orchestration

Claude Code Deep Research Agent

A sophisticated multi-agent research framework that implements OpenAI's Deep Research and Google Gemini's Deep Research capabilities using Claude Code's native features.

Overview

This project leverages Claude Code's Skills and Commands system to conduct comprehensive, citation-backed research through:

  • Graph of Thoughts (GoT) Framework - Intelligent research path management with graph-based reasoning
  • 7-Phase Deep Research Process - Structured methodology for quality research
  • Multi-Agent Architecture - Parallel research agents with specialized roles
  • Citation Validation System - A-E source quality ratings with chain-of-verification

Quick Start

Prerequisites

  • Claude Code CLI installed
  • Active Claude Code account with API access

Installation

  1. Clone this repository:
git clone <repository-url>
cd Claude-Code-Deep-Research-main
  1. The Skills and Commands are already configured in .claude/ directory

Basic Usage

The simplest way to conduct deep research:

/deep-research [your research topic]

Example:

/deep-research AI applications in clinical diagnosis

This single command will:

  1. Ask clarifying questions to refine your research needs
  2. Create a structured research plan
  3. Deploy multiple parallel research agents
  4. Synthesize findings into a comprehensive report
  5. Validate all citations
  6. Output results to RESEARCH/[topic]/ directory

Advanced Usage

Step-by-Step Research Workflow

For more control over the research process:

1. Refine Your Question

/refine-question Should I use WebAssembly for my project?

The Question Refiner will ask 5-6 clarifying questions about:

  • Specific focus areas
  • Output format requirements
  • Geographic and time scope
  • Target audience
  • Special requirements

2. Plan Research (Optional)

/plan-research [structured prompt from step 1]

Creates a detailed execution plan showing:

  • How the topic breaks into subtopics
  • Which agents will be deployed
  • Expected timeline

3. Execute Research

/deep-research [your topic]

4. Synthesize Findings (If needed)

/synthesize-findings RESEARCH/[topic]/research_notes/

5. Validate Citations

/validate-citations RESEARCH/[topic]/full_report.md

Project Structure

claude-code-deep-research/
├── .claude/
│   ├── skills/                    # Research skills
│   │   ├── question-refiner/      # Question refinement
│   │   ├── research-executor/     # Main research execution
│   │   ├── got-controller/        # Graph of Thoughts controller
│   │   ├── citation-validator/    # Citation validation
│   │   └── synthesizer/           # Research synthesis
│   ├── commands/                  # User commands
│   │   ├── deep-research.md       # Main research command
│   │   ├── refine-question.md     # Question refinement
│   │   ├── plan-research.md       # Research planning
│   │   ├── synthesize-findings.md # Findings synthesis
│   │   └── validate-citations.md  # Citation validation
│   └── settings.local.json        # Tool permissions
├── RESEARCH/                      # Research outputs
│   └── [topic_name]/
│       ├── README.md
│       ├── executive_summary.md
│       ├── full_report.md
│       ├── data/
│       ├── visuals/
│       ├── sources/
│       ├── research_notes/
│       └── appendices/
├── CLAUDE.md                      # Quick reference for Claude Code
├── CLAUDE2.md                     # Graph of Thoughts guide
├── PROJECT_UNDERSTANDING.md       # Architecture documentation
├── IMPLEMENTATION_GUIDE.md        # User guide with examples
└── README.md                      # This file

Research Output Structure

Each research project creates a structured output:

RESEARCH/[topic_name]/
├── README.md                    # Overview and navigation
├── executive_summary.md         # 1-2 page key findings
├── full_report.md               # Complete analysis (20-50 pages)
├── data/
│   └── statistics.md            # Key numbers and facts
├── visuals/
│   └── descriptions.md          # Chart/graph descriptions
├── sources/
│   ├── bibliography.md          # Complete citations
│   └── source_quality_table.md  # A-E quality ratings
├── research_notes/
│   └── agent_findings_summary.md # Raw agent outputs
└── appendices/
    ├── methodology.md           # Research methods
    └── limitations.md           # Unknowns and gaps

Citation Requirements

Every factual claim includes:

  1. Author/Organization name
  2. Publication date
  3. Source title
  4. Direct URL/DOI
  5. Page numbers (if applicable)

Source Quality Ratings:

  • A: Peer-reviewed RCTs, systematic reviews, meta-analyses
  • B: Cohort studies, clinical guidelines, reputable analysts
  • C: Expert opinion, case reports, mechanistic studies
  • D: Preprints, preliminary research, blogs
  • E: Anecdotal, theoretical, speculative

Graph of Thoughts Framework

The GoT framework manages research as a graph with these operations:

Operation Purpose Example
Generate(k) Spawn k parallel research paths Generate(4) from root → 4 research paths
Aggregate(k) Merge k findings into synthesis Aggregate(3) → 1 comprehensive report
Refine(1) Improve existing finding Refine(node_5) → Enhanced quality
Score Rate quality (0-10) Score based on citations, accuracy
KeepBestN(n) Prune to top n nodes KeepBestN(3) → Retain best 3

Research Patterns:

  • Balanced: Generate(4-5) → Score best → Deepen top → Aggregate
  • Depth-first: Generate(3) → Take best → Generate(3) from it
  • Breadth-first: Generate(8) → KeepBestN(5) → Generate(2) each

Documentation

Document Description
CLAUDE.md Quick reference for Claude Code instances
CLAUDE2.md Complete Graph of Thoughts implementation
PROJECT_UNDERSTANDING.md Detailed architecture and design
IMPLEMENTATION_GUIDE.md User guide with examples and workflows

Commands Reference

Command Usage Description
/deep-research /deep-research [topic] Execute complete research workflow
/refine-question /refine-question [question] Refine into structured prompt
/plan-research /plan-research [prompt] Create execution plan
/synthesize-findings /synthesize-findings [dir] Combine research outputs
/validate-citations /validate-citations [file] Verify citation quality

Examples

Market Research

/deep-research AI in healthcare market, focus on clinical diagnosis,
             comprehensive report, global scope, 2022-2024 data,
             audience is healthcare executives

Technical Assessment

/deep-research WebAssembly vs JavaScript performance benchmarks

Academic Literature Review

/deep-research Transformer architectures in AI,
             peer-reviewed sources only, 2017-present,
             comprehensive literature review

Features

  • Multi-agent parallel research (3-8 agents simultaneously)
  • Graph of Thoughts optimization for quality
  • Automatic citation validation
  • Source quality ratings (A-E scale)
  • Chain-of-verification to prevent hallucinations
  • Structured output with executive summaries
  • Cross-source triangulation

Performance

  • Quick research (narrow topic): 10-15 minutes
  • Standard research (moderate scope): 20-30 minutes
  • Comprehensive research (broad scope): 30-60 minutes
  • Academic literature review: 45-90 minutes

Contributing

Contributions are welcome! To add new skills or improvements:

  1. Follow the skill structure in .claude/skills/
  2. Include SKILL.md, instructions.md, examples.md
  3. Test with diverse research topics
  4. Update documentation

License

This project is provided as-is for educational and research purposes.

Acknowledgments

  • Graph of Thoughts framework inspired by SPCL, ETH Zürich
  • Built with Claude Code
  • 7-Phase Research Process based on deep research best practices

For detailed usage instructions, see IMPLEMENTATION_GUIDE.md

For architecture details, see PROJECT_UNDERSTANDING.md

Highly Recommended
agents

wshobson/agents

wshobson

Intelligent automation and multi-agent orchestration for Claude Code

The most comprehensive Claude Code plugin ecosystem, covering full-stack development scenarios with a three-tier model strategy balancing performance and cost.

25.6k2.8k3 days ago
Highly Recommended
awesome-claude-skills

ComposioHQ/awesome-claude-skills

ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows

The most comprehensive Claude Skills resource list; connect-apps is a killer feature.

19.9k2.0k3 days ago
Recommended
oh-my-opencode

code-yeongyu/oh-my-opencode

code-yeongyu

The Best Agent Harness. Meet Sisyphus: The Batteries-Included Agent that codes like you.

Powerful multi-agent coding tool, but note OAuth limitations.

17.5k1.2k3 days ago
Highly Recommended
ui-ux-pro-max-skill

nextlevelbuilder/ui-ux-pro-max-skill

nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms

Essential for designers; comprehensive UI/UX knowledge base.

15.3k1.5k3 days ago
Recommended
claude-mem

thedotmack/claude-mem

thedotmack

A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.

A practical solution for Claude's memory issues.

14.0k9143 days ago
Highly Recommended
planning-with-files

OthmanAdi/planning-with-files

OthmanAdi

Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition.

Context engineering best practices; an open-source implementation of Manus mode.

9.3k8113 days ago