iterative-retrieval

Guide subagents through an iterative four-phase retrieval loop to refine context.

6|Updated Mar 25, 2023
One-click install
npx skills add https://github.com/songkg7/dotfiles --skill iterative-retrieval-songkg7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/songkg7/dotfiles/tree/main/dot_claude/skills/iterative-retrieval
Command: npx skills add https://github.com/songkg7/dotfiles --skill iterative-retrieval-songkg7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the context problem in multi-agent workflows by providing a four-phase iterative retrieval loop that narrows down relevant information while avoiding information overload.

Core Features & Use Cases

  • DISPATCH, EVALUATE, REFINE, LOOP meta-pattern enables targeted discovery of relevant files or data without sending everything upfront.
  • Supports real-world use cases like guiding subagents to identify relevant files, terms, and gaps in a codebase, datasets, or documentation.
  • Use case: In a large codebase, break down a complex task by iteratively refining context until sufficient high-relevance sources are identified.

Quick Start

Invoke the iterative retrieval process with a task description. The agent will dispatch queries, evaluate results, and refine the query up to three cycles.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I refine retrieved context for subagents in a large codebase?

You can refine retrieved context for subagents using a four-phase iterative retrieval loop. It guides subagents through DISPATCH, EVALUATE, REFINE, and LOOP phases to narrow down relevant files without information overload.

What is the best way to prevent information overload in multi-agent retrieval workflows?

The best way to prevent information overload in multi-agent retrieval workflows is applying a deterministic, cycle-based protocol. This approach dispatches targeted queries, evaluates results, and refines them iteratively instead of sending everything upfront.

How do I identify context gaps when searching large documentation or datasets?

You identify context gaps by guiding subagents through an iterative evaluation phase. The process explicitly identifies missing information after each retrieval cycle and refines the next query to target those specific gaps.

Does the iterative retrieval loop support a maximum number of refinement cycles?

Yes, the iterative retrieval loop supports a maximum of three cycles. The deterministic protocol automatically stops after three refinement cycles to balance precision with processing efficiency.

When do I need an iterative retrieval process for my repository?

You need an iterative retrieval process when initial context from your repository is insufficient and precision is required. It applies to codebases, documentation, or datasets where sending all available information upfront would cause information overload.

Can I use iterative retrieval to break down complex tasks in a large codebase?

Yes, you can use iterative retrieval to break down complex tasks in a large codebase. It guides subagents to iteratively identify relevant files, terms, and gaps until sufficient high-relevance sources are found.