iterative-retrieval

Iteratively refine sub-agent context through a 4-stage retrieval loop.

25|13|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/aaione/everything-claude-code-cn --skill iterative-retrieval-aaione
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/aaione/everything-claude-code-cn/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/aaione/everything-claude-code-cn --skill iterative-retrieval-aaione

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sub-agent workflows often begin with partial context and struggle to know what files, patterns, or terms are relevant. Iterative retrieval patterns provide a structured method to progressively enrich and narrow context so sub-agents can operate effectively without overloading them.

Core Features & Use Cases

  • 4-stage iterative cycle (DISPATCH, EVALUATE, REFINE, LOOP) to progressively surface and refine relevant context.
  • Dynamic query refinement that adds new patterns and keywords while excluding low-relevance results.
  • Real-world use: locate code patterns, terminology, and documentation needed for a sub-agent task within a large codebase.

Quick Start

Initiate an iterative retrieval cycle to collect and refine contextual files for a sub-agent task.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I refine incomplete context for sub-agents in a multi-agent workflow?

To refine incomplete context for sub-agents, use iterative retrieval to progressively narrow and enrich source material. This approach applies a 4-stage loop—DISPATCH, EVALUATE, REFINE, and LOOP—to dynamically add relevant patterns while excluding low-relevance results.

What is the best way to locate relevant code patterns for sub-agents in a large codebase?

The best way to locate relevant code patterns for sub-agents is using phase-based retrieval cycles. This method evaluates initial context iteratively, applying threshold-based file selection to surface necessary terminology and documentation without overloading the agents.

How does iterative retrieval work in multi-agent information retrieval?

Iterative retrieval works by executing a 4-stage cycle: DISPATCH to gather initial files, EVALUATE to assess relevance, REFINE to dynamically adjust queries and exclude low-value results, and LOOP to repeat until threshold-based context enrichment is achieved.

When do I need iterative context refinement for agents?

You need iterative context refinement for agents when initial context is incomplete and agents struggle to identify relevant files or patterns. It provides a structured method to progressively enrich context so sub-agents can operate effectively within large codebases.

Does iterative retrieval exclude low-relevance results from sub-agent context?

Yes, iterative retrieval excludes low-relevance results from sub-agent context. During the REFINE stage, the system dynamically adds new keywords and patterns while actively filtering out low-relevance files through threshold-based selection criteria.

Can I use threshold-based file selection to narrow context for multi-agent workflows?

Yes, you can use threshold-based file selection to narrow context for multi-agent workflows. This process evaluates source material during each retrieval cycle, ensuring only highly relevant files are passed to sub-agents to prevent context overload.