iterative-retrieval

Iteratively search, evaluate, and refine codebase context retrieval for multi-agent workflows.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/ryasrk/AgentBrokeTheMatrix-CopilotVersion --skill iterative-retrieval-ryasrk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/ryasrk/AgentBrokeTheMatrix-CopilotVersion/tree/main/.github/skills/iterative-retrieval
Command: npx skills add https://github.com/ryasrk/AgentBrokeTheMatrix-CopilotVersion --skill iterative-retrieval-ryasrk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of providing subagents with the precise codebase context they need, especially when that context is not known upfront.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively searches and evaluates files to build a relevant context set.
  • Handles Unpredictable Needs: Ideal for multi-agent workflows where subagents discover their context requirements during execution.
  • RAG Optimization: Helps build efficient retrieval pipelines for code exploration and reduces token waste.
  • Use Case: When debugging a complex issue, this Skill can help an agent discover all relevant files related to authentication and session management, even if the agent doesn't initially know the exact file names or keywords.

Quick Start

Use the iterative-retrieval skill to find files related to 'user authentication' in the 'src' directory.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I refine context retrieval for subagents in multi-agent workflows?

To refine context retrieval for subagents, implement iterative search and evaluation loops that progressively discover relevant codebase files based on identified relevance gaps. This pattern dynamically builds a precise context set during execution.

What is the best way to discover relevant codebase files for RAG pipelines when keywords are unknown?

The best way to discover relevant codebase files for RAG pipelines is using progressive context refinement, which iteratively searches, evaluates, and refines search criteria to find necessary files without requiring upfront keyword knowledge.

How does progressive context refinement solve the subagent context problem?

Progressive context refinement solves the subagent context problem by iteratively searching and evaluating files, allowing subagents to dynamically discover and build their required context sets rather than relying on predefined file structures.

Can I use iterative search for codebase exploration in complex debugging scenarios?

Yes, iterative search supports codebase exploration in complex debugging by progressively refining search criteria to discover all files related to specific features like user authentication, even when exact file names are initially unknown.

Does iterative context retrieval help reduce token waste in agent orchestration?

Iterative context retrieval reduces token waste in agent orchestration by evaluating file relevance and identifying gaps before inclusion, ensuring subagents only receive the precise codebase context needed for their specific task.

When do I need dynamic context discovery for multi-agent systems?

Dynamic context discovery is needed for multi-agent systems when subagents discover their context requirements during execution, requiring iterative searches to evaluate and refine codebase files rather than relying on static context injection.