iterative-retrieval

Iteratively refine file retrieval queries across up to three cycles for subagent context.

Updated Jun 2, 2025
One-click install
npx skills add https://github.com/wraithyy/dotfiles --skill iterative-retrieval-wraithyy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/wraithyy/dotfiles/tree/main/dot_claude/skills/iterative-retrieval
Command: npx skills add https://github.com/wraithyy/dotfiles --skill iterative-retrieval-wraithyy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of providing subagents with the precise context they need to perform tasks, especially when the required context isn't known upfront.

Core Features & Use Cases

  • Progressive Context Gathering: Iteratively refines search queries to find the most relevant files and information.
  • Relevance Scoring: Evaluates retrieved content to determine its usefulness for a given task.
  • Gap Identification: Pinpoints missing information that needs to be retrieved in subsequent iterations.
  • Use Case: When debugging a complex bug, this Skill can intelligently search the codebase, identify relevant files like error handlers and related modules, and provide them to a debugging agent without overwhelming it with irrelevant code.

Quick Start

Use the iterative-retrieval skill to find relevant code files for the task '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 provide relevant context to a subagent in a multi-agent workflow?

To provide relevant context to a subagent, use an iterative retrieval pattern that progressively gathers and evaluates candidate files based on broad queries, then refines search criteria using extracted keywords and identified context gaps.

What is the best way to search a codebase for debugging complex bugs without overwhelming the agent?

The best way to search a codebase for complex bugs is progressive context gathering, which iteratively evaluates retrieved content, scores its relevance, and pinpoints missing information to refine subsequent file searches.

How does iterative context retrieval handle missing information during codebase navigation?

Iterative context retrieval handles missing information by identifying context gaps after evaluating initially retrieved files, then refining search criteria and performing subsequent iterations up to three cycles to find the missing data.

When do I need progressive context gathering for subagent communication?

You need progressive context gathering for subagent communication when required context is not known upfront, ensuring deterministic tasks receive sufficient and relevant files without manually pre-selecting exact code paths.

Does iterative context retrieval have a limit on search cycles?

Iterative context retrieval has a maximum limit of three cycles, iterating through broad queries, keyword extraction, and gap identification to ensure enough relevant context is collected before passing it to subagents.

Can I use pattern matching to refine search criteria for multi-agent systems?

Yes, you can use pattern matching to refine search criteria in multi-agent systems, extracting keywords and patterns from initially retrieved candidate files to narrow down context retrieval in subsequent iterations.