omp packages

pi-session-ask0.2.5

Allows the agent or user to ask questions about the current session's pre-compaction history, parent (if forked) sessions' histories, or any other sessions' histories, via a subagent (keeping current context clean).

w-winter Published 10 days ago MIT ~250 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Session Ask for Pi (pi-session-ask)

Ask questions about a Pi session JSONL file (including pre-compaction history) without loading that history into your current model context.

Provides:

  • session_ask({ question, sessionPath? })
  • session_lineage({ sessionPath?, maxDepth? })
  • Slash command wrapper: /session-ask ...

Install

From npm:

pi install npm:pi-session-ask

From the dot314 git bundle (filtered install):

Add to ~/.pi/agent/settings.json (or replace an existing unfiltered git:github.com/w-winter/dot314 entry):

{
  "packages": [
    {
      "source": "git:github.com/w-winter/dot314",
      "extensions": ["extensions/session-ask/index.ts"],
      "skills": [],
      "themes": [],
      "prompts": []
    }
  ]
}

Code and Notebook modes

pi-codex-conversion exposes both tools inside exec when Code or Notebook Mode is active:

const lineage = await tools.session_lineage({ maxDepth: 50 });
const answer = await tools.session_ask({ question: "What did we decide about X?" });

pi-codex-conversion is optional. Both tools remain available as ordinary top-level Pi tools.

Notes

  • If the agent invokes the session_ask(...) tool, the model sees the tool output in that turn
  • If you run the /session-ask ... command yourself, the output is shown to you but is not kept in the agent's context; copy/paste relevant parts if you want the agent to use them in follow-ups