iterative-retrieval

Iteratively refine context retrieval by dispatching broad queries and evaluating candidate files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge where subagents lack sufficient context to perform their tasks effectively, leading to errors or incomplete results in multi-agent workflows.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively searches and evaluates files to build the most relevant context for an agent.
  • Handles Subagent Context Problem: Solves the issue of subagents not knowing what information they need upfront.
  • Use Case: When debugging a complex feature, this Skill can intelligently identify and gather all relevant code files, configuration settings, and documentation related to the bug, providing a focused context for the debugging agent.

Quick Start

Use the iterative-retrieval skill to find all files related to user authentication and session management.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I gather relevant context for subagents when they lack sufficient information upfront?

Progressive context retrieval solves subagent information gaps by iteratively dispatching broad queries, evaluating candidate files for relevance, and refining search criteria based on identified terminology. This multi-agent system pattern loops up to three times to gather sufficient context for complex tasks.

What is the iterative search approach for codebase navigation in multi-agent systems?

Iterative search for codebase navigation dynamically refines context retrieval by dispatching broad queries, evaluating candidate files, and looping up to three times. This pattern progressively identifies relevant code, configuration, and documentation files to solve the subagent context problem.

How do I refine search criteria for information gathering when debugging complex features?

Refine search criteria by dispatching broad queries first, then evaluating candidate files for relevance, and identifying gaps in terminology. The iterative retrieval pattern loops up to three times to intelligently gather all relevant code and documentation for focused debugging context.

Does iterative context retrieval work for gathering files related to user authentication and session management?

Iterative context retrieval works for user authentication and session management by progressively searching and evaluating files to build relevant context. It dispatches broad queries, refines search criteria based on identified gaps, and loops to gather all related configuration and code files.

What are the limitations of using iterative retrieval for agent prompting in complex workflows?

Iterative retrieval for agent prompting limits loops to three iterations to balance context gathering efficiency. While it dynamically refines search criteria and evaluates candidate files, complex workflows may still require additional manual context evaluation if the subagent context problem persists beyond the loop limit.