omp packages

pi-readseek0.13.16

Pi extension for LINE:HASH-anchored file operations and structural code navigation

GitLab CI/CD Published 3 days ago Apache-2.0 ~4.5K downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-readseek

Pi extension for anchored file operations, structural search, symbol navigation, and document inspection.

Install

pi install npm:pi-readseek

The 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 typecheck

License

Licensed under Apache-2.0.