pi-goosedump

extension

Pi extension for goosedump session search, durable memory, session management, and compaction

by · v0.12.37 · published 2d ago

$ pi install npm:pi-goosedump
downloads/mo
11.5K
stars
last push
open issues

Signals

license: Apache-2.0testspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

16.6K downloads · last 12 weeks (weekly)

README

pi-goosedump

Pi extension for goosedump-backed session search, durable memory, session management, and compaction. Tools use the goose_ prefix.

Install

pi install npm:pi-goosedump

Bundled native binaries: Linux x64, macOS arm64, Windows x64.

On unsupported platforms, Pi keeps its normal compaction behavior and goosedump tools report that they are unavailable. Local models download on first use.

Tools

Prefer these tools whenever prior sessions or durable memory can answer a question. Expand ranked or grepped hits with goose_get before guessing.

ToolWhen to use
goose_searchRanked session-history search; returns entry IDs
goose_grepExact glob/substring filter over session messages
goose_getExpand entry IDs from search/grep to full content
goose_rememberQueue background learning from a session after a milestone
goose_recallRecall project-scoped durable memory with provenance
goose_forgetRemove a stale memory or a session's retained sources
goose_memory_statusInspect storage health, type counts, and tombstones
goose_compactCompact the current Pi session asynchronously
goose_sessionsList or delete sessions in the current working directory

Defaults:

SettingDefault
Session targetCurrent Pi session
History scopelineage (active branch)
Recall limit5
Non-Pi providersRequire an explicit session ID

Use each tool's schema for full options. Typical flow:

  1. goose_search or goose_grep for candidate entry IDs
  2. goose_get on the interesting IDs
  3. goose_recall for durable facts, decisions, preferences, procedures, lessons
  4. goose_remember after milestones worth retaining

Commands

CommandPurpose
/goose-search [query]Search the current session
/goose-compact [keep:N]Compact now; keep the last N user turns verbatim
/goose-sessionsList, resume, or delete project sessions
/goose-forget [id|provider:id]Forget stored memory
/goose-memory-statusShow memory storage and indexing status
/goose-settingsEdit project compaction settings

Resume is available only for Pi sessions.

Settings

Global: ~/.pi/agent/settings.json
Project: .pi/settings.json

{
  "goosedump": {
    "turnsBeforeCompact": 0,
    "summaryMaxTokens": 4096
  }
}
KeyRangeDefaultNotes
turnsBeforeCompact025500 disables; each completed model response counts as one turn
summaryMaxTokens512655364096Capped to 80% of compaction.reserveTokens when lower

The footer shows the remaining turn count in hexadecimal.

Compaction behavior

  • Pi's compaction.enabled controls automatic compaction.
  • The first enabled context or turn limit starts one compaction.
  • Successful compaction resets the turn counter.
  • Manual and automatic compaction preserve the previous summary and summarize only new entries.
  • keep:N leaves the last N user turns verbatim.
  • Manual requests wait until Pi is idle.
  • Memory learning runs in the background after a successful compaction.
  • If the turn limit expires during a tool loop, Pi saves the current batch, compacts at that turn boundary, and resumes automatically.
  • Goosedump failures fall back to Pi's compactor.

License

Apache-2.0. See LICENSE.