iterative-retrieval

Guide subagents through a 4-phase retrieval loop to refine information.

1|Updated Mar 20, 2024
One-click install
npx skills add https://github.com/flag3/dotfiles --skill iterative-retrieval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/flag3/dotfiles/tree/main/.claude/skills/iterative-retrieval
Command: npx skills add https://github.com/flag3/dotfiles --skill iterative-retrieval

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables iterative retrieval to overcome the context problem in multi-agent workflows by progressively refining gathered information to fit task requirements.

Core Features & Use Cases

  • Progressive context refinement: Retrieve and prune search space across cycles to minimize noisy data.
  • Phase-guided retrieval: Follow DISPATCH, EVALUATE, REFINE, LOOP to achieve high-relevance results.
  • Use Case: In a large codebase, start with broad comments and keywords, then iteratively narrow to the most relevant files for a bug fix or feature work.

Quick Start

Initiate the iterative retrieval pattern on your project to identify the most relevant files and context for your task.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I retrieve relevant context from a large codebase efficiently?

Iterative retrieval progressively narrows search results across multiple cycles using a DISPATCH-EVALUATE-REFINE-LOOP pattern, filtering noisy data to surface the most relevant files and information for your task without overwhelming your agent with excess context.

What's the best way to guide multi-agent workflows through information retrieval?

Multi-agent workflows benefit from phase-guided retrieval that enforces structured cycles: dispatch agents to search, evaluate results against task requirements, refine the search space, then loop up to three times to progressively improve relevance and minimize irrelevant data.

Can I use iterative retrieval to narrow down files for a bug fix in a large codebase?

Yes. Start with broad keyword and comment searches across your codebase, then iteratively filter results through evaluation cycles to pinpoint the most relevant files and context needed for debugging or feature work.

How does context refinement work across knowledge bases and data lakes?

Context refinement applies the same DISPATCH-EVALUATE-REFINE-LOOP pattern to any structured data source: retrieve initial candidates, assess them against your requirements, prune the search scope, and repeat to extract high-relevance results with minimal noise.

When should I use iterative retrieval instead of broad search?

Use iterative retrieval when initial context is limited or search results are too noisy to be immediately useful; it's designed for multi-agent workflows where progressive filtering reduces irrelevant information and focuses agents on task-specific context.

Does iterative retrieval work with prompt engineering for subagents?

Yes. Iterative retrieval guides subagents through structured retrieval phases using prompt engineering to interpret results and refine context, enabling each cycle to build on previous evaluations to improve answer quality.