iterative-retrieval

Iteratively retrieve and refine context for subagent tasks in codebases.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/novvoo/skill-router --skill iterative-retrieval-novvoo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/novvoo/skill-router/tree/main/agent/skills/iterative-retrieval
Command: npx skills add https://github.com/novvoo/skill-router --skill iterative-retrieval-novvoo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge where subagents lack the necessary context to perform their tasks, especially in code-heavy environments, by progressively refining information retrieval.

Core Features & Use Cases

  • Progressive Context Gathering: Iteratively searches and evaluates files to build a relevant context set.
  • Codebase Exploration: Ideal for agents needing to understand specific parts of a codebase without knowing the exact files beforehand.
  • RAG Pipeline Optimization: Enhances Retrieval-Augmented Generation by ensuring the most pertinent information is fetched.
  • Use Case: When debugging a complex bug, this skill can help an agent find all relevant code files related to authentication and session management, even if the agent doesn't know the specific file names or modules involved.

Quick Start

Use the iterative-retrieval skill to find files related to user authentication and session management within the 'src' and 'lib' directories.

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 for agent tasks in a complex codebase?

You refine codebase context iteratively by dispatching agents to search files, evaluating relevance, and refining search patterns to build a targeted context set. This progressive retrieval method ensures subagents gather pertinent information without knowing exact file paths beforehand.

What is the best way to find related code files for debugging a complex bug?

The best way to find related files is using iterative retrieval to dynamically discover patterns and expand keywords. By looping through dispatch and evaluation phases, agents can automatically locate all relevant code files for complex bugs, such as those affecting authentication and session management.

How does iterative retrieval optimize RAG pipelines for agents?

Iterative retrieval optimizes RAG pipelines by progressively fetching the most pertinent information and excluding irrelevant paths. This dynamic evaluation loop maximizes token usage accuracy, ensuring agents retrieve only the highly relevant context needed to execute subagent tasks.

Can I explore a codebase to gather context without knowing specific file names?

Yes, you can explore codebases by employing an iterative retrieval loop that supports dynamic pattern discovery. Agents evaluate search results and expand keywords over multiple cycles, successfully identifying relevant files within specified directories without requiring exact file names.

What are the limitations of iterative context retrieval for subagents?

A limitation of iterative context retrieval is its strict maximum of three cycles within the dispatch, evaluate, and refine loop. This caps the exploration depth, meaning extremely dispersed codebases might require manual intervention if relevant paths are not discovered within the three-cycle limit.