iterative-retrieval

Refine subagent context through a four-stage retrieval loop.

41|8|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/codelably/harmony-claude-code --skill iterative-retrieval-codelably
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/codelably/harmony-claude-code/tree/main/docs/zh-TW/skills/iterative-retrieval
Command: npx skills add https://github.com/codelably/harmony-claude-code --skill iterative-retrieval-codelably

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pattern for progressively refining context retrieval to solve the subagent context problem in multi-agent workflows where subagents enter tasks without sufficient context.

Core Features & Use Cases

  • Four-stage loop (DISPATCH, EVALUATE, REFINE, LOOP) to progressively refine context and surface relevant files.
  • Relevance scoring and gap identification to surface high-signal artifacts while excluding low-value results.
  • Common use cases include onboarding new tasks, dynamic code search, and cross-repo knowledge discovery for complex workflows.

Quick Start

Run iterative retrieval to progressively refine subagent context across 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 improve subagent context in multi-agent workflows when initial information is incomplete?

Subagent context is improved by running a four-stage loop (DISPATCH, EVALUATE, REFINE, LOOP) that iteratively retrieves and scores relevant files, patterns, and terms across up to three cycles to return high-value artifacts.

What is the best way to filter low-signal results during dynamic code search across repositories?

The best way to filter low-signal results is using relevance scoring and gap identification to evaluate retrieved artifacts, progressively excluding low-value results while surfacing high-signal information for subagent execution.

How does iterative retrieval work for cross-repo knowledge discovery in complex workflows?

Iterative retrieval works by dispatching context queries, evaluating the relevance scores of returned artifacts, refining the search gaps, and looping up to three times to discover cross-repo knowledge and surface relevant files.

When do I need staged retrieval for onboarding new tasks in a multi-agent system?

You need staged retrieval when subagents enter new tasks without sufficient context, requiring progressive context refinement through multiple cycles to discover necessary files, patterns, and terms for effective task execution.

Can I use iterative retrieval to handle subagents that start with incomplete information?

Yes, iterative retrieval specifically targets multi-agent workflows where subagents start with incomplete information, using a structured four-stage loop to progressively refine context and surface high-value artifacts for task execution.

What are the limitations of the four-stage retrieval loop for refining subagent context?

The main limitation is that the four-stage loop runs for a maximum of three cycles, bounding the depth of progressive context refinement and gap identification available for discovering relevant files and patterns.