iterative-retrieval
Pattern for progressively refining context retrieval to solve the subagent context problem. Use when a subagent lacks the context it needs and retrieval must be refined across passes.
Target: Search & knowledge management. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Iterative Retrieval Pattern
- When to Activate
- The Problem
- The Solution: Iterative Retrieval
- Phase 1: DISPATCH
- Phase 2: EVALUATE
- Phase 3: REFINE
- Phase 4: LOOP
Solves the "context problem" in multi-agent workflows where subagents don't know what context they need until they start working. Spawning subagents that need codebase context they cannot predict upfront Building multi-agent workflows where context is progressively refined Encountering "context too large" or "missing context" failures in agent tasks Designing RAG-like retrieval pipelines for code exploration Optimizing token usage in agent orchestration Subagents are spawned with limited context. They don't know: Which files contain relevant code What patterns exist in the codebase What terminology the project uses Standard approaches fail: Send everything: Exceeds context limits Send nothing: Agent lacks critical information Guess what's needed: Often wrong A 4-phase loop that progressively refines context: Initial broad query to gather candidate files: Assess retrieved content for relevance: Scoring criteria: High (0.8-1.0): Directly implements target functionality Medium (0.5-0.7): Contains related patterns or types Low (0.2-0.4): Tangentially related None (0-0.2): Not relevant, exclude Update search criteria based on evaluation: Repeat with refined criteria (max 3 cycles): Use
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- skills/iterative-retrieval/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:43.917Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.