iterative-retrieval

Refine multi-agent context by progressively narrowing search space and pruning irrelevant files.

Updated Aug 30, 2025
One-click install
npx skills add https://github.com/vonomarap/kanokna --skill iterative-retrieval-vonomarap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/vonomarap/kanokna/tree/main/.agents/skills/iterative-retrieval
Command: npx skills add https://github.com/vonomarap/kanokna --skill iterative-retrieval-vonomarap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pattern for progressively refining context retrieval to solve the subagent context problem.

Core Features & Use Cases

  • Iterative retrieval loop: A 4-phase loop (DISPATCH, EVALUATE, REFINE, LOOP) that progressively refines context by selecting high-relevance files.
  • Context enrichment: Identifies relevant files, terminology, and patterns to improve subagent understanding.
  • Controlled cycles: Up to 3 cycles with relevance-based filtering to avoid overload.

Quick Start

Dispatch broad queries, evaluate results for relevance, and iteratively refine the search up to three cycles to converge on high-quality context.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I improve subagent context retrieval across a large codebase?

Subagent context retrieval improves by progressively narrowing the search space and pruning irrelevant files through a four-phase loop: DISPATCH, EVALUATE, REFINE, and LOOP, running up to three cycles to converge on high-quality context.

What is the subagent context problem in multi-agent workflows?

The subagent context problem occurs when agents start with limited context and struggle to identify relevant files, terminology, and patterns across large codebases, leading to incomplete understanding and poor task execution.

How do I iteratively refine search space to find relevant files for agents?

Iterative refinement works by dispatching broad queries, evaluating results for relevance, filtering out low-relevance files, and looping the refined search up to three cycles to enrich context and avoid information overload.

When should I use iterative retrieval instead of a single search pass?

Use iterative retrieval when subagents operate in large codebases where a single search pass returns too many irrelevant files, requiring progressive relevance-based filtering to identify accurate terminology and patterns.

Can I limit the number of retrieval cycles to prevent subagent context overload?

Yes, the iterative retrieval loop is capped at three cycles with relevance-based filtering at each stage to prevent context overload and ensure subagents receive only high-quality, relevant file information.

Why does my agent fail to identify relevant patterns in large codebases?

Agents fail when starting with limited context and no refinement mechanism, making it difficult to identify relevant files and patterns; an iterative retrieval loop progressively narrows the search space to solve this.