pi-readseek
v0.13.16
Published
Pi extension for LINE:HASH-anchored file operations and structural code navigation
Maintainers
Readme
pi-readseek
Pi extension for anchored file operations, structural search, symbol navigation, and document inspection.
Install
pi install npm:pi-readseekThe extension uses the binary supplied by @jarkkojs/readseek. Set
READSEEK_BINARY to an absolute executable path to override it.
Usage
Ask Pi to read a source range with readSeek_show or find an AST pattern with
readSeek_search. Read fresh LINE:HASH anchors before using readSeek_edit.
Press Ctrl+O to expand tool results. See readseek(1) for native
command behavior and selectors.
Document reads return cached image paths. When the host supports attachments,
images share a 32 MiB base64 data budget per tool result. Images that exceed
it are omitted with a notice and their file path. Reading never runs local
inference; readSeek_caption, readSeek_objects, and readSeek_ocr explicitly
request it and require installed models.
Settings
Add readseek to ~/.pi/agent/settings.json or .pi/settings.json:
{
"readseek": {
"overrideTools": [],
"imageMode": "auto",
"syntaxValidation": "warn",
"timeoutMs": 120000,
"grep": { "maxLines": 2000, "maxBytes": 51200 },
"display": {
"grep": "compact",
"edit": "expanded",
"write": "expanded"
}
}
}overrideTools accepts read, edit, write, and grep. imageMode is
auto, on, or off. Both auto and on require host image support; off
disables attachments. syntaxValidation is warn, block, or off.
Development
npm install
npm test
npm run typecheckLicense
Licensed under Apache-2.0.
