ivygrep v1.4.0 GitHub

grep finds what you typed. ivygrep finds what you meant.

Ask your code a question in plain words. Get ranked files, line numbers, and the code itself. Indexing and search run on your machine, for you and for your coding agents.

brew install bvolpato/tap/ivygrep

Free and MIT licensed. No account and no telemetry. All install options

We asked ripgrep’s own source code:

$ ig "which thread count does it pick by default"

crates/core/flags/hiargs.rstop result

1362    }1363    Ok(builder.build()?)1364}1365 1366/// Use "heuristics" to determine the default thread count.1367fn default_thread_count() -> usize {1368    std::thread::available_parallelism().map_or(1, |n| n.get()).min(12)1369}1370 
  • then crates/core/flags/defs.rs:7104
  • then crates/printer/src/summary.rs:42

rg -i thread in the same tree: 201 lines in 20 files

Recorded results from ig 1.3.6 on BurntSushi/ripgrep 16.0.0. The keyword line is what ripgrep finds for the word you would probably try first. Use each tool for what it is good at.

Give your agent the code behind the task.

ig context starts from your task and follows the code: definitions, callers, references, dependencies, dependents, tests, configuration, and docs. It stops at the token budget you set, and every item says why it is there.

ig context "expand a tilde in the global core.excludesFile path" --budget 2000

1,970 of 2,000 estimated tokens. 7 items from 5 files.

  • crates/ignore/src/gitignore.rs:986-1014
    primary, test
    rank 1 for primary retrieval
    300 tokens
  • crates/ignore/src/gitignore.rs:718-743
    dependency
    crates/ignore/src/walk.rs depends on crates/ignore/src/gitignore.rs
    388 tokens
  • crates/ignore/src/walk.rs:913-941
    primary, dependent
    crates/ignore/src/walk.rs depends on crates/ignore/src/gitignore.rs
    369 tokens
  • crates/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs:15-22
    dependent, test
    crates/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs depends on crates/ignore/src/gitignore.rs
    171 tokens
  • crates/core/flags/defs.rs:4906-4934
    primary
    rank 2 for primary retrieval
    272 tokens
  • crates/core/flags/defs.rs:4831-4847
    test
    rank 1 for anchor test retrieval
    195 tokens
  • crates/ignore/src/lib.rs:21-29
    dependency
    crates/ignore/src/gitignore.rs depends on crates/ignore/src/lib.rs
    152 tokens

Recorded with ig 1.3.6 on the same ripgrep source. Rose marks primary evidence. Green marks code reached through a relationship. The budget covers the rendered pack, so headings count too.

Start from your branch

ig context "fix refresh-token races" --since main --budget 8000

The pack covers commits since the merge base with main, plus staged, unstaged, and untracked files.

Start from an error

pytest 2>&1 | ig context -

Paths in a pasted trace or issue become starting points. The output is evidence to read: it does not generate an answer or edit files.

Connect the agent you already use.

One command adds ivygrep to the client, keeps your existing configuration, checks the MCP handshake, and runs a search.

One command

ig agent install claude

Or the plugin, with a task-context skill

claude plugin marketplace add bvolpato/ivygrep
claude plugin install ivygrep@ivygrep

Manual MCP setup

claude mcp add -s user ig -- ig --mcp

Claude Code guide

What the agent asks for

ig_search
  query: "fix refresh-token races"
  path: "/absolute/repository/path"
  output=context_pack
  since=main
  budget_tokens=8000

What to put in your agent instructions

Use ivygrep before broad filesystem scans.
Pass the absolute active worktree path.
Use natural-language queries for concepts
and literal=true for identifiers.
For implementation, request
output=context_pack with budget_tokens=8000.

After setup, restart an open client. ig agent doctor checks the connection.

Index once. It keeps up.

Search starts before indexing finishes

Keyword and exact search come first. Background workers then add hash vectors and neural vectors.

Edits arrive on their own

The daemon watches your files and updates only what changed. A file confirmed as missing leaves the results at once.

Worktrees share one index

Worktrees reuse one base index and store only divergent chunks and tombstones. Ten worktrees do not need ten complete indexes.

Three Git worktrees branch from one shared base index. Each stores only its changed chunks, and a tombstone for a deleted file. base index, shared by every worktree hotfix1 changed chunk feature/auth3 changed chunks cleanup1 changed chunk, 1 tombstone

Your code stays where it is.

This is everything that leaves your machine:

Source, notes, queries, resultsNothingIndexing and search run locally. There is no hosted inference.
Embeddings and indexesNothingThey live in ~/.local/share/ivygrep. ig --rm deletes one.
TelemetryNoneThere is no account and no usage reporting.
The default modelOne download33.5 MB of pinned potion-code-16m-v2 assets on first use. It runs on CPU. --hash avoids the download.
The Web UIOnly if you bind itLoopback by default, with a session token in every case. Non-loopback serving is plain HTTP: use a trusted network or a tunnel.

Measured in public, misses included.

Every number names its version and links to its method and raw data. Performance depends on your hardware, your repository, and load.

Issue text to fixed file70%of 30 real issues from 10 open source projects had a file that the fix touched in the top five results. It was first for 47%. Default routing, v1.3.5. Rust scored lowest, at 40%. Method and losses
Context pack coverage77%of packs for the same 30 issues contained a file that the fix touched, at 4,172 tokens on average, v1.3.5. Method
Notes and memory74.9%recall@20 on MemoryQuest at 87.63 ms warm p95, v1.2.7. It measures retrieval, not answer accuracy or the current model. Report
A million chunks6.19 mswarm CLI p95, with 150,576 chunks/s indexing and a 0.42 GiB index. Median of three sequential v1.2.7 trials on deterministic synthetic data, hash-only. Scale and footprint, not semantic quality or agent outcomes. Data and method

All benchmark reports, including the cost of the current model under concurrent load.

Install

Homebrew

brew install bvolpato/tap/ivygrep

macOS and Linux. Metal build on Apple Silicon, portable build elsewhere.

Shell installer

curl -fsSL https://raw.githubusercontent.com/bvolpato/ivygrep/main/install.sh | sh

macOS and Linux. Picks a compatible build and checks its SHA-256. CUDA is used only on Linux x86_64 with a supported GPU and runtime.

WinGet

winget install --id BrunoVolpato.ivygrep --exact

Windows. WinGet updates can lag GitHub releases.

PowerShell installer

irm https://raw.githubusercontent.com/bvolpato/ivygrep/main/install.ps1 | iex

Windows. Installs the latest published version, or the one that IVYGREP_VERSION names.

CUDA and Metal only speed up optional transformer models. ig hardware shows your build and the matching install command.

  1. Open a repository and ask.
    ig "where is refresh token rotated?"
  2. Build context for a task.
    ig context "fix token races"
  3. Connect your agent.
    ig agent install claude