iterative-retrieval

Refine codebase context for subagents through iterative retrieval loops.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Michae2xl/claude-skills-michael --skill iterative-retrieval-michae2xl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/Michae2xl/claude-skills-michael/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/Michae2xl/claude-skills-michael --skill iterative-retrieval-michae2xl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of providing sufficient context to subagents in multi-agent workflows, ensuring they have the necessary information to perform their tasks effectively.

Core Features & Use Cases

  • Context Refinement: Utilizes a 4-phase loop to progressively refine context for subagents.
  • Initial Query: Dispatches an initial broad query to gather candidate files based on provided patterns, keywords, and exclusions.
  • Relevance Evaluation: Assesses retrieved content for relevance and assigns a score.
  • Query Refinement: Updates search criteria based on evaluation to target specific gaps.
  • Iterative Loop: Repeats the process with refined criteria, up to 3 cycles.
  • Use Case: Suitable for building multi-agent workflows where context is progressively refined, and for subagents that need codebase context they cannot predict upfront.

Quick Start

Use the iterative-retrieval skill to start the iterative retrieval process for the task of "Fix the authentication token expiry bug".

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I solve the context problem for subagents in a multi-agent workflow?

Provide subagent context through a 4-phase iterative retrieval loop that progressively refines codebase information. It dispatches broad queries, evaluates relevance, refines search criteria, and repeats up to 3 cycles to ensure subagents have necessary task information.

How does iterative context retrieval work for codebase queries?

Iterative context retrieval works through a 4-phase loop: dispatching initial broad queries for candidate files, evaluating content relevance, refining search criteria to target gaps, and repeating up to 3 cycles. This progressively refines codebase context for subagents.

When do I need progressive context refinement for multi-agent orchestration?

You need progressive context refinement when subagents require codebase context they cannot predict upfront. It is suitable for building multi-agent workflows where context is iteratively refined to ensure subagents have sufficient information to perform tasks effectively.

Can I use iterative retrieval to fix codebase bugs with unpredictable context requirements?

Yes, you can use iterative retrieval for tasks like fixing an authentication token expiry bug. It dispatches initial queries based on patterns and keywords, then iteratively refines the search criteria up to 3 cycles to gather the necessary unpredictable codebase context.

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

The 4-phase retrieval loop is limited to a maximum of 3 iterative cycles for refining subagent context. It relies on initial broad queries, relevance evaluation, and query refinement, which may not surface deeply nested or undocumented codebase dependencies if patterns are too narrow.