iterative-retrieval

Iteratively retrieve and evaluate codebase files for multi-agent context refinement.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/TakMczk/copilot-cli-ecc --skill iterative-retrieval-takmczk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/TakMczk/copilot-cli-ecc/tree/main/.github/skills/iterative-retrieval
Command: npx skills add https://github.com/TakMczk/copilot-cli-ecc --skill iterative-retrieval-takmczk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge where subagents require codebase context that they cannot predict upfront, leading to incomplete or irrelevant information.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively searches and evaluates codebase files to gather the most relevant context for agent tasks.
  • Handles Unknown Context Needs: Ideal for scenarios where the exact files or patterns needed are not known at the start of a task.
  • Use Case: When debugging a complex bug, this skill can help an agent discover the specific files and code snippets related to the issue, even if they are in unexpected locations or use unfamiliar terminology.

Quick Start

Use the iterative-retrieval skill to find relevant code files for the task "Implement user authentication flow".

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 complex agent tasks when the required files are unknown?

You can refine codebase context by using an iterative retrieval pattern that progressively searches and evaluates files based on initial queries and subsequent refinement cycles. This dynamically identifies relevant code for multi-agent workflows.

Why does my subagent lack the necessary codebase context for debugging complex bugs?

Subagents lack context because they cannot predict required files upfront, leading to incomplete information. Iterative retrieval solves this by progressively discovering relevant code snippets even in unexpected locations or with unfamiliar terminology.

What is the best way to implement a dynamic RAG pipeline for multi-agent code exploration?

The best way to implement a dynamic RAG pipeline is through iterative retrieval, which progressively evaluates codebase files to gather relevant context. This ensures efficient token usage and handles unknown context needs in complex exploration tasks.

Does iterative retrieval support efficient token usage during complex codebase exploration?

Yes, iterative retrieval supports efficient token usage by dynamically identifying and evaluating only the relevant codebase files. This progressive refinement cycle ensures agents retrieve specific, necessary context without loading irrelevant information.

How do I discover relevant code files for a task if I do not know the exact patterns beforehand?

You discover relevant code files by initiating an iterative retrieval process with a broad query, then refining the search through subsequent cycles. This dynamically evaluates and narrows down codebase files based on emerging context.

When should I not use a progressive context refinement approach for agent workflows?

You should not use progressive context refinement for simple, predictable tasks where all required files are already known. The iterative retrieval pattern is specifically designed for complex scenarios with unknown, dynamic context requirements.