pi-readseek

Pi extension for readseek-backed hash-anchored read/edit/grep, structural code maps, structural search, and file exploration

Packages

Package details

extension

Install pi-readseek from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-readseek
Package
pi-readseek
Version
0.2.1
Published
Jun 13, 2026
Downloads
113/mo · 113/wk
Author
jarkkojs
License
MIT
Types
extension
Size
414.5 KB
Dependencies
7 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-readseek

pi-readseek is a pi extension for readseek-backed file reading, hash-anchored editing, anchored grep, structural maps, symbol lookup, and structural search. It exists to resolve conflicts between overlapping pi file-operation tools by exposing one consistent readseek-centered surface.

Installation

pi install npm:pi-readseek

Tools

  • read — reads text files with LINE:HASH anchors for later edit calls; images are returned as attachments. Large or symbol-scoped reads can include structural maps powered by @jarkkojs/readseek.
  • edit — changes existing text files using fresh anchors from read, grep, search, or write. Use anchored variants such as set_line; new_text must be plain replacement text and never include LINE:HASH| prefixes. Set new_text to "" to delete a line. Fuzzy replacement is literal relocation, not approximate or semantic matching.
  • grep — searches text and returns edit-ready LINE:HASH anchors without a follow-up read.
  • search — searches code by structural pattern and returns anchored matches; use it when syntax matters more than raw text.
  • write — creates or overwrites whole files and returns anchors for immediate follow-up edits. Create a new file with write when there is no existing file to edit.
  • ls — lists one directory.
  • find — recursively discovers files and directories.

Licensing

pi-readseek is licensed under MIT. See LICENSE for more information.

The upstream @jarkkojs/readseek packages are licensed separately as Apache-2.0 AND LGPL-2.1-or-later.

readseek is originally derived from the source code of pi-hashline-readmap. The relevant copyrights have been retained in LICENSE.