iterative-retrieval

Automate multi-agent context gathering with a 4-phase retrieval loop.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/idiaz01/enterprise-superpowers --skill iterative-retrieval-idiaz01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/idiaz01/enterprise-superpowers/tree/main/content/skills/iterative-retrieval
Command: npx skills add https://github.com/idiaz01/enterprise-superpowers --skill iterative-retrieval-idiaz01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Iterative Retrieval 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

  • 4-phase loop (DISPATCH, EVALUATE, REFINE, LOOP) to gather and rank candidate files.
  • Relevance scoring and gap identification drive refinements and minimize token usage.
  • Suitable for code exploration, debugging, feature work, and complex task orchestration across agents.

Quick Start

Start with a broad intent, evaluate results for relevance, and iteratively refine the query up to three cycles to assemble a relevant context set.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I gather context for subagents that don't know what files they need in a codebase?

Iterative retrieval automates context gathering for multi-agent workflows by progressively refining retrieval results. It uses a 4-phase loop—DISPATCH, EVALUATE, REFINE, LOOP—to assemble high-relevance context files for agent activation.

What is the best way to reduce token usage when exploring a large codebase for complex tasks?

Reducing token usage during codebase exploration is achieved through iterative retrieval cycles that score relevance and identify gaps. This enforces staged discovery with a cap of three cycles to minimize wasted tokens.

How does iterative retrieval work for multi-agent workflows?

Iterative retrieval works by dispatching a broad intent, evaluating candidate files for relevance, and refining the query up to three cycles. This loop progressively narrows down high-relevance context files needed for agent activation.

Can I use iterative retrieval for debugging and feature work across complex tasks?

Yes, iterative retrieval is suitable for code exploration, debugging, feature work, and complex task orchestration across agents. It solves the subagent context problem by enabling staged discovery of necessary files.

What are the limitations of using a 4-phase retrieval loop for context optimization?

The main limitation of this context optimization loop is a strict cap of three cycles. If the initial broad intent is too vague, the refinement phases may not fully assemble the required context set within the limited iterations.