iterative-retrieval

Iteratively refine context retrieval through Dispatch, Evaluate, Refine, and Loop phases.

19|4|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/j7-dev/everything-github-copilot --skill iterative-retrieval-j7-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/j7-dev/everything-github-copilot/tree/main/docs/ja-JP/skills/iterative-retrieval
Command: npx skills add https://github.com/j7-dev/everything-github-copilot --skill iterative-retrieval-j7-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the "context problem" in multi-agent workflows, where sub-agents lack sufficient information about relevant files, codebase patterns, or project terminology to begin their tasks effectively.

Core Features & Use Cases

  • Phased Context Gathering: Implements a four-phase loop (Dispatch, Evaluate, Refine, Loop) to iteratively refine search criteria.
  • Dynamic Query Adjustment: Learns from initial evaluations to add relevant keywords, patterns, and exclude irrelevant files in subsequent cycles.
  • Use Case: When a sub-agent needs to fix a bug related to "authentication tokens," this Skill can start with a broad search, evaluate the initial results, identify missing information (like specific libraries used), and then refine the search to pinpoint the exact files needed for the fix.

Quick Start

Use the iterative-retrieval skill to find relevant files for the task 'fix the authentication token expiration bug'.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I improve context retrieval for sub-agents in a multi-agent workflow?

Improve context retrieval for sub-agents by iteratively refining search criteria through a four-phase loop: Dispatch, Evaluate, Refine, and Loop. This dynamically adjusts search parameters based on relevance scoring to gather necessary files and patterns.

What is the best way to gather codebase patterns for agentic workflows?

Gather codebase patterns for agentic workflows by using a phased context gathering approach. It evaluates initial broad search results, identifies missing information like specific libraries, and refines subsequent searches to pinpoint exact files.

How does dynamic query adjustment work for codebase analysis?

Dynamic query adjustment for codebase analysis works by learning from initial evaluations. It adds relevant keywords and patterns while excluding irrelevant files in subsequent search cycles to refine context retrieval.

When do I need iterative context retrieval in multi-agent systems?

You need iterative context retrieval in multi-agent systems when sub-agents lack sufficient information about relevant files, codebase patterns, or project terminology to begin their tasks effectively without manual context provisioning.

Can I use iterative retrieval to fix bugs requiring specific project terminology?

Yes, you can use iterative retrieval to fix bugs requiring project terminology. It starts with a broad search, evaluates results to identify missing terminology or libraries, and refines the search to locate exact files needed for the task.

What are the limitations of iterative context refinement for sub-agents?

Iterative context refinement for sub-agents depends on accurate relevance scoring during the evaluation phase. Inaccurate gap identification or poorly defined initial search criteria can reduce the effectiveness of the dynamic query adjustment loop.