🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

pi-session-summary

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-session-summary

A pi extension that maintains an LLM-generated one-line session summary as the session name

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
10
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

pi-session-summary

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.

Session summaries in pi's status bar and 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.

Install

pi install pi-session-summary

Or add to settings.json:

{
  "packages": ["pi-session-summary"]
}

Commands

CommandDescription
/summary:settingsCreates 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:updateForce an immediate summary update, bypassing the debounce timer.
/summary:clearReset the summary to the first line of the first user message, clearing all accumulated state.
/summary:costShow the summary model name, number of LLM calls, token usage, and cost breakdown for the current session.

Configuration

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
}
SettingDefaultDescription
provider(auto-detect)Model provider
model(auto-detect)Model ID
debounceSeconds60Min seconds between LLM calls
maxTokens300Max tokens for LLM response
resummarizeTokenThreshold40000Token threshold for full re-summarize vs incremental update
showWidgetfalseShow a belowEditor widget with summary, staleness, and compaction info
verbosefalseShow a notification whenever the summary changes

Keywords

pi-package

FAQs

Package last updated on 29 Mar 2026

Did you know?

Socket

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.

Install

Related posts