iterative-retrieval

Automate iterative context retrieval for multi-agent workflows.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/Ced3-han/Harness-Settings --skill iterative-retrieval-ced3-han
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterative-retrieval
Source: https://github.com/Ced3-han/Harness-Settings/tree/main/skills/iterative-retrieval
Command: npx skills add https://github.com/Ced3-han/Harness-Settings --skill iterative-retrieval-ced3-han

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of providing appropriate context to subagents in multi-agent workflows, ensuring they have the necessary information to perform their tasks accurately.

Core Features & Use Cases

  • Iterative Retrieval Loop: Progressively refines context over up to 3 cycles.
  • Dispatch and Evaluate: Starts with a broad query to gather candidate files, then assesses their relevance.
  • Refine Search Criteria: Updates patterns, keywords, and excludes based on the evaluation.
  • Integration with Agents: Can be used in agent prompts for context retrieval.
  • Use Case: Ideal for bug fixes or feature implementations where understanding the context is crucial.

Quick Start

Use the iterative-retrieval skill to refine context for a task, like 'Fix the authentication token expiry bug', and receive a list of relevant files.

Frequently Asked Questions about iterative-retrieval

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

FAQPage Schema
How do I improve context retrieval for multi-agent workflows?

To improve context retrieval for multi-agent workflows, you can use an iterative retrieval loop that dispatches broad queries, evaluates the relevance of retrieved files, and refines search criteria over up to 3 cycles. This progressively gathers necessary information for subagents.

What is the best way to gather relevant files for complex bug fixes in agent workflows?

The best way to gather relevant files for complex bug fixes is to dispatch an initial broad query, evaluate candidate files for relevance, and iteratively refine search patterns and keywords. This ensures subagents receive accurate context for the task.

Can I integrate iterative context refinement directly into subagent prompts?

Yes, you can integrate iterative context refinement directly into subagent prompts. This allows agents to automatically update search patterns, keywords, and exclusions based on relevance evaluations, ensuring they have deep context understanding.

How does iterative context retrieval work when dispatching queries to subagents?

Iterative context retrieval works by dispatching broad queries to gather candidate files, evaluating their relevance, and refining search criteria based on the evaluation. This dispatch and evaluate process repeats up to 3 cycles to ensure accurate context.

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

The main limitation of using iterative cycles for context retrieval is that the refinement process repeats up to a maximum of 3 cycles. This bounds the search depth, which may not be sufficient for extremely complex tasks requiring extensive file gathering.