iterative-retrieval

Iteratively refine codebase context retrieval through Dispatch, Evaluate, Refine, and Loop phases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Rx-K8/my-claude-code --skill iterative-retrieval-rx-k8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/Rx-K8/my-claude-code/tree/main/japanese/skills/iterative-retrieval
Command: npx skills add https://github.com/Rx-K8/my-claude-code --skill iterative-retrieval-rx-k8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the "context problem" in multi-agent workflows where sub-agents don't know the necessary context until they start working, preventing them from being overwhelmed by too much information or lacking crucial details.

Core Features & Use Cases

  • Phased Context Refinement: Iteratively refines search criteria through four phases: Dispatch, Evaluate, Refine, and Loop.
  • Dynamic Query Adjustment: Learns from evaluated content to adjust search patterns, keywords, and exclusions.
  • Use Case: When debugging a complex issue, this Skill can intelligently narrow down the relevant code files by starting with broad search terms and progressively focusing on the most pertinent areas based on initial findings.

Quick Start

Use the iterative retrieval skill to find files related to fixing 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 find relevant code files in a codebase when the initial context is unknown?

Iterative code retrieval solves unknown initial context by progressively discovering relevant files through a four-phase loop: Dispatch, Evaluate, Refine, and Loop. It dynamically adjusts search patterns and keywords based on relevance scoring.

How does iterative context refinement work for multi-agent systems?

Iterative context refinement works by dispatching broad searches, evaluating candidate files, and refining search criteria dynamically. This loop prevents sub-agents from being overwhelmed by data or lacking crucial details during codebase navigation.

What is the best way to search a large codebase when debugging a complex issue?

The best way to search a large codebase for debugging is using dynamic query adjustment. It starts with broad search terms and progressively focuses on pertinent areas by learning from evaluated content and applying exclusions.

Can I use dynamic query adjustment to narrow down search patterns for a specific bug?

Yes, you can use dynamic query adjustment to narrow down search patterns. By evaluating candidate files and scoring relevance, the system iteratively refines keywords and exclusions to target specific bugs like an authentication token expiry.

When do I need phased context refinement for codebase navigation?

You need phased context refinement when sub-agents in a multi-agent workflow lack necessary context initially. It is required when progressive discovery within a codebase is needed to prevent missing crucial details or facing information overload.

Why does my sub-agent lack crucial details during codebase navigation?

Sub-agents lack crucial details because initial context is unknown in complex multi-agent workflows. Without iterative context refinement, they cannot dynamically adjust search patterns to progressively discover pertinent code areas.