iterative-retrieval

Refine context retrieval iteratively across up to three query loops.

Updated Jul 10, 2025
One-click install
npx skills add https://github.com/nubiv/my-nome --skill iterative-retrieval-nubiv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/nubiv/my-nome/tree/main/nix-darwin/config/claude/skills/iterative-retrieval
Command: npx skills add https://github.com/nubiv/my-nome --skill iterative-retrieval-nubiv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of providing subagents with the precise codebase context they need, especially when that context is not known upfront.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively narrows down relevant files and code snippets.
  • Handles Unpredictable Context Needs: Ideal for tasks where subagents must discover necessary information.
  • Optimizes Token Usage: Avoids sending excessive or irrelevant data to agents.
  • Use Case: When debugging a complex feature, this Skill can help an agent discover the specific files and functions involved, even if the initial bug report is vague.

Quick Start

Use the iterative-retrieval skill to find 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 refine context retrieval for subagents when the necessary codebase files are unknown?

Context retrieval for subagents is refined by dispatching broad queries, evaluating relevance, and iteratively narrowing search criteria up to three times. This progressive pattern gathers sufficient codebase context without prior knowledge of target files.

What is the best way to optimize token usage in multi-agent workflows handling unpredictable codebase exploration?

Token optimization in multi-agent workflows is achieved by iteratively evaluating retrieved content and refining search criteria. This prevents sending excessive or irrelevant data to agents, ensuring only precise context is loaded.

How does progressive context discovery work for RAG-like pipelines involving complex agent tasks?

Progressive context discovery for RAG-like pipelines works by looping up to three times: dispatching an initial broad query, evaluating the retrieved content, and refining search criteria to gather only the relevant snippets needed for complex agent tasks.

When do I need iterative context refinement for multi-agent codebase debugging?

Iterative context refinement is needed when debugging complex features with vague bug reports. It allows agents to progressively discover specific files and functions involved by evaluating and refining initial broad search results.

Can I use this iterative retrieval pattern to handle unpredictable context needs in agent orchestration?

Yes, the iterative retrieval pattern handles unpredictable context needs in agent orchestration by looping up to three times. It evaluates retrieved content relevance and refines search criteria dynamically until sufficient context is gathered.

Are there limitations to using a three-loop iterative context refinement approach for subagent context discovery?

The iterative context refinement approach is limited to a maximum of three loops for narrowing down relevant files. If the initial query is too vague, three refinement cycles might be insufficient to gather all necessary subagent context.