iterative-retrieval

Automate context gathering for multi-agent workflows with a 4-phase retrieval loop.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/devs6186/claude-private-skills-agents-commands --skill iterative-retrieval-devs6186
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/devs6186/claude-private-skills-agents-commands/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/devs6186/claude-private-skills-agents-commands --skill iterative-retrieval-devs6186

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Subagents often start with limited context and don't know what context they need until they begin work, leading to wasted cycles and mismatched data.

Core Features & Use Cases

  • 4-phase loop: DISPATCH, EVALUATE, REFINE, and LOOP to progressively refine context.
  • Context-driven selection: Filters and scores candidate files to prioritize high-relevance content.
  • Practical use cases: Useful for code exploration, debugging, and assembling context before task execution.

Quick Start

Run the iterative retrieval loop against your codebase with a defined task to assemble high-value context.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I gather relevant context for subagents across a large codebase?

Automate context gathering for subagents using a 4-phase loop: DISPATCH, EVALUATE, REFINE, and LOOP. This process progressively filters and scores candidate files to prioritize high-relevance content for your agents.

Why do my multi-agent workflows waste cycles retrieving mismatched data?

Subagents waste cycles when they start with limited context and don't know what they need until they begin work. Iterative retrieval solves this by progressively refining context across retrieval backends before task execution.

What is the best way to assemble high-value context before debugging?

Use a relevance-based file selection loop to assemble high-value context. It scores candidate files and progressively refines the gathered data across a maximum of three cycles for smarter code exploration.

How does progressive context retrieval work for agent workflows?

Progressive context retrieval works by dispatching subagents, evaluating the initial context, refining the search queries, and looping until high-value context is assembled, capping at three cycles to prevent infinite loops.

Can I use iterative retrieval for code exploration with multiple agents?

Yes, it applies to spawning subagents that need progressively refined context across codebases and retrieval backends. It filters and scores candidate files to prioritize high-relevance content for practical use cases like code exploration.

What are the limitations of using a 3-cycle loop for context refinement?

The 4-phase loop is capped at a maximum of three cycles to prevent infinite loops. This limits the depth of context refinement but ensures the workflow terminates efficiently while scoring candidate files for relevance.