Skip to main content

ish — Interactive Semantic Hunt

Semantic search for code, inspired by fzf. Point ish at a directory. It parses each source file into named chunks, embeds them with a local model, and ranks them against your query. Everything runs on your machine.

Languages: Python, C and C++, Markdown, AsciiDoc, YAML, and JSON. Documentation and configuration are indexed beside the code they describe, so one query searches all of it.

Install

pip install interactive-semantic-hunt

Nothing in that install compiles: the default backend reaches Ollama over HTTP with the standard library. A backend that runs the model in this process is an extra — [llama] for llama.cpp, [st] for sentence-transformers.

The default embedding backend is Ollama, which keeps the model resident so no run pays a model load. Start it once and pull the embedding model:

ollama serve
ollama pull nomic-embed-text

Set OLLAMA_HOST to reach a daemon elsewhere.

Two other backends need no daemon:

  • --embedder llama.cpp downloads a GGUF model and loads it per run. Slower per query, faster for a first index of a large tree. Needs the [llama] extra.
  • --embedder st uses sentence-transformers. Needs the [st] extra.

Use

List every chunk under a path:

ish src/
src/ish/domain/chunk.py:7-28  class  Chunk

Search for a query:

ish "parse a python file" src/
[0.71] src/ish/adapters/parser/python.py:14-31  method  PythonParser.parse

Run the interactive picker and open the selection in your editor:

nvim $(ish -i src/)

Type to search, up/down to move, enter to choose, escape to quit.

The first search of a tree builds its index. Later searches parse only the files that changed and embed only text they have not seen.

Write a filter into the query. It works the same in every interface:

lang:cpp state machine transitions     only C and C++
under:/10.System/ state                only paths that match
type:doc how do I configure this       only prose
type:test,doc retry backoff            the tests and what they document

type: takes code, doc, test, and config.

Press Tab to finish a filter word: ty becomes type:, lang:cp becomes lang:cpp.

Use it from your editor or your code

from how read
Neovim contrib/nvim/ish.lua, an fzf-lua picker clients
VS Code contrib/vscode/, a QuickPick on Ctrl+Alt+I clients
Python from ish.interfaces.python.api import Ish clients
an agent ish-mcp, a Model Context Protocol server clients

To keep the index of a large tree current in the background, run ish-serve /path/to/tree. Every client then reads the index and refreshes nothing itself. See indexing.

Configure

Every command-line option is also a key in .ish/config.toml at the root of your repository:

limit = 10
ignore = [".git", ".venv", "build", "node_modules"]

# Regular expressions, searched against the path.
exclude = ["/vendor/", "/generated/", "_pb2\\.py$"]

Keep generated code out of the index. It is large, nobody searches it by meaning, and embedding costs about one chunk per second.

Documentation

  • Use: every filter, every option, and the picker themes.
  • Clients: Neovim, VS Code, Python, and MCP.
  • Configure: config files and their order, keeping generated code out, the model's context window.
  • Index: where the index lives, federation, worktrees, and ish-serve.
  • Extend: add a language or an embedding backend.

Develop

uv sync
uv run poe check   # lint, typecheck, test
uv run --group docs mkdocs serve   # preview the documentation site

The architecture is ports and adapters. .claude/CLAUDE.md describes the layers, the composition root, and the decisions behind them.

Metadata

Release files for interactive-semantic-hunt 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for interactive-semantic-hunt 0.6.2
File Size Uploaded Provenance Actions
interactive_semantic_hunt-0.6.2.tar.gz 112.6 kB With provenance Details for interactive_semantic_hunt-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for interactive-semantic-hunt 0.6.2
File Interpreter ABI Platform Actions
interactive_semantic_hunt-0.6.2-py3-none-any.whl Python 3 none any Details for interactive_semantic_hunt-0.6.2-py3-none-any.whl

Total release size: 242.4 kB

Release files / interactive_semantic_hunt-0.6.2.tar.gz

Download URL interactive_semantic_hunt-0.6.2.tar.gz
Size 112.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4c26433f6ac2ae62a29b69a81c501a1d26234ae6524b7cb403077ae8b8d9bdcd
BLAKE2b-256 checksum
How to use checksums
b48a9e35484fa17b620322d4c523f40567dd87dc7b03f8eb2f039562283aa301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / interactive_semantic_hunt-0.6.2-py3-none-any.whl

Download URL interactive_semantic_hunt-0.6.2-py3-none-any.whl
Size 129.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2da7473d0263f7a9d3e748136883756634c5b9cd5c5cfcd00850165e90525c1
BLAKE2b-256 checksum
How to use checksums
ab2ad927289f6e0c8b4a745e048a1098ffaedcbb95ec30c5739a8495482333f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for interactive-semantic-hunt 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for interactive_semantic_hunt-0.6.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page