iterative-retrieval

Iteratively refine context retrieval across up to three query loops.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/LiamVDB1/opencode-config --skill iterative-retrieval-liamvdb1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/LiamVDB1/opencode-config/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/LiamVDB1/opencode-config --skill iterative-retrieval-liamvdb1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge where subagents lack the necessary codebase context to perform their tasks effectively, preventing common "context too large" or "missing context" errors.

Core Features & Use Cases

  • Progressive Context Refinement: Iteratively narrows down relevant files and code snippets based on initial queries and evaluation feedback.
  • Handles Unpredictable Context Needs: Ideal for scenarios where subagents cannot predict required context upfront, such as complex bug fixes or new feature implementations.
  • Use Case: When debugging a complex authentication issue, this Skill can intelligently search for relevant files related to tokens, sessions, and user management, progressively refining the search until the exact files needed for the fix are identified.

Quick Start

Use the iterative-retrieval skill to find files related to user authentication and session management.

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 or missing context errors in multi-agent workflows?

Multi-agent workflows encounter context errors when subagents lack necessary codebase context. Progressive context refinement iteratively dispatches broad queries, evaluates relevance, and narrows search criteria up to three times to gather sufficient context.

What is the best way to retrieve codebase context for subagents when needed files are unpredictable?

The best way to retrieve unpredictable codebase context is iterative search. This method dispatches broad queries, evaluates retrieved snippets, and refines search criteria based on feedback until exact files are identified.

How does progressive context refinement work for code-intensive agent tasks?

Progressive context refinement works by iteratively dispatching broad queries, evaluating retrieved content for relevance, and refining search criteria. It loops up to three times to gather sufficient context for code-intensive tasks.

Can I use iterative search to find files for complex bug fixes in a codebase?

Yes, iterative search is ideal for complex bug fixes. It intelligently searches for relevant files like tokens and sessions, progressively refining search criteria until the exact files needed for the fix are identified.

When do I need dynamic context gathering for subagents?

Dynamic context gathering is needed when subagents cannot predict required context upfront, such as during complex bug fixes or new feature implementations. It prevents missing context errors by evaluating and refining search results.

Are there limitations to iterative context retrieval in multi-agent systems?

Iterative context retrieval loops up to three times to gather sufficient context. If the codebase context is too large or the search criteria cannot be refined effectively within these iterations, the retrieval may not find all relevant files.