iterative-retrieval

Refine subagent context through iterative retrieval loops in multi-agent workflows.

Updated Nov 19, 2025
One-click install
npx skills add https://github.com/Sake-Team/SmartSake --skill iterative-retrieval-sake-team
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/Sake-Team/SmartSake/tree/main/backup/skills/iterative-retrieval
Command: npx skills add https://github.com/Sake-Team/SmartSake --skill iterative-retrieval-sake-team

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of providing subagents with the necessary context to function effectively, especially when the required context is not known in advance.

Core Features & Use Cases

  • Iterative Retrieval Loop: A 4-phase loop that progressively refines context for subagents.
  • Dispatch: Initial broad query to gather candidate files.
  • Evaluate: Assess retrieved content for relevance.
  • Refine: Update search criteria based on evaluation.
  • Loop: Repeat with refined criteria (max 3 cycles).
  • Use Case: Ideal for workflows where context is progressively refined and subagents need to know what context they need as they start working.

Quick Start

Activate the iterative-retrieval skill and provide the task you want to perform.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I provide codebase context to subagents when the required files are unknown in advance?▼

You can use iterative retrieval to progressively refine context for subagents. A 4-phase loop dispatches broad queries, evaluates relevance, and refines search criteria up to 3 cycles to gather necessary codebase context.

What is the iterative retrieval loop mechanism for multi-agent workflows?▼

The iterative retrieval loop is a 4-phase mechanism: Dispatch for initial broad queries, Evaluate to assess relevance, Refine to update criteria, and Loop to repeat with refined criteria for a maximum of 3 cycles.

How do I refine context retrieval for subagents that cannot predict their needed context upfront?▼

You refine context retrieval by applying an iterative loop that evaluates retrieved content and updates search criteria based on that assessment. This cycle repeats up to 3 times to ensure subagents get accurate codebase context.

When do I need progressive context refinement in multi-agent codebase tasks?▼

Progressive context refinement is needed in multi-agent workflows where subagents start working without knowing what codebase context they require. It dynamically discovers and refines the necessary context as the task progresses.

Does iterative retrieval work with any multi-agent workflow or only specific codebase setups?▼

Iterative retrieval applies to any multi-agent workflow where subagents need codebase context they cannot predict upfront. It requires no specific dependencies and uses scripts to drive the context refinement process.

What are the limitations of using an iterative retrieval loop for subagent context?▼

The main limitation of the iterative retrieval loop is the maximum cycle constraint of 3 iterations. If the required codebase context is not found within 3 refined search cycles, the subagent may lack complete context.