iterative-retrieval

Refine context retrieval through a four-phase DISPATCH, EVALUATE, REFINE, LOOP cycle.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/sakamoto-family-smile/agent_monorepo --skill iterative-retrieval-sakamoto-family-smile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/sakamoto-family-smile/agent_monorepo/tree/main/.claude/skills/ecc/iterative-retrieval
Command: npx skills add https://github.com/sakamoto-family-smile/agent_monorepo --skill iterative-retrieval-sakamoto-family-smile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Subagents often start with incomplete or ambiguous project context. This pattern enables progressive retrieval to assemble the necessary files, terms, and context before action.

Core Features & Use Cases

  • Iterative 4-phase loop: DISPATCH, EVALUATE, REFINE, LOOP to progressively refine context.
  • Relevance scoring: evaluates candidate files to identify high-value sources and reduce context waste.
  • Guided refinement: updates search patterns and keywords based on evaluation results to close information gaps.
  • Use Case: when spawning subagents for codebase exploration with strict token limits and missing context.

Quick Start

Dispatch an initial broad query to gather codebase context, then iteratively refine results for high-relevance files within up to three cycles.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I retrieve codebase context for subagents when the context is too large or missing?

To solve the subagent context problem, use iterative retrieval to progressively refine context through a 4-phase loop: DISPATCH, EVALUATE, REFINE, and LOOP. This balances precision and efficiency by selecting high-relevance files and identifying gaps.

What is the best way to manage token efficiency during multi-agent codebase exploration?

The best way to manage token efficiency is using relevance scoring to evaluate candidate files during the EVALUATE phase. This identifies high-value sources and reduces context waste before spawning subagents with strict token limits.

How does the iterative retrieval loop refine context for subagents?

The iterative retrieval loop refines context by dispatching an initial broad query, evaluating results for relevance, and then updating search patterns and keywords. This guided refinement closes information gaps within up to three cycles.

When should I use progressive context retrieval in multi-agent workflows?

Use progressive context retrieval when spawning subagents for codebase exploration that start with incomplete or ambiguous project context. It is specifically designed for workflows facing context too large or missing context failures during task execution.

Are there limitations to the iterative retrieval pattern for context management?

A limitation of the iterative retrieval pattern is its cycle-limited refinement, capping at up to three cycles. This constraint balances precision and efficiency but may leave information gaps if the codebase context is exceptionally complex.