agentleFS
GatetonGateton/pi-session-hub/skills/session-hub/SKILL.md

session-hub

Skill39 starsChanged 55 days agoMITView on GitHub

Search and reuse past coding-agent sessions across harnesses (Pi, Claude Code, Codex, OpenCode, Crush, JCode). Use when the user asks which session they worked on something in, wants to find prior context, wants to continue work from another tool, or asks "where did I do X" / "in what chat did I fix Y".

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, apply-firmware and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +10 more from ryanportfolio
  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. ryanportfolio/winuse-mcp★ 2same name
    2. ryanportfolio/Corewise.Academy★ 1same name
    3. ryanportfolio/Harness-Firmware★ 1same name
    4. ryanportfolio/savetokens★ 1same name
    5. ryanportfolio/STK★ 1same name
    6. ryanportfolio/HarnessFirmware.com★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use it for reading project source files.

    line 20
  2. Very specific:

    Nothing outside ~/.pi/agent/pi-session-hub/ is written: Do not attempt to modify any harness's session store.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Session Hub

pi-session-hub indexes the local session stores of every coding harness on this machine and exposes them through one list.

When to use it

Reach for the hub when the user:

  • asks which session they worked on something in ("where did I implement the db layer?")
  • wants prior context before starting new work
  • wants to continue a conversation that started in another tool
  • asks what they were doing on a project recently

Do not use it for reading project source files. It reads agent transcripts, not code.

Tools and commands

SurfaceUse
session_hub_search toolSearch the local index. Preferred: you can call it directly.
/session-hubOpen the interactive two-pane browser (also /hub, or alt+r).
/session-search <query>Same search, printed into the chat. Supports --harness <id> and --limit <n>.
/session-open <id>Read-only metadata + transcript preview.
/session-handoff <id>Handoff draft in the editor, to review before sending.
/session-native <id>Resume the session in its original harness. Asks for confirmation first.

In the hub, Enter loads the selected session's conversation into the current chat as a collapsed imported transcript message. The context is tiered and budgeted (~10k tokens by default): recent turns verbatim, older ones condensed to one line, tool output compressed, and anything omitted is counted rather than hidden. v reads the transcript for free, o switches Pi to a Pi session, n reopens it in its original tool. The hub is a full-screen replacement UI; ? shows the keyboard reference.

Harness ids: pi, claude-code, codex, opencode, crush, jcode.

Search query syntax

  • bare terms use prefix matching: pliego matches pliego-prod
  • "exact phrase" for phrases
  • -term to exclude

Working rules

  1. Never claim a session is Pi-native when it is not. Session ids are namespaced harness:nativeId. Report the harness honestly.
  2. Prefer loading the context over pasting transcript text. Enter in the hub (or session_hub_context) produces a structured document that is labelled as imported and lists what the source could not provide.
  3. Respect "not available". Some sources do not record changed files, commands or working directories. Report that as unavailable rather than guessing.
  4. /session-native for OpenCode is intentionally unavailable. There is no verified resume-by-id command, so the hub refuses rather than inventing one.
  5. Nothing outside ~/.pi/agent/pi-session-hub/ is written. Do not attempt to modify any harness's session store.

Rebuilding the index

The index is rebuilt automatically when empty. To force a refresh, open /session-hub and press r. The index lives at ~/.pi/agent/pi-session-hub/index.sqlite.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.