v0.16.0 adds context controls, expands the search router, and makes help and
version calls faster. The index and cache formats do not change. No migration
or re-index is required.
Seek
-A N/--after-context NshowsNlines after each match.-C N/--context NshowsNlines before and after each match.- The two modes cannot be combined. Both accept values from 0 to 512.
- The default stays at three lines before and after each match.
- Help and version calls no longer run cache garbage collection. Search and
management calls keep their current maintenance behavior.
seek-router 0.3.0
The router stays entirely outside Seek. The plugin owns all hook parsing and
command adapters. It calls only the public Seek CLI.
The hook can route strict, static forms of recursive grep, common rg
searches, literal git grep, fd, and find. It supports rg context flags
and an optional final head for file results.
The router answers navigation questions. It does not copy the source command's
full behavior or output. Routed searches return at most 20 ranked files and
three matches per file. An rg context route returns one match per file.
Unsupported or dynamic shell commands stay unchanged. Hook failures also leave
the original command unchanged. The five-second hook timeout covers only the
rewrite. Seek runs after the hook returns, so indexing is outside that timeout.
The plugin requires Seek, Universal Ctags, jq, and a POSIX awk on PATH.
Context routes require Seek v0.16.0 or later. See the
router contract
for all supported forms and limits.
Use this form when you need every result:
SEEK_ROUTER=off grep -rn 'PATTERN' .Install and update
Install Universal Ctags first. Then install this exact release:
curl -sSfL \
https://raw.githubusercontent.com/dualeai/seek/v0.16.0/install.sh |
sh -s -- v0.16.0In this repository, Codex loads .codex/hooks.json after you trust the project
configuration. No marketplace install is required.
For an existing Codex marketplace install, update the marketplace snapshot:
codex plugin marketplace upgrade seekStart a new Codex session. In /plugins, confirm that seek-router@seek is at
version 0.3.0. In /hooks, confirm that its PreToolUse hook is enabled and
trusted.
Validation
The tagged tree passed make test-static, the plugin suite
(15 passed, 0 failed), and the race-enabled Go suite with 83.3% statement
coverage.
Full changelog: v0.15.2...v0.16.0