iterative-retrieval

Iteratively search and evaluate codebase files to refine context retrieval.

1|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/VenTheZone/favorite-opencode-setup --skill iterative-retrieval-venthezone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/VenTheZone/favorite-opencode-setup/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/VenTheZone/favorite-opencode-setup --skill iterative-retrieval-venthezone

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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, preventing issues like "context too large" or "missing context" errors.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively searches and evaluates codebase files to build the most relevant context.
  • Dynamic Query Adjustment: Learns from initial search results to refine keywords, patterns, and focus areas for subsequent searches.
  • Use Case: When debugging a complex feature, this Skill can intelligently identify and retrieve only the most relevant files related to the bug, rather than overwhelming the agent with the entire codebase.

Quick Start

Use the iterative-retrieval skill to find files related to 'user authentication' within 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 prevent context too large errors when exploring a codebase with subagents?

To prevent context too large errors in multi-agent systems, implement iterative context retrieval. This pattern progressively searches and evaluates codebase files, ensuring subagents only receive the most relevant context instead of the entire codebase.

What is iterative context retrieval in RAG pipelines?

Iterative context retrieval in RAG pipelines is a pattern for progressively refining context retrieval. It learns from initial search results to dynamically adjust keywords and focus areas for subsequent searches, solving the subagent context problem.

How do I dynamically refine search queries for codebase exploration?

Dynamically refine search queries for codebase exploration by applying an iterative retrieval pattern. This approach learns from initial search results to adjust keywords, patterns, and focus areas for subsequent targeted file discovery.

Does progressive context refinement work for debugging complex features?

Progressive context refinement works effectively for debugging complex features. It intelligently identifies and retrieves only the relevant files related to the bug through dynamic query adjustment, preventing missing context errors.

What's the best way to score file relevance for subagent communication?

The best way to score file relevance for subagent communication is using iterative retrieval. It performs relevance scoring based on task intent and codebase analysis to build the most relevant context for multi-agent workflows.

When should I use iterative retrieval instead of static context loading?

Use iterative retrieval instead of static context loading when initial context is insufficient for multi-agent systems. It is necessary for scenarios requiring dynamic codebase exploration where upfront context is unknown, preventing missing context issues.