iterative-retrieval

Refine context retrieval for sub-agents using a four-phase iterative loop.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/unju-ai/ecc --skill iterative-retrieval-unju-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/unju-ai/ecc/tree/main/docs/ja-JP/skills/iterative-retrieval
Command: npx skills add https://github.com/unju-ai/ecc --skill iterative-retrieval-unju-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the "context problem" in multi-agent workflows by iteratively refining context retrieval, ensuring sub-agents receive the necessary information without exceeding context limits.

Core Features & Use Cases

  • Phased Retrieval: Employs a four-phase loop (Dispatch, Evaluate, Refine, Loop) for progressive context refinement.
  • Dynamic Query Adjustment: Adapts search patterns and keywords based on evaluated relevance and identified gaps.
  • Use Case: When debugging a complex bug, this skill can intelligently search the codebase, identify relevant files like authentication modules and token utilities, and then refine the search to pinpoint the exact files needed for the fix, avoiding overwhelming the agent with irrelevant code.

Quick Start

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

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How does iterative context retrieval work in multi-agent systems?

Iterative context retrieval works by employing a four-phase loop: Dispatch, Evaluate, Refine, and Loop. It dynamically adjusts search queries based on relevance scoring and identified information gaps to progressively fetch precise sub-agent context.

How do I refine codebase navigation for debugging complex bugs?

Refine codebase navigation by dispatching initial search queries, evaluating relevance to identify gaps, and dynamically adjusting search patterns. This progressively pinpoints exact files like authentication modules needed for debugging without overwhelming agents with irrelevant code.

Can I use dynamic query adjustment for code analysis when initial context is insufficient?

Yes, dynamic query adjustment adapts search patterns and keywords based on evaluated relevance and identified gaps. This handles insufficient initial context by progressively refining the search to ensure agents retrieve precise information for complex code analysis tasks.

What is the best way to prevent sub-agents from exceeding context limits during codebase searches?

The best way to prevent exceeding context limits is using iterative context refinement. It evaluates search relevance and dynamically adjusts queries to solve the context problem, ensuring sub-agents receive only necessary information without irrelevant code overload.

When do I need phased retrieval for multi-agent workflows?

You need phased retrieval when initial context is insufficient for complex multi-agent tasks. It uses a Dispatch, Evaluate, Refine, and Loop cycle to progressively filter codebase information, ensuring sub-agents get precise data required for their specific task.