Highlights
Usage-hit tracking — the promotion gate for consolidation (#262): memory_search now records a per-entry recall counter (hit_count) and last-recall date (last_hit_at), so consolidation finally has data behind its "entries without recent references" rule. Recording is one batched update per search and never changes results or ranking. Consolidation prompts (direct and subprocess, auto and manual) gain a capped "Usage Signals" section (both halves limited to 20 lines, ranked by recall count), present only once at least one presented entry has been recalled. /memory-insights gets a usage section. Kill-switches: usageHitTrackingEnabled and consolidationUsageSignals (both default true). The over-capacity auto-consolidator now passes the database through, so signals reach the most common path.
Bounded, resumable subprocess consolidation (#236): oversized stores previously went to one pi -p child under a single timeout and got killed at cap scale. With consolidationChunking enabled (opt-in, default false), stores above consolidationChunkChars (default 4000) consolidate in bounded rounds that share one overall time budget and reload from disk between rounds, so a killed run resumes from partial progress. Stores below the threshold keep the single-shot behavior.
Memory policy injected through structured prompt options (#260, fixes #251): on pi 0.86+ the policy is appended through systemPromptOptions.appendSystemPrompt, so the system prompt stays a set of named sections instead of being flattened by a systemPrompt replacement. That flattening broke section-aware providers such as pi-doppelclaude. pi 0.80.6–0.85.x keep the replacement path, selected by whether sections is present on the options.
Fixed
- Startup markdown sync scoped to globals + current project (#265): session start reconciled every folder under
projects-memoryand took a lock per file, so startup grew with project count and concurrent startups serialized on the shared lock DB. It now syncs the global files and the current project only (measured: 302 files and locks down to 3 on a 300-project root). @earendil-works/pi-tuideclared as a peer dependency (#273, fixes #267): removes the pi v0.99+ startup warning about host-provided packages independencies, and avoids a duplicate installed copy.- Direct review transport accepts ambient provider credentials (#256, fixes #255): a model whose provider pi reports as configured (non-OAuth) is no longer rejected. Logged-out providers and failed OAuth refreshes are still rejected.
- Pi session id sent on direct OpenCode completions (#259): the direct background transport bypassed pi's session plumbing, so OpenCode gateways returned
400 missing_session_idand the memory write was lost. - Count-only usage in policy-only mode (#252, fixes #248; follow-up #258): policy-only stores no longer report a permanent
100%capacity banner for a cap that is not enforced. The tool result and theMEMORY/USER PROFILE/PROJECT MEMORYheaders share one helper gated oncapEnforced; enforced modes are byte-identical. - Skill discovery guidance points trigger signals at
description(#249, fixes #244): pi indexes skills by frontmatterdescriptionalone, so triggers in the body never surfaced at discovery time.
Performance
- Process-incarnation probe deferred past extension load (#247, fixes #245): the
spawnSyncprobe moved from module scope to first lock use, cutting module import time on Windows (2108 ms to 1466 ms in the author's A/B).
Tests
- Skill index contract pinned by a behavioral canary against pi's own loader (#257).
- Flush budget assertions pinned to injected clocks, removing a one-millisecond flake (#253).
Contributors
- @dawidmachon — usage-hit tracking (#262), chunked consolidation (#236)
- @joshua-zyy — structured prompt injection (#260), policy-only usage reporting (#252, #258), skill guidance and canary (#249, #257), flush test fix (#253)
- @umeranjum17 — scoped startup markdown sync (#265)
- @Lauritz30 — pi-tui peer dependency (#273)
- @oryband — ambient provider credentials (#256)
- @Arteiimis — deferred incarnation probe (#247)
Full changelog: v0.9.9...v0.9.10