Iterative Retrieval
Progressive context retrieval pattern that solves the subagent context problem through repeated refinement.
- CCM score
- 67 of 100
- skills.sh installs
- 12.6K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers a four-phase loop: dispatch, evaluate, refine, and loop, with a maximum of three cycles
- Includes relevance scoring bands from 0.8 to 1.0 for direct implementations down to 0 to 0.2 for exclusions
- Enforces an early stop once three or more files reach 0.7 relevance with no critical gaps remaining
- Designed for multi-agent workflows where subagents cannot predict which files or terminology they need
Install
$ npx -y skills add affaan-m/ecc --skill iterative-retrieval -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Iterative Retrieval Pattern
Solves the "context problem" in multi-agent workflows where subagents don't know what context they need until they start working.
When to Activate
- Spawning subagents that need codebase context they cannot predict upfront
- Building multi-agent workflows where context is progressively refined
- Encountering "context too large" or "missing context" failures in agent tasks
- Designing RAG-like retrieval pipelines for code exploration
- Optimizing token usage in agent orchestration
The Problem
Subagents are spawned with limited context. They don't know:
- Which files contain relevant code
- What patterns exist in the codebase
- What terminology the project uses
Standard approaches fail:
- Send everything: Exceeds context limits
- Send nothing: Agent lacks critical information
- Guess what's needed: Often wrong
The Solution: Iterative Retrieval
A 4-phase loop that progressively refines context:
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Memory & Context, Agent Workflow & Planning
- First seen
- Jul 14, 2026
Questions
What does the iterative-retrieval skill do?
The iterative-retrieval skill applies a four-phase loop of dispatch, evaluate, refine and repeat to progressively refine context retrieval. It solves the subagent context problem, where subagents do not know which files or terminology they need until they start working.
How do I install the iterative-retrieval skill?
Run npx -y skills add affaan-m/ecc --skill iterative-retrieval -y in a project to install it. Once installed, the agent can retrieve candidate files, score their relevance and stop after at most three cycles with files scoring 0.7 or higher.
When should I use iterative-retrieval?
Use it when spawning subagents that need codebase context they cannot predict upfront, or when you hit context too large or missing context failures. It also fits RAG-like retrieval pipelines for code exploration and token use optimization in agent orchestration.
Where does iterative-retrieval rank in its category?
It is in the Memory & Context category and ranks in the top 25 on that category page. Other skills in the category include handoff and several caveman skills such as caveman-compress and caveman-stats.
More from affaan-m/ecc
All 257- Django Verification12.6K
- Nextjs Turbopack12.6K
- Content Engine12.5K
- Springboot Verification12.5K
- Context Budget12.5K
- Nutrient Document Processing12.5K
- Autonomous Loops12.4K
- Architecture Decision Records12.4K
- Investor Materials12.4K
- Swiftui Patterns12.4K
- Pytorch Patterns12.3K
- Bun Runtime12.3K
- Ai First Engineering12.3K
- Flutter Dart Code Review12.2K
- Perl Security12.2K
- Regex Vs Llm Structured Text12.2K
- Compose Multiplatform Patterns12.2K
- Continuous Agent Loop12.2K
- Content Hash Cache Pattern12.1K
- Kotlin Testing12.1K
- Ai Regression Testing12.1K
- Browser Qa12.1K
- Design System12.1K
- Jira Integration12K
Similar to Iterative Retrieval
More Memory & Contextcontinuous-agent-loopSkillaffaan-m/ecc12.2K installsPatterns for autonomous agent loops that gate on quality checks, evals, and recovery from failures.
filesystem-contextSkillmuratcankoylan/agent-skills-for-context-engineering404 installsFilesystem-backed overflow storage for agent context, with on-demand loading instead of static prompt inclusion.
context-engineering-collectionSkillmuratcankoylan/agent-skills-for-context-engineering4.5K installsCollection of context-engineering, harness, and multi-agent skills for building and debugging production agent systems.
context-engineeringSkilladdyosmani/agent-skills80K installsStructured context curation that feeds agents the right information at the right time to improve output quality.
rlmPluginjmagly/aiwg232 starsRLM-inspired recursive context decomposition for processing arbitrarily large codebases and document corpora through programmatic sub-agent delegation