dev-iterative-retrieval

Iteratively refine search queries to extract high-relevance files within context limits.

7|3|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/eriklieben/agentic-dev-workflow --skill dev-iterative-retrieval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-iterative-retrieval
Source: https://github.com/eriklieben/agentic-dev-workflow/tree/main/.claude/skills/dev-iterative-retrieval
Command: npx skills add https://github.com/eriklieben/agentic-dev-workflow --skill dev-iterative-retrieval

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the context-limitation problem in multi-agent workflows where sub-agents lack sufficient information to perform tasks effectively without overwhelming the context window.

Core Features & Use Cases

  • Progressive Refinement: Uses a 4-phase loop (Dispatch, Evaluate, Refine, Loop) to narrow down search results based on actual codebase terminology.
  • Relevance Scoring: Implements a scoring system to filter out noise and prioritize high-impact files.
  • Use Case: When a sub-agent is tasked with a complex bug fix, this skill ensures it discovers the correct architectural patterns and dependencies by iteratively refining search queries over a maximum of three cycles.

Quick Start

Use the dev-iterative-retrieval skill to find the necessary context for implementing the new order validation logic by starting with a broad keyword search.

Frequently Asked Questions about dev-iterative-retrieval

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

FAQPage Schema
How do I retrieve relevant codebase context for complex tasks without overwhelming the context window?

To retrieve codebase context without overwhelming limits, use an iterative retrieval process that refines search queries based on relevance scoring over a maximum of three cycles. This narrows down results to prioritize high-impact files while maintaining strict context boundaries.

What is iterative context retrieval in multi-agent systems?

Iterative context retrieval in multi-agent systems is a 4-phase loop mechanism—Dispatch, Evaluate, Refine, and Loop—that progressively narrows down search results. It ensures sub-agents discover correct architectural patterns by filtering noise and extracting high-relevance files based on actual codebase terminology.

How do I refine search queries when initial codebase search results are ambiguous?

To refine search queries when initial results are ambiguous, apply a structured evaluation loop that scores relevance and adjusts search terminology. This method iteratively filters out noise by matching actual codebase terms, peforming up to three refinement cycles to extract the correct dependencies.

Does multi-agent iterative retrieval work for complex bug fixes in large codebases?

Yes, multi-agent iterative retrieval works for complex bug fixes in large codebases. By implementing a relevance scoring system and progressively refining search queries, it ensures sub-agents discover the correct architectural patterns and dependencies needed to resolve the issue.

What are the limitations of iterative context retrieval?

The main limitation of iterative context retrieval is its strict cycle cap; the refinement loop runs a maximum of three times. If the required codebase terminology or architectural patterns are not discovered within these cycles, the extracted context may remain insufficient for the task.