@ravshansbox/pi-zed
Zed editor context extension for pi
Package details
Install @ravshansbox/pi-zed from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ravshansbox/pi-zed- Package
@ravshansbox/pi-zed- Version
0.2.1- Published
- Oct 16, 2026
- Downloads
- 267/mo · 267/wk
- Author
- ravshansbox
- License
- MIT
- Types
- extension
- Size
- 22.1 KB
- Dependencies
- 0 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-zed
Zed editor context extension for pi.

Install
pi install npm:@ravshansbox/pi-zed
Usage
Pi loads the extension from ./index.ts. It reads Zed's local SQLite state and:
- shows a compact muted widget with the current Zed active file, selected line range, and count of other open files
- injects active file, open files, selected line numbers, and selected text into each pi prompt as hidden untrusted context
- registers
zed_current_context,zed_open_files, andzed_selected_lines
It requires the sqlite3 CLI.
Configuration
Set PI_ZED_DB to override the Zed database path. If unset, the extension tries:
$OPENCODE_ZED_DB~/Library/Application Support/Zed/db/0-stable/db.sqlite~/.local/share/zed/db/0-stable/db.sqlite
Development
npm install
npm run check