
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
pi-session-summary
Advanced tools
A pi extension that maintains an LLM-generated one-line session summary as the session name
A pi extension that dynamically maintains a one-line LLM-generated session summary, set as the session name so it appears in pi's status bar and /resume session list.

Model is auto-detected from available cheap models (gpt-5.4-nano, gpt-5.4-mini, gemini-3-flash, claude-4-5-haiku), or can be configured explicitly.
pi install pi-session-summary
Or add to settings.json:
{
"packages": ["pi-session-summary"]
}
| Command | Description |
|---|---|
/summary:settings | Creates the global settings JSON file (~/.pi/agent/session-summary.json) with defaults if it doesn't exist, and shows instructions to edit it. Run /reload after editing. |
/summary:update | Force an immediate summary update, bypassing the debounce timer. |
/summary:clear | Reset the summary to the first line of the first user message, clearing all accumulated state. |
/summary:cost | Show the summary model name, number of LLM calls, token usage, and cost breakdown for the current session. |
Create ~/.pi/agent/session-summary.json (global) or .pi/session-summary.json (project override). Project settings are merged on top of global settings, which are merged on top of defaults. Config is reloaded on session start/switch and /reload.
All fields are optional — only specify what you want to override:
{
"provider": "openai-codex",
"model": "gpt-5.4-mini",
"debounceSeconds": 60,
"maxTokens": 300,
"resummarizeTokenThreshold": 40000,
"showWidget": false,
"verbose": false
}
| Setting | Default | Description |
|---|---|---|
provider | (auto-detect) | Model provider |
model | (auto-detect) | Model ID |
debounceSeconds | 60 | Min seconds between LLM calls |
maxTokens | 300 | Max tokens for LLM response |
resummarizeTokenThreshold | 40000 | Token threshold for full re-summarize vs incremental update |
showWidget | false | Show a belowEditor widget with summary, staleness, and compaction info |
verbose | false | Show a notification whenever the summary changes |
FAQs
A pi extension that maintains an LLM-generated one-line session summary as the session name
The npm package pi-session-summary receives a total of 6 weekly downloads. As such, pi-session-summary popularity was classified as not popular.
We found that pi-session-summary demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.