What's Changed
Fixes #89 — background memory review no longer spawns a cold pi -p subprocess on every nudge by default, preserving the parent session's LLM prefix cache and reducing review overhead.
Implemented in #92.
Added
- Direct background review transport (
reviewTransport: "direct", default): in-processcompleteSimple()side-channel with a small JSON-only system prompt; memory operations are parsed and applied directly viaMemoryStore(+ SQLite sync). reviewTransportconfig: set"subprocess"to force the legacypi -p --no-sessionpath only.@earendil-works/pi-aipeer dependency: runtime imports (completeSimple,StringEnum) resolve correctly afterpi install.
Changed
- Background review model/auth now follows Pi's request pattern: forwards
auth.env, preservesreasoninglevel fromllmThinkingOverride, and respectsllmModelOverridewhen set. - README documents the direct vs subprocess transport and when to override.
Fallback
If direct review fails (no model, no auth, provider error, unparseable JSON), it automatically falls back to the existing pi.exec subprocess path.
Install
pi install github:chandra447/pi-hermes-memoryOr via npm:
npm install pi-hermes-memoryValidation
- CI passed on
mainforfe7e7e3 npm run checknpm test— all 36 test files passed