iterative-retrieval

Refine codebase context retrieval through a four-phase iterative loop.

1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/Mark393295827/house-maint-ai --skill iterative-retrieval-mark393295827
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/Mark393295827/house-maint-ai/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/Mark393295827/house-maint-ai --skill iterative-retrieval-mark393295827

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the context problem in multi-agent workflows where subagents require codebase context but can't know what context they need beforehand.

Core Features & Use Cases

  • 4-phase iterative loop: DISPATCH, EVALUATE, REFINE, LOOP with a max of 3 cycles to progressively refine context.
  • Dynamic context expansion: Incrementally identify relevant files and terminology, scoring relevance to guide refinement.
  • Use Case: Ideal when spawning subagents that need codebase context and when handling context-too-large or missing-context failures in tasks.

Quick Start

Do an initial broad retrieval, then let the system iterate up to three cycles to surface the most relevant 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 in multi-agent workflows?

Retrieve relevant codebase context for subagents by applying an iterative four-phase loop of DISPATCH, EVALUATE, REFINE, and LOOP. This progressively surfaces high-relevance files through quantitative scoring and dynamic query refinement.

What is the best way to fix missing-context or context-too-large errors in multi-agent tasks?

Fix missing-context or context-too-large errors by using progressive context refinement. This method incrementally identifies relevant files and terminology, scoring relevance to guide refinement and prevent context overload.

How does iterative context retrieval work for codebase analysis?

Iterative context retrieval works by performing an initial broad retrieval, then running up to three cycles of dynamic context expansion. It quantitatively scores file relevance during the EVALUATE phase to guide the REFINE phase.

Can I use progressive context refinement when spawning subagents that need codebase context?

Yes, you can use progressive context refinement when spawning subagents that need codebase context. It is designed for scenarios where subagents cannot know what context they need beforehand.

What are the limitations of iterative context retrieval for multi-agent workflows?

The main limitation of iterative context retrieval is the maximum cycle constraint. The refinement loop runs for up to three cycles, which limits the depth of dynamic context expansion before the process must return results.

Do I need specific dependencies to run iterative retrieval workflows?

No specific dependencies are required to run iterative retrieval workflows. The system operates independently to resolve the context problem in multi-agent workflows by progressively refining context retrieval.