Skip to content
Development
Skill

/leann-search

Semantic search across codebase using LEANN vector index

From plugin
continuous-claude-v3
3.9k156 skills32 agents

Claude Code

$ npx -y skills add parcadei/Continuous-Claude-v3 --skill leann-search --agent claude-code

SKILL.md

leann-search.SKILL.md
name: leann-search
description: Semantic search across codebase using LEANN vector index
allowed-tools: [Bash, Read]

LEANN Semantic Search

Use LEANN for meaning-based code search instead of grep.

When to Use

  • **Conceptual queries**: "how does authentication work", "where are errors handled"
  • **Understanding patterns**: "streaming implementation", "provider architecture"
  • **Finding related code**: code that's semantically similar but uses different terms

When NOT to Use

  • **Exact matches**: Use Grep for `class Foo`, `def bar`, specific identifiers
  • **Regex patterns**: Use Grep for `error.*handling`, `import.*from`
  • **File paths**: Use Glob for `*.test.ts`, `src/**/*.py`

Commands

# Search the current project's index
leann search <index-name> "<query>" --top-k 5

# List available indexes
leann list

# Example
leann search rigg "how do providers handle streaming" --top-k 5

MCP Tool (in Claude Code)

leann_search(index_name="rigg", query="your semantic query", top_k=5)

Rebuilding the Index

When codebase changes significantly:

cd /path/to/project
leann build <project-name> --docs src tests scripts \
  --file-types '.ts,.py,.md,.json' \
  --no-recompute --no-compact \
  --embedding-mode sentence-transformers \
  --embedding-model all-MiniLM-L6-v2

How It Works

1. LEANN uses sentence embeddings to understand *meaning* 2. Searches find conceptually similar code, not just text matches 3. Results ranked by semantic similarity score (0-1)

Grep vs LEANN Decision

| Query Type | Tool | Example | |------------|------|---------| | Natural language | LEANN | "how does caching work" | | Class/function name | Grep | "class CacheManager" | | Pattern matching | Grep | `error\|warning` | | Find implementations | LEANN | "rate limiting logic" |

Read more
@parcadei
Ships withcontinuous-claude-v3

A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting

3.9k156 skills32 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.9k
Star history of parcadei/Continuous-Claude-v3 on GitHub, a chart by star-history.com

Other skills on continuous-claude-v3.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about leann-search.

Which coding agents can use leann-search?
leann-search installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.