iterative-retrieval

Refine codebase retrieval through a four-phase loop to identify relevant context files.

4|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/arbisoft/ai-skillforge --skill iterative-retrieval-arbisoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/arbisoft/ai-skillforge/tree/main/Claude/skills/iterative-retrieval
Command: npx skills add https://github.com/arbisoft/ai-skillforge --skill iterative-retrieval-arbisoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the context problem in multi-agent workflows by enabling subagents to start with partial context and progressively acquire the necessary files and terminology through a controlled retrieval loop.

Core Features & Use Cases

  • Four-phase retrieval loop (DISPATCH, EVALUATE, REFINE, LOOP) to converge on relevant files.
  • Relevance scoring and gap identification to guide focused retrieval.
  • Progressive refinement based on evaluation results and discovered gaps.
  • Designed to handle codebase contexts, reduce token usage, and prevent context bloating.

Quick Start

Initiate a broad retrieval query and allow the system to refine results through up to three cycles to converge on high-relevance files.

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 codebase context for subagents without token bloat?

Iterative context retrieval uses a four-phase loop to progressively converge on high-relevance files. It evaluates relevance scores, identifies context gaps, and refines queries to prevent context bloating within three cycles.

What is the iterative retrieval loop mechanism for AI agents?

The iterative retrieval loop uses four phases: DISPATCH, EVALUATE, REFINE, and LOOP. AI agents start with partial context and progressively acquire necessary files and terminology through this controlled retrieval cycle.

How do I start retrieving codebase files using progressive context refinement?

Initiate a broad retrieval query to start progressive context refinement. The system refines results through up to three cycles, evaluating relevance and highlighting gaps to return only the most relevant context files.

Does iterative context refinement work with multi-agent workflows?

Iterative context refinement is designed for multi-agent workflows. It enables subagents to progressively acquire necessary files and terminology through a controlled retrieval loop, solving the context problem in distributed agent environments.

What are the limitations of the four-phase retrieval loop?

The four-phase retrieval loop is limited to three cycles to converge on relevant files. It returns only the most relevant context files and highlights remaining gaps, which may require additional manual queries for highly complex codebases.