affaan-m avatar

Iterative Retrieval

Solves the problem of subagents not knowing what context they need until they actually start working on a task. Instead of dumping your entire codebase or guessing what's relevant, this runs a 3-cycle loop: dispatch a broad search, evaluate what you got, refine based on what's missing, repeat. Each cycle scores files 0 to 1 and learns your codebase's actual terminology (like discovering your project calls it "throttle" not "rate limit"). Stops when you have 3+ high-relevance files or hit the cycle limit. The pattern is from ECC and targets multi-agent workflows where token limits make "send everything" impossible but "send nothing" leaves agents blind.

skills.sh installs
5.5K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill iterative-retrieval --agent claude-code

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/affaan-m/ecc
Category
AI & Agent Building
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1forcedotcom avataragentforce-d360-analyzeforcedotcom/sf-skillsData Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific Agentforce session by session i5.4Kskills.sh installs
2affaan-m avataropenclaw-persona-forgeaffaan-m/ecc为 OpenClaw AI Agent 锻造完整的龙虾灵魂方案。根据用户偏好或随机抽卡, 输出身份定位、灵魂描述(SOUL.md)、角色化底线规则、名字和头像生图提示词。 如当前环境提供已审核的生图 skill,可自动生成统一风格头像图片。 当用户需要创建、设计或定制 OpenClaw 龙虾灵魂时使用。 不适用于:微调5.4Kskills.sh installs
3cursor avatarinterrogatecursor/pluginsUse for \"interrogate\", \"adversarial review\", \"multi-model review\", \"challenge this\", \"stress test this code\", \"find blind spots\", or \"tear this apa5.3Kskills.sh installs
4getpaseo avatarpaseo-handoffgetpaseo/paseoHand off the current task to another agent with full context. Use when the user says "handoff", "hand off", "hand this to", or wants to pass work to another age5.3Kskills.sh installs
5browser-use avatarremote-browserbrowser-use/browser-useControls a local browser from a sandboxed remote machine. Use when the agent is running in a sandbox (no GUI) and needs to navigate websites, interact with web 4.9Kskills.sh installs
6affaan-m avatarinherit-legacy-styleaffaan-m/eccLegacy-project style inheritance skill. Use when the user types /inherit-legacy-style, or when onboarding an AI coding agent onto a hand-written legacy project 4.8Kskills.sh installs