seek
Ranked local code search for AI coding agents. seek searches the current
folder or the paths you give, and returns the most relevant matches with their
definitions and context. A query also finds code by meaning, with a bundled
local model. No server or API key is needed.
Seek caches its indexes for fast repeat searches and safe concurrent use. It is
built for the shortest search time: it uses all CPU cores and as much memory and
cache space as a search needs.

Install
curl -sSfL https://raw.githubusercontent.com/dualeai/seek/main/install.sh | sh
The script installs the latest release in ~/.local/bin. Binaries are also on
GitHub Releases, for macOS 15 or
newer and glibc-based Linux, on amd64 and arm64.
Seek needs:
- Universal Ctags on
PATH (or set
CTAGS_COMMAND): brew install universal-ctags or
sudo apt-get install universal-ctags.
- Git 2.36 or later for Git repositories. Seek never fetches from a remote: in a
partial clone, a file whose content is not on disk is found by name only. A
partial clone needs Git 2.45 or later, or a 2024 maintenance release that
blocks lazy fetches.
The executable includes the model and its runtime.
Quick start
seek 'handleRequest' # the current folder
seek 'sym:handleRequest' # the definition, not the calls
seek 'handleRequest' ./src ./cmd # selected paths
seek 'needle' ./src/server.go # one file
seek 'request authentication flow' # a description: finds code by meaning
seek --lexical-only 'handleRequest' # text only, no model work
## src/server.go (Go)
13 // handleRequest processes incoming HTTP requests.
14 // It validates auth and delegates to the appropriate handler.
15 [func] func handleRequest(w http.ResponseWriter, r *http.Request) {
16 ctx := r.Context()
17 validateAuth(ctx, r)
Results are grouped by file, most relevant first, with 3 lines of context on
each side. In sym: results, a tag such as [func] or [class] marks each
definition. [uncommitted] marks a file with local changes. Piped output has
no color. Set NO_COLOR to disable color, or CLICOLOR_FORCE to force it.
The first search of a project builds its indexes. On a large repository this
can take tens of seconds and several GiB of memory and cache.
Usage
seek [flags] '<query>' [path...]
Flags come before the query, and paths after it. Put all filters inside the one
quoted query.
- With no path, Seek searches the current folder, the same as
..
- A Git repository, or a folder in one, follows Git's ignore rules and includes
local changes. An ignored file or folder is searched only when you give it as
a path.
- A folder outside Git is searched as it is on disk.
- A file path searches only that file.
- A path that is a symlink is resolved to its target. Symlinks found during a
walk are skipped.
| Query | Meaning |
|---|
CoreRouter | Text in file content or file names |
sym:CoreRouter | Function, class, method, or type definitions |
content:"async def" | Content only |
file:api, -file:test | Keep or drop paths that match |
lang:python, -lang:go | Keep or drop a language |
case:yes FooBar | Case-sensitive (yes, no, auto) |
type:file config | File names only |
foo or bar, (foo or bar) lang:go | Either term; grouping |
file: matches the path as printed, which starts with the path you typed
(Seek prints ./src as src).
Seek accepts the full Zoekt query syntax.
| Flag | Meaning |
|---|
-n 5 | At most 5 files (--limit; 0 for all) |
-m 3 | At most 3 matches per file (--max-matches; 0 for all) |
-A 5, -C 5 | Lines of context after, or on both sides |
--lexical-only | No meaning-based search and no model work |
-v | Debug logs and full errors |
Run seek completion <shell> --help for shell completion.
Descriptive search
Use a plain description when you know what the code does but not its name:
seek 'validate search query syntax'
seek -n 5 'find request parser lang:go -file:_test\.go$'