iterative-retrieval

Iteratively refine codebase context for subagents across up to three cycles.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill iterative-retrieval-richardnpaul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/richardnpaul/everything-vscode-copilot/tree/main/.github/skills/iterative-retrieval
Command: npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill iterative-retrieval-richardnpaul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the "context problem" in multi-agent workflows where subagents don't know what context they need until they start working.

Core Features & Use Cases

  • A 4-phase loop that progressively refines context (DISPATCH, EVALUATE, REFINE, LOOP).
  • Stops early when three high-relevance files are found and gaps are filled.
  • Integrates with agent prompts to guide deterministic context retrieval and refinement.

Quick Start

Run an iterative retrieval to progressively refine codebase context for subagents.

Frequently Asked Questions about iterative-retrieval

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

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

You refine codebase context for subagents by iteratively retrieving information across up to three cycles. This workflow uses a four-phase loop—DISPATCH, EVALUATE, REFINE, and LOOP—to progressively narrow down relevant files for tasks like debugging or feature development.

What is the context problem in multi-agent workflows and how do I solve it?

The context problem in multi-agent workflows occurs when subagents do not know what information they need until they start working. This issue is solved by using an iterative retrieval loop that automatically evaluates and refines queries to fill information gaps as the task progresses.

How does iterative retrieval decide when to stop searching for relevant files?

Iterative retrieval decides to stop searching when it finds three high-relevance files and fills the context gaps. The workflow evaluates relevance scores during the EVALUATE phase and automatically stops early once this specific condition is met.

Can I use iterative context refinement for codebase exploration and feature development?

Yes, you can use iterative context refinement for codebase exploration, debugging, and feature development. It is specifically designed for scenarios where the required context is unclear until work begins, progressively guiding deterministic retrieval across up to three cycles.

What are the limitations of using a three-cycle iterative retrieval loop for subagents?

A limitation of this iterative retrieval loop is that it is constrained to a maximum of three cycles. Additionally, the stop condition is strictly tied to finding three high-relevance files, which may not be sufficient for extremely large or complex codebase explorations requiring deeper context.