pi-session-ask

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).

Package details

extension

Install pi-session-ask from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-session-ask
Package
pi-session-ask
Version
0.2.2
Published
Apr 24, 2026
Downloads
322/mo · 180/wk
Author
w-winter
License
MIT
Types
extension
Size
66.2 KB
Dependencies
1 dependency · 3 peers
Pi manifest JSON
{
  "extensions": [
    "extensions/session-ask/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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": []
    }
  ]
}

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