deep-research
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDeep Research
深度研究
Coordinate deep technical research with intelligent caching for cross-project reuse and team knowledge sharing.
通过智能缓存协调深度技术研究,实现跨项目复用与团队知识共享。
Quick Start
快速开始
When research is needed:
- Resolve scripts path - Find (or Glob for
plugins/core/skills/deep-research/scripts/)**/deep-research/scripts/cache_manager.py - Check cache first - Run
python3 {scripts_dir}/cache_manager.py check "{topic}" - If cached and valid - Run and return content directly (no agent needed)
cache_manager.py get "{slug}" - If cache miss - Invoke agent for EXA research, which caches via
deep-researchercache_manager.py put - Report findings - Include cache status and promote suggestion
当需要开展研究时:
- 解析脚本路径 - 找到(或通过Glob匹配
plugins/core/skills/deep-research/scripts/)**/deep-research/scripts/cache_manager.py - 优先检查缓存 - 运行
python3 {scripts_dir}/cache_manager.py check "{topic}" - 如果缓存有效 - 运行并直接返回内容(无需调用Agent)
cache_manager.py get "{slug}" - 如果缓存未命中 - 调用Agent执行EXA研究,研究结果将通过
deep-researcher存入缓存cache_manager.py put - 汇报研究结果 - 包含缓存状态并给出推荐建议
Cache Architecture
缓存架构
| Tier | Location | Purpose | Shared |
|---|---|---|---|
| 1 | | Fast, cross-project | User only |
| 2 | | Curated, version controlled | Team |
| 层级 | 存储位置 | 用途 | 是否共享 |
|---|---|---|---|
| 1 | | 快速访问,跨项目使用 | 仅当前用户 |
| 2 | | 精心整理,版本控制 | 团队共享 |
Operations
操作说明
| Operation | Trigger | Fast Path? | Action |
|---|---|---|---|
| Research | | Yes (cache hit) | Check cache → return if valid, else research → cache |
| Promote | | Yes | Run |
| Refresh | | No | Spawn agent → fresh research → cache → update promoted |
| List | | Yes | Run |
| 操作 | 触发方式 | 是否有快速路径 | 操作内容 |
|---|---|---|---|
| 研究 | | 是(缓存命中时) | 检查缓存→若有效则返回,否则执行研究→存入缓存 |
| 升级 | | 是 | 直接运行 |
| 刷新 | | 否 | 启动Agent→重新开展研究→更新缓存→同步到升级后的存储 |
| 列出 | | 是 | 运行 |
Project Scoping
项目范围限定
Research entries are automatically associated with the current git repository when cached. The operation filters by current project by default, so each project sees only its relevant research. Use to see everything.
list--all- Auto-detection: Project name derived from basename
git rev-parse --show-toplevel - Multi-project: Entries can belong to multiple projects (associations merge, never replace)
- Backward compatible: Existing entries without project associations appear in but not in project-scoped views
--all
研究条目在存入缓存时会自动关联当前Git仓库。操作默认仅筛选当前项目的内容,因此每个项目仅能查看与其相关的研究。使用参数可查看所有研究条目。
list--all- 自动检测:通过命令的结果提取项目名称
git rev-parse --show-toplevel - 多项目支持:条目可关联多个项目(关联关系会合并,不会被替换)
- 向后兼容:未关联项目的现有条目仅会在模式下显示,不会出现在项目专属视图中
--all
Scripts
脚本说明
All cache operations use Python scripts in :
scripts/| Script | Purpose |
|---|---|
| Shared utilities (imported by all scripts) |
| Cache CRUD: get, put, check, list, delete |
| Tier 1 → Tier 2 promotion with team notes |
| README index generation for both tiers |
所有缓存操作均使用目录下的Python脚本:
scripts/| 脚本 | 用途 |
|---|---|
| 共享工具库(被所有脚本导入使用) |
| 缓存的增删改查操作:获取、存入、检查、列出、删除 |
| 将层级1的条目升级到层级2,并添加团队备注 |
| 为两个层级的缓存生成README索引 |
Slug Normalization
Slug标准化
Convert topics to cache keys:
- "Domain-Driven Design" →
domain-driven-design - "DDD" → (via alias)
domain-driven-design - "React Hooks" →
react-hooks
将主题转换为缓存键:
- "Domain-Driven Design" →
domain-driven-design - "DDD" → (通过别名映射)
domain-driven-design - "React Hooks" →
react-hooks
Output Format
输出格式
After research, report:
undefined研究完成后,按以下格式汇报:
undefinedResearch: {Topic}
研究主题: {Topic}
Cache: {Hit | Miss | Expired}
Source: {Cached | Fresh research}
Path: ~/.claude/plugins/research/entries/{slug}/
[Brief summary of findings]
Run to add to project docs.
/research promote {slug}undefined缓存状态: {命中 | 未命中 | 已过期}
来源: {缓存内容 | 最新研究结果}
路径: ~/.claude/plugins/research/entries/{slug}/
[研究结果简要总结]
运行 可将该条目添加到项目文档中。
/research promote {slug}undefinedAgent Delegation
Agent委托
For actual research execution (cache miss or refresh only), delegate to agent:
deep-researcher- Has MCP tool access (EXA web search, code context)
- Uses for cache write operations
cache_manager.py put - Structures research output consistently
仅在缓存未命中或需要刷新时,才会委托给 Agent执行实际研究:
deep-researcher- 拥有MCP工具访问权限(EXA网页搜索、代码上下文)
- 使用执行缓存写入操作
cache_manager.py put - 输出格式保持一致
Additional Resources
额外资源
- WORKFLOW.md - Detailed process flows
- EXAMPLES.md - Usage examples
- TROUBLESHOOTING.md - Common issues and solutions
- WORKFLOW.md - 详细的流程说明
- EXAMPLES.md - 使用示例
- TROUBLESHOOTING.md - 常见问题及解决方案