# Dual level retrieval

> Dual level retrieval is an open-source agent skill for developer tools. Guides an agent to run broad searches first, then read top hits in full before quoting. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/dual-level-retrieval
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** dual-level-retrieval
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill sets a two-pass method for gathering evidence in a codebase or document set. The agent first runs wide, recall-focused searches on names and identifiers, logs every hit location, and ranks them by how decisive they are likely to be rather than how often they match.

In the second pass the agent reads the highest-ranked candidates in full context, including the enclosing definition and its callers, and only quotes material drawn from that reading. Snippets from the first pass are treated as unverified leads. If a fine read reveals new vocabulary, the agent loops back to a new coarse query until no new decisive locations appear.

The skill expects the agent to have search and file-reading access to the corpus. Its report at the end states how many locations the broad pass found, how many were read closely, and what was intentionally left unread.

## When your agent uses it

> Use when search results are too coarse to support a claim—sweep broadly to identify every candidate location, then open the most decisive hits around their definitions and callers before quoting or citing them.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/dual-level-retrieval)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/dual-level-retrieval)

## Features

- **Coarse sweep over identifiers:** Runs recall-oriented searches on names, symbols and identifiers to find every candidate location.
- **Decisiveness ranking:** Orders candidate hits by how likely they define a behavior instead of how many matches they contain.
- **Full-context fine reading:** Reads top candidates around their definitions and callers before any quotation.
- **Iterative vocabulary feedback:** Feeds newly learned terms back into broad queries until no new decisive hits appear.
- **Coverage reporting:** States how many locations were found, read, and deliberately skipped.

## Good for

- Find every place a function is defined and used before citing its behavior
- Verify a claim about a codebase with quotes taken from full file reads
- Trace a configuration key across a repository and report which files were actually read
- Audit where an identifier is referenced and list what was left unchecked

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/dual-level-retrieval` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.claude/skills/dual-level-retrieval &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/dual-level-retrieval` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/dual-level-retrieval` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.agents/skills/dual-level-retrieval &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/dual-level-retrieval` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/dual-level-retrieval` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.cursor/skills/dual-level-retrieval &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/dual-level-retrieval` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/dual-level-retrieval
```

Or copy the folder to `~/.gemini/skills/dual-level-retrieval` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/dual-level-retrieval`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dual-level-retrieval &&
cp -R "$tmp/.agents/skills/dual-level-retrieval" ~/.copilot/skills/dual-level-retrieval &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/dual-level-retrieval` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/dual-level-retrieval` into your agent's skills folder as `dual-level-retrieval`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It is a single SKILL.md file with no scripts. It assumes the agent can search the corpus and open files, and it uses no particular tools beyond those.

### Does Dual level retrieval change any files?

No. The instructions only describe how to search, read and report evidence.

### When should the agent use Dual level retrieval?

When search results are too broad to support a claim and the agent needs to read the relevant code or text before quoting it.

### How do I install Dual level retrieval in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dual-level-retrieval to use it in all your projects, or to .claude/skills/dual-level-retrieval in one project.

### Does Dual level retrieval run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Dual level retrieval?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Dual level retrieval?

The closest alternatives to Dual level retrieval are Codebase index, Codebase memory MCP, Harness review, Why and Select blind targets.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Codebase index](https://ai-powered.com/skills/codebase-index): Codebase index is an open-source agent skill for developer tools.
- [Codebase memory MCP](https://ai-powered.com/skills/codebase-memory-mcp): Codebase memory MCP is an open-source agent skill for knowledge and memory.
- [Harness review](https://ai-powered.com/skills/harness-review-chachamaru127): Harness review is an open-source agent skill for developer tools.
- [Why](https://ai-powered.com/skills/why-michael-denyer): Why is an open-source agent skill for developer tools.
- [Select blind targets](https://ai-powered.com/skills/select-blind-targets): Select blind targets is an open-source agent skill for developer tools.
- [Retro](https://ai-powered.com/skills/retro-mattpocock): Retro is an open-source agent skill for developer tools.
- [Improve codebase architecture](https://ai-powered.com/skills/improve-codebase-architecture): Improve codebase architecture is an open-source agent skill for developer tools.
- [Context strategy](https://ai-powered.com/skills/context-strategy): Context strategy is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/dual-level-retrieval
