web-research by langchain-ai/deepagents
npx skills add https://github.com/langchain-ai/deepagents --skill web-research在委托给子代理之前,你必须:
创建研究文件夹 - 相对于当前工作目录,将所有研究文件组织在一个专用文件夹中:
mkdir research_[topic_name]
这可以保持文件井井有条,并防止工作目录混乱。
write_file 工具创建 research_[topic_name]/research_plan.md,内容包含: * 主要研究问题
* 需要调查的 2-5 个具体子主题
* 每个子主题的预期信息
* 结果将如何综合
计划指南:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
针对你计划中的每个子主题:
task 工具 来生成一个研究子代理,并指定: * 清晰、具体的研究问题(不使用缩写)
* 将发现结果写入文件的指令:`research_[topic_name]/findings_[subtopic].md`
* 预算:最多进行 3-5 次网络搜索
2. 最多并行运行 3 个子代理 以提高研究效率
子代理指令模板:
研究 [具体主题]。使用 web_search 工具收集信息。
完成研究后,使用 write_file 将你的发现保存到 research_[topic_name]/findings_[subtopic].md。
包含关键事实、相关引用和来源 URL。
最多使用 3-5 次网络搜索。
所有子代理完成后:
* 首先运行 `list_files research_[topic_name]` 查看创建了哪些文件
* 然后使用 `read_file` 并指定**文件路径**(例如 `research_[topic_name]/findings_*.md`)
* **重要**:仅对本地文件使用 `read_file`,而不是 URL
2. 综合信息 - 创建一个全面的回答,该回答应:
* 直接回答原始问题
* 整合所有子主题的见解
* 引用带有 URL 的具体来源(来自发现文件)
* 指出任何空白或局限性
3. 撰写最终报告(可选)- 如果要求,使用 write_file 创建 research_[topic_name]/research_report.md
注意:如果你需要从 URL 获取额外信息,请使用 fetch_url 工具,而不是 read_file。
每周安装量
1.1K
仓库
GitHub 星标数
17.1K
首次出现
2026年1月22日
安全审计
安装于
opencode962
codex939
gemini-cli933
github-copilot888
cursor880
kimi-cli833
Before delegating to subagents, you MUST:
Create a research folder - Organize all research files in a dedicated folder relative to the current working directory:
mkdir research_[topic_name]
This keeps files organized and prevents clutter in the working directory.
Analyze the research question - Break it down into distinct, non-overlapping subtopics
Write a research plan file - Use the write_file tool to create research_[topic_name]/research_plan.md containing:
Planning Guidelines:
For each subtopic in your plan:
Use thetask tool to spawn a research subagent with:
research_[topic_name]/findings_[subtopic].mdRun up to 3 subagents in parallel for efficient research
Subagent Instructions Template:
Research [SPECIFIC TOPIC]. Use the web_search tool to gather information.
After completing your research, use write_file to save your findings to research_[topic_name]/findings_[subtopic].md.
Include key facts, relevant quotes, and source URLs.
Use 3-5 web searches maximum.
After all subagents complete:
Review the findings files that were saved locally:
list_files research_[topic_name] to see what files were createdread_file with the file paths (e.g., research_[topic_name]/findings_*.md)read_file for LOCAL files only, not URLsSynthesize the information - Create a comprehensive response that:
Write final report (optional) - Use write_file to create research_[topic_name]/research_report.md if requested
Note : If you need to fetch additional information from URLs, use the fetch_url tool, not read_file.
Weekly Installs
1.1K
Repository
GitHub Stars
17.1K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode962
codex939
gemini-cli933
github-copilot888
cursor880
kimi-cli833
99,500 周安装