iterative-retrieval

Refine codebase context queries across a four-phase retrieval loop for subagents.

Updated May 1, 2026
One-click install
npx skills add https://github.com/oguzhanguvenkaya/oguzhan_claude_code_configurations --skill iterative-retrieval-oguzhanguvenkaya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/oguzhanguvenkaya/oguzhan_claude_code_configurations/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/oguzhanguvenkaya/oguzhan_claude_code_configurations --skill iterative-retrieval-oguzhanguvenkaya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pattern for progressively refining context retrieval to solve the subagent context problem.

Core Features & Use Cases

  • Progressive 4-phase loop (DISPATCH, EVALUATE, REFINE, LOOP) to iteratively build high-relevance context.
  • Supports handling context limits and missing-context failures in multi-agent workflows.
  • Scales to codebases by refining search patterns, keywords, and exclusions across cycles.

Quick Start

Initiate a DISPATCH with broad patterns, then EVALUATE results, REFINE criteria, and LOOP up to three cycles to assemble high-relevance context for subagents.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I refine codebase context for subagents when working with large repositories?

Refining codebase context for subagents in large repositories involves a progressive 4-phase loop: DISPATCH, EVALUATE, REFINE, and LOOP. It scores relevance and refines search patterns, keywords, and exclusions across up to three cycles.

What is the best way to handle context limits in multi-agent workflows?

Handling context limits in multi-agent workflows is best achieved by iteratively retrieving and refining context. This approach uses a loop to evaluate relevance and refine queries, ensuring subagents receive only the most critical information without exceeding token limits.

Why does my subagent fail to find relevant files during code exploration?

Subagents fail during code exploration when initial search context lacks relevance. Resolve this missing-context failure by implementing an iterative retrieval loop that evaluates results and progressively refines search patterns, keywords, and exclusions across multiple cycles.

How to progressively build high-relevance context for subagents?

Initiate a DISPATCH with broad search patterns, EVALUATE the results, REFINE the criteria based on relevance scores, and LOOP up to three times. This progressively assembles highly relevant context for subagents.

Does iterative retrieval work for context-limited tasks in large codebases?

Iterative retrieval works for context-limited tasks in large codebases by scaling search patterns across cycles. It evaluates and refines keywords and exclusions up to three times, ensuring subagents receive high-relevance context without exceeding limits.