iterative-retrieval

Iteratively refine context retrieval across up to three search cycles.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill iterative-retrieval-andyhsutw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/AndyHsuTW/everything-llm-workspace/tree/main/.agents/skills/iterative-retrieval
Command: npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill iterative-retrieval-andyhsutw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the "context problem" in multi-agent workflows by progressively refining the information provided to agents, ensuring they have the necessary context without exceeding limits.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively searches and evaluates files to gather the most relevant context.
  • Handles Unknown Context Needs: Useful when agents don't know what information they need upfront.
  • Use Case: When debugging a complex bug, this skill can help an agent discover and retrieve the specific files and code snippets related to the bug without being overwhelmed by the entire codebase.

Quick Start

Use the iterative retrieval skill to find relevant files for the task 'implement user authentication'.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I refine context retrieval in multi-agent systems?

Refine context retrieval by iteratively dispatching broad queries, evaluating relevance, and tightening search criteria. This pattern loops up to three cycles to gather sufficient context for complex agent tasks without exceeding limits.

Why does my agent lack sufficient context when debugging complex bugs?

Agents lack sufficient context due to the agent context problem. When agents don't know what information they need upfront, iterative retrieval progressively discovers specific files and snippets without overwhelming the entire codebase.

What is the best way to gather targeted information for complex agentic workflows?

The best way to gather targeted information is progressive context refinement. It iteratively searches files, evaluates retrieved content, and refines search criteria to ensure agents receive necessary context for complex agentic workflows.

How to retrieve specific codebase files when unknown context needs arise?

Retrieve specific codebase files by dispatching broad queries and evaluating retrieved content. If relevance is low, refine search criteria and loop up to three cycles to discover and retrieve the exact files needed.

What are the limitations of iterative context retrieval?

The main limitation is the maximum of three retrieval cycles. If sufficient context cannot be gathered within three iterations of dispatching queries and refining criteria, the progressive refinement loop terminates.