iterative-retrieval

Retrieve targeted codebase context through iterative 4-phase retrieval cycles.

1|Updated May 12, 2026
One-click install
npx skills add https://github.com/Manvendra08/TradingBot --skill iterative-retrieval-manvendra08
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/Manvendra08/TradingBot/tree/main/_agent/skills/iterative-retrieval
Command: npx skills add https://github.com/Manvendra08/TradingBot --skill iterative-retrieval-manvendra08

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the common issue where spawned subagents lack the necessary codebase context to complete tasks, leading to failures from missing information, context overload from sending entire codebases, or incorrect guesses about required files.

Core Features & Use Cases

  • 4-Phase Iterative Retrieval Loop: Dispatches initial broad queries, evaluates file relevance, refines search criteria, and repeats up to 3 cycles to collect targeted context.
  • Progressive Context Refinement: Adapts search terms and patterns based on discovered codebase terminology and identified context gaps, eliminating guesswork.
  • Use Case: Use this pattern when building multi-agent workflows for code exploration, bug fixes, or feature implementation where initial context requirements are unknown upfront.

Quick Start

Use the iterative-retrieval skill to gather the relevant codebase context needed to debug the authentication token expiry issue.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I provide codebase context to subagents without causing context overload?

Iterative retrieval prevents subagent context overload by dispatching targeted queries and evaluating file relevance across up to 3 cycles. Instead of sending entire codebases, it progressively refines search criteria to collect only high-value context.

What is iterative retrieval in multi-agent workflows?

Iterative retrieval is a 4-phase dispatch-evaluate-refine-loop workflow that solves subagent context limitations. It uses relevance scoring and gap identification to progressively gather targeted context for tasks where initial requirements are unknown upfront.

How do I collect relevant code context for bug fixes when required files are unknown?

You can collect relevant code context by applying iterative retrieval to progressively refine search terms based on discovered codebase terminology. It evaluates file relevance and identifies context gaps across 3 cycles to eliminate guesswork.

When should I use progressive context refinement for code exploration tasks?

Use progressive context refinement for code exploration, bug fixes, or feature implementation when initial context requirements are unknown. It adapts search patterns based on discovered terminology to gather targeted context and prevent missing information failures.

Can I use iterative retrieval for RAG pipeline design?

Yes, iterative retrieval applies to RAG pipeline design by using a 4-phase loop with relevance scoring and gap identification. It progressively collects targeted context across 3 retrieval cycles instead of sending full data upfront.

What are the limitations of iterative retrieval for agent orchestration?

Iterative retrieval limits agent orchestration to 3 retrieval cycles for collecting targeted context. It requires evaluating file relevance and refining search criteria at each phase, making it unsuitable for tasks needing full codebase delivery upfront.