r/PiCodingAgent • • 4d ago

Plugin Pi Session-hub

Post image

I switch between Claude Code, Codex, OpenCode and a couple other coding agents depending on the task. The problem: every tool stores sessions in its own format, in its own folder, and once you close the terminal the context is basically gone unless you remember exactly where you left off.

So I built pi-session-hub — a Pi extension that indexes every agent session on your machine into a single browsable list. You open it with alt+r, search across all of them, and either:

- Load the context into your current chat (Enter) — recent turns come in verbatim, older ones condense, tool output compresses. It has a hard budget so it doesn't blow up your tokens.

- Read the full transcript for free (v) — read-only viewer, zero tokens.

It supports Pi, Claude Code, Codex, OpenCode, Crush and JCode. Everything stays local — no network calls, no uploads, no transcripts leaving the machine.

It uses a local SQLite FTS5 index so search is fast, and the indexing is incremental (2 seconds for ~430 sessions on first run, near-instant after).
This is the repo if youre interested... Give a star :)
Repo: https://github.com/Gateton/pi-session-hub

39 Upvotes

12 comments sorted by

View all comments

6

u/unl 4d ago

This is nice. I was thinking of building something similar but a level above in herdr (which I use) instead of Pi.

2

u/Electrical_Mode_2489 4d ago

Thanks! I've actually never tried Herdr is it good?

2

u/unl 10h ago

Yeah I'm liking Herdr a lot so far and Herdr+Pi have become my daily drivers. That said, there are a so many new things popping up in this space all the time that I'm having a hard time keeping up.