Repository navigation
Releases
v0.6.4
Added
- The editor's top rule says what the next message will carry. With Starline
0.13 or newer, a fresh selection puts6 lines selected in main.tson the right
end of the editor border, and the hint clears the moment it goes stale, so what
is on screen is exactly what the prompt carries. It rides Starline's new editor
hint API; without Starline nothing is published and the status glyph is the only
signal.
Changed
- The status line spells the selection out when nothing else can. With
Starline installed the sentence6 lines selected in patient.tsgoes on the
editor's top rule and the status only appends the count (17L); without
Starline the status line is the only channel with room, so it says the whole
thing, file name included. Before this, a fresh selection left both channels
silent.
Fixed
- Neovim: deleting a visual line selection no longer errors.
GVkd, or any
visual line delete whose lines the selection was anchored on, raisedattempt to get length of local 'last', and because the error escaped theModeChanged
callback the state file kept the selection that had just been deleted. Marks past
the end of the buffer are now clamped, and a range that no longer exists is
reported as no selection.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.6.4/CHANGELOG.md
v0.6.3
Fixed
- JetBrains: the plugin now verifies on the IDE versions it claims to
support. The declared floor was 2025.2, but the table view reads
DataGridContainer, which only exists from 2025.3. Marketplace's verifier
rejected the 0.6.1 and 0.6.2 uploads on IDEA 2025.2 for referencing a class
that is not there, so the floor is 2025.3 (build 253). 2025.3 through the
2026.3 release candidate verify clean. - JetBrains: the custom extension point is declared where 2026.3 expects it.
<extensionPoint>sat directly under<idea-plugin>; the 2026.3 parser only
accepts it inside<extensionPoints>and loggedUnknown element: extensionPointat startup, which left the database context unregistered.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.6.3/CHANGELOG.md
v0.6.2
Fixed
- Neovim: the first selection in a buffer now reaches pi. Entering visual
mode (v,V, blockCtrl-V) in a buffer that had never had a selection
reported none, so the selection was missing from both the injected context and
the user message's quote line until you left visual mode and selected again.
The client no longer waits for Vim's'<mark, which Vim writes only when
visual mode is left.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.6.2/CHANGELOG.md
v0.6.1
Added
- Gitignore-style exclusions for automatic IDE context, without disconnecting the
editor. Global rules live in~/.pi/agent/ide-context.ignore; project rules in
.pi/ide-context.local.ignoreextend them and support!exceptions.
Excluded files contribute no context block, selection quote or selection entry.
Rule edits take effect on the next prompt. The Starline bubble indicates when
automatic context is excluded. - TeX-family status icons for
tex,latex,plaintexandbibtex, with filename
fallbacks for.tex,.ltx,.bib,.sty,.clsand.bst.
Fixed
- Selection quotes and session metadata now use the selection actually injected,
rather than re-reading a potentially different file after the prompt starts. - JetBrains database context uses the current column-type API, fixing plugin
compilation against recent IDE versions.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.6.1/CHANGELOG.md
v0.6.0
JetBrains IDEs, and a picker that can tell WebStorm from DataGrip.
Added
- A JetBrains client.
editors/jetbrains/is a Kotlin plugin for the IntelliJ
Platform: WebStorm, PyCharm, IDEA, DataGrip, GoLand, PhpStorm, RubyMine, CLion,
Rider and Android Studio all load the same artifact, because it depends on
com.intellij.modules.platformand nothing else. Install it from the release
zip (Settings → Plugins → ⚙ → Install Plugin from Disk) — it is not on the
JetBrains Marketplace yet. productin the protocol. Every JetBrains IDE reportsapp: "jetbrains", so
the picker showed four identical rows. The client now sends the product name too,
and the status glyph and row label resolve through it: eleven product marks, none
of which falls back to a box.- DataGrip table context. With the Database plugin present (DataGrip, IDEA
Ultimate), a table view sends adatabaseblock — table, data source, schema,
primary key, columns, foreign keys with their delete rules, the active filter and
the selected cell's value. pi renders it as a compact summary instead of DDL:
40 columns, 10 foreign keys, a 200-character cell, binary values as<N bytes>.
Nothing here is a database round trip; it comes from what the IDE already knows. PI_IDE_DEBUG=1logs the click path's timings to/tmp/pi-ide/debug.log,
which is how the delay below was found rather than guessed.
Changed
- The bubble lists every live editor (up to 12) instead of the first five, and
past the cap it says how many it hid and opens the picker. /ideconnects without a picker when exactly one editor is live.- The picker and the bubble open instantly. Both used to wait on a status-file
read; in a long session that read measured ~900 ms, which was the whole "slight
delay" before a bubble appeared. The click path now paints from the last polled
snapshot, reads the files behind it, and uses syncfsfor them — the
fs/promisescallbacks were queuing behind the event loop for that long. - The bubble redraws only when something changed, instead of forcing a full
re-render of the transcript every second while it is open. - Bubble rows are column-aligned, with the filename clipped from the left
rather than the directory column being dropped outright.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.6.0/CHANGELOG.md
v0.5.1
The npm card now looks like the project. No behaviour changed.
Added
- A cover.
assets/cover.svgis the same 16:9 layout pi-tidy uses — name,
pitch, four claims, install line, and one panel showing the picked lines
turning into the block the next prompt carries. The PNG next to it is the same
file rendered at 2x, andpi.imagepoints at it, so the pi package listing and
the README both start with the same picture.
Changed
- The npm listing describes the whole extension. The description names
Obsidian, the keywords cover the three editors and the feature, andhomepage
is no longer empty.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.5.1/CHANGELOG.md
v0.5.0
The status line becomes a pill you can click. It shows the connected editor and the
file's language as two glyphs instead of a filename, stays visible while nothing is
connected, and opens a picker with the other live editors and a disconnect row.
Changed
-
The status text is two Nerd Font glyphs, not a filename. It used to read
in deep-q-learning.md(or5 lines selected in main.ts), which spends permanent
footer width on a name that changes every time you switch buffers. It is now the
editor's own mark — Neovim, VS Code, Obsidian — followed by the current file's
language glyph. The bubble carries the name, the cursor and the selection. The
protocol is unchanged: the glyphs are chosen pi-side fromappand
active_buffer.language. -
The editor marks need a current Nerd Fonts patch. VS Code uses
cod-vscode(U+EC29) and Obsidiancustom-obsidian(U+E6BB). Maple Mono 7.9
ships an older Nerd Fonts set without either, where a missing glyph renders as
junk rather than a box; Maple Mono 8.0 (beta) has both. On an older font, set
icons.mode: "ascii"in Starline or expect those two marks to look wrong. -
The status is always published. A generic editor mark stands in while nothing
is connected, so the pill is a permanent target rather than appearing and
disappearing. Disconnecting returns to that mark instead of clearing the status.
Added
- Clicking the pill opens a picker (with pi-starline 0.4+). It lists the
connected editor with its file, cursor and selection, every other live editor with
its own mark — click one to switch — and aDisconnectrow. Add
extensionStatus:pi-idetopill.segments; do not also set
extensionStatuses.icons["pi-ide"], since the extension now publishes its own
glyphs and the static one would be a second icon in front.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.5.0/CHANGELOG.md
v0.4.2
Obsidian files are now injected with their real path, so the model can actually
open the note you are looking at.
Fixed
- The injected
Filepath is always absolute. Obsidian writes
active_buffer.fileas a vault-relative path (protocol v0.2), and it was
injected verbatim. The model has no way to know the vault root, so it resolved
the path against pi's cwd — for an Obsidian vault on iCloud
(iCloud~md~obsidian) and a project incom~apple~CloudDocsthat lands on a
path that does not exist, andreadfailed withENOENTon a file sitting
right there on disk.write/editon such a path created a shadow
Career/review/…tree inside the project directory instead. The pi side now
resolves a relativefileagainstcwd(the vault root) before injecting;
nvim and VS Code already wrote absolute paths and are unaffected. Protocol
unchanged — this is a reader-side fix.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.4.2/CHANGELOG.md
v0.4.1
Sent messages now show what was selected in the editor when you asked.
Added
- Selection quote on your own messages. When you send a prompt while an
editor selection is fresh (≤ 60 s — the same freshness rule as context
injection), the sent message renders a gray quote line inside its own box:
│ ↳ main.ts:40-45 · const foo = bar() …. It rides pi's markdown
transformer API, so it sits flush inside the message instead of a line below
it, truncates to the current width, and never touches what the model
receives. The selection data is persisted as a custom session entry, so the
quote survives session resume. - Compatibility note: with pi-starline's user-message styling you need
pi-starline ≥ 0.3.6 — earlier versions bypass pi's markdown transformer
pipeline entirely and the quote line silently doesn't render.
Full changelog: https://github.com/Andy8647/pi-ide-context/blob/v0.4.1/CHANGELOG.md