pi-readseek
Pi extension for readseek-backed hash-anchored read/edit/grep, structural code maps, structural search, and file exploration
Package details
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.5- Published
- Jun 14, 2026
- Downloads
- 566/mo · 566/wk
- Author
- jarkkojs
- License
- MIT
- Types
- extension
- Size
- 414.7 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 withLINE:HASHanchors for latereditcalls; 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 fromread,grep,search, orwrite. Use anchored variants such asset_line;new_textmust be plain replacement text and never includeLINE:HASH|prefixes. Setnew_textto""to delete a line. Fuzzy replacement is literal relocation, not approximate or semantic matching.grep— searches text and returns edit-readyLINE:HASHanchors without a follow-upread.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 withwritewhen 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.