iterative-retrieval

Refine subagent context through DISPATCH, EVALUATE, REFINE, and LOOP cycles.

40|8|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/ysyecust/everything-claude-code --skill iterative-retrieval-ysyecust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/ysyecust/everything-claude-code/tree/main/docs/zh-TW/skills/iterative-retrieval
Command: npx skills add https://github.com/ysyecust/everything-claude-code --skill iterative-retrieval-ysyecust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

此技能針對多代理工作流程中子代理在啟動時缺乏所需上下文的問題,提供漸進式檢索迴圈以逐步收集相關檔案與術語,從而建立穩健的上下文基礎。

Core Features & Use Cases

  • 4階段循環:DISPATCH、EVALUATE、REFINE、LOOP,最多進行三次循環以聚焦高相關性內容。
  • 上下文增強:透過評估相似度分數自動擴展或收斂檔案集合,提升任務完成率。
  • 使用場景:在大型程式庫進行多代理協同時,快速收斂至關鍵檔案與術語,避免上下文過載。

Quick Start

在多代理任務中使用此技能時,先以廣泛關鍵字開始檢索,接著進行評估與精煉,最多三個循環,最終回傳高相關性檔案。

Frequently Asked Questions about iterative-retrieval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I provide relevant context for subagents in a multi-agent codebase workflow?

Iterative retrieval provides relevant context for subagents by progressively refining retrieved information. It applies to multi-agent workflows across codebases, using staged DISPATCH, EVALUATE, REFINE, and LOOP cycles to gather high-relevance files.

What is the best way to gather high-relevance files for multi-agent tasks without context overload?

The best way to avoid context overload is using a 4-stage cycle that progressively refines information retrieved. By evaluating similarity scores, the workflow automatically expands or converges file collections to quickly focus on critical files and terminology.

How do I start an iterative retrieval cycle to build context for my agents?

To start an iterative retrieval cycle, begin with broad keyword searches, then evaluate and refine the results through up to three iterations. This structured prompt approach uses explicit phases and relevance scoring to return high-relevance files.

When do I need iterative retrieval for my multi-agent workflow?

You need iterative retrieval when subagents lack required context at startup in multi-agent workflows. It solves this by progressively collecting relevant files and terminology across knowledge domains to establish a robust context foundation.

Does the context retrieval loop automatically terminate after a certain number of iterations?

Yes, the context retrieval loop automatically terminates when sufficient context is obtained, with a maximum of three iterations. The cycle-based refinement uses explicit phases and relevance scoring to determine when to stop expanding file collections.