iterative-retrieval

Iteratively refine context retrieval queries for multi-agent workflows.

5|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/FaisalAlqarni/sp-ecc --skill iterative-retrieval-faisalalqarni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/FaisalAlqarni/sp-ecc/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/FaisalAlqarni/sp-ecc --skill iterative-retrieval-faisalalqarni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge where subagents lack sufficient context to perform their tasks, by progressively refining the information provided to them.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively searches and evaluates files to gather the most relevant context for subagents.
  • Handles Ambiguity: Solves the problem of subagents not knowing what context they need until they start working.
  • Use Case: When a subagent needs to fix a bug in a complex codebase, this Skill helps it find the exact files and code snippets related to the bug without overwhelming it with irrelevant information.

Quick Start

Use the iterative-retrieval skill to find relevant files for the task "Fix the authentication token expiry bug".

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 for subagents in a multi-agent workflow?

Refine context retrieval for subagents by iteratively dispatching queries, evaluating retrieved content relevance, and refining search criteria up to three times. This progressive context refinement pattern ensures multi-agent workflows gather sufficient codebase context without overwhelming subagents with irrelevant information.

Why do subagents lack sufficient context when navigating a complex codebase?

Subagents lack sufficient context in complex codebases because they often do not know what specific files, patterns, or terminology they need until they start working. This ambiguity is solved by progressively refining information retrieval through iterative search evaluation.

What is the best way to find specific code files for a subagent to fix a bug?

The best way to find specific code files for a subagent is using progressive context refinement. It iteratively searches and evaluates files against search criteria, looping up to three times to gather the exact code snippets required to fix bugs without retrieving irrelevant information.

Can I use iterative retrieval to handle ambiguous search criteria in codebase navigation?

Yes, you can use iterative retrieval to handle ambiguous search criteria in codebase navigation. It dispatches queries, evaluates the relevance of retrieved content, and refines the search criteria based on that evaluation, looping up to three times to resolve ambiguity.

Does progressive context retrieval loop indefinitely when evaluating codebase patterns?

No, progressive context retrieval does not loop indefinitely when evaluating codebase patterns. The iterative dispatch, evaluation, and refinement cycle is constrained to a maximum of three loops to gather sufficient context efficiently.

When do I need progressive context refinement for multi-agent workflows?

You need progressive context refinement for multi-agent workflows when a subagent requires specific code files, patterns, or terminology from a codebase to operate effectively but lacks the initial context to locate them. It is essential for complex tasks like fixing authentication token expiry bugs.