iterative-retrieval

Iteratively retrieve and filter codebase information across a 4-phase loop.

Updated May 27, 2025
One-click install
npx skills add https://github.com/vinwang/tools --skill iterative-retrieval-vinwang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/vinwang/tools/tree/main/iflow/skills/iterative-retrieval
Command: npx skills add https://github.com/vinwang/tools --skill iterative-retrieval-vinwang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the context problem in multi-agent workflows where subagents start with limited information and can't predict what context they will need, causing inefficient or incorrect decisions.

Core Features & Use Cases

  • A 4-phase iterative loop (DISPATCH, EVALUATE, REFINE, LOOP) to progressively refine the files and context used by subagents.
  • Enables dynamic inclusion of new patterns, keywords, and exclusion rules based on relevance scores to improve discovery during code exploration, debugging, or data analysis tasks.
  • Works with codebases and structured datasets to minimize context overload while ensuring critical context is accessible when needed.

Quick Start

Initiate the 4-phase iterative retrieval loop on your task and let the system dispatch, evaluate, and refine until you have enough high-relevance context.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I refine subagent context in a multi-agent workflow when the required information is unknown upfront?

Refining subagent context is achieved through an iterative retrieval loop that progressively filters codebase information. It dispatches subagents, evaluates file relevance scores, and updates search criteria to dynamically include necessary context for multi-agent workflows.

What is the best way to manage context overload during codebase exploration and debugging tasks?

Managing context overload during codebase exploration requires iteratively retrieving and filtering information. By scoring file relevance and excluding low-signal results across multiple cycles, the system minimizes context size while ensuring critical data remains accessible for debugging.

How does iterative retrieval work to improve dynamic task decomposition in multi-agent systems?

Iterative retrieval improves dynamic task decomposition by running a 4-phase loop: DISPATCH, EVALUATE, REFINE, and LOOP. It evaluates subagent results, refines search patterns, applies exclusion rules, and loops up to three cycles to maximize context relevance.

Can I use iterative retrieval for structured datasets besides codebases?

Yes, iterative retrieval works with both codebases and structured datasets to minimize context overload. It applies the same relevance scoring and dynamic exclusion rules to ensure critical context is accessible for data analysis tasks.

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

The primary limitation of this iterative retrieval loop is the maximum cycle constraint, allowing up to three refinement loops. If the required codebase context is not discovered within three cycles, the system may not retrieve sufficient high-relevance information.