iterative-retrieval

Iteratively refine codebase search queries to identify relevant files.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/vrcms/everything-qwen-code --skill iterative-retrieval-vrcms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/vrcms/everything-qwen-code/tree/main/.qwen/skills/iterative-retrieval
Command: npx skills add https://github.com/vrcms/everything-qwen-code --skill iterative-retrieval-vrcms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the context problem in multi-agent workflows where subagents lack the necessary codebase information to perform tasks effectively, preventing failures caused by missing context or excessive token usage.

Core Features & Use Cases

  • Progressive Context Refinement: Uses a 4-phase loop (Dispatch, Evaluate, Refine, Loop) to narrow down relevant files.
  • Intelligent Search: Dynamically updates search keywords and patterns based on previous retrieval results.
  • Use Case: When a subagent needs to fix a complex bug but does not know which files are relevant, this skill iteratively discovers the correct files by analyzing codebase terminology and patterns.

Quick Start

Use the iterative-retrieval skill to gather the necessary context for fixing the authentication token expiry bug in the current repository.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I retrieve relevant codebase context for multi-agent systems when the required files are unknown?

To retrieve relevant codebase context for multi-agent systems, you can use an iterative refinement loop that progressively narrows down files through dispatch, evaluate, and refine phases. This dynamically updates search keywords based on previous results to identify high-relevance files.

What is the best way to optimize RAG context retrieval for complex software engineering tasks?

The best way to optimize RAG context retrieval for complex software engineering tasks is applying a multi-cycle refinement loop. This mechanism evaluates and refines queries iteratively, ensuring token-efficient retrieval and high-relevance file identification without exceeding single prompt limits.

How do I prevent subagent token exhaustion when exploring a large codebase?

You prevent subagent token exhaustion during large codebase exploration by implementing iterative retrieval. This approach dynamically analyzes codebase terminology and patterns across multiple cycles, preventing failures caused by missing context or excessive token usage in a single prompt.

Can I use iterative retrieval to fix a complex bug if I do not know which files are relevant?

Yes, you can use iterative retrieval to fix a complex bug when relevant files are unknown. The skill discovers the correct files by analyzing codebase terminology and patterns, intelligently updating search keywords through a progressive context refinement loop.

When should I avoid using a single prompt for codebase exploration in multi-agent workflows?

You should avoid using a single prompt for codebase exploration when the required context is unknown or too large for a single prompt. In these multi-agent workflow scenarios, an iterative retrieval loop is necessary to dynamically evaluate and gather the required context.