v1.6.0 · Knowledge bases debut · Stable Gateway with cache-aware token savings
PowerContext v1.6.0 introduces knowledge bases and the stable Gateway. Import existing documents into searchable, revisioned knowledge bases, and reuse the Agent conversation's cached prefix to reduce uncached input for memory extraction. Plugin hot reload, Source collection and clearer processing diagnostics complete the release.
Highlights
- Introduce the knowledge-base plugin: organize spaces and knowledge bases, upload Markdown and PNG/JPEG/WebP images or import from allowed Server directories, and use OCR, revisioned chunks and hybrid retrieval. Inspect processing, test retrieval, edit chunks, forget documents and reprocess them in the Dashboard. Exact document revisions retain their evidence and historical chunks. SQLite, seekDB and OceanBase are supported; install the optional knowledge-base dependencies and plugin explicitly. PDF/Office ingestion and generated answers are outside this release.
- Release the stable Gateway with optional cache-aware Atomic Memory extraction for Responses conversations. Append extraction instructions to the exact Agent request and final response, preserving the provider-cache prefix. Core uses this path only when its estimate is cheaper than normal extraction; otherwise it falls back. Prefix extraction is enabled by default for supported Gateway upstreams; capture remains opt-in and the Server extraction URL must be configured. Responses requests include built-in cost guidance by default. Set PC_GATEWAY_PREFIX_EXTRACTION=off or PC_GATEWAY_STEERING=off to disable the respective feature. Codex subscriptions support it only with a confirmed non-enforcing Core and use the same subscription account; other subscriptions use normal extraction. Cache hits reduce billed uncached input, not necessarily total input tokens. Cache misses and fallback calls can add cost, and no fixed saving percentage is promised.
- Add one_pass Atomic Memory processing and allow its multi-step conversation to run after the cached Agent prefix. It keeps extraction, related-memory reconciliation and re-checks in one conversation, with Core validation before publication. The prefixed path also sends compared existing memories to the Agent model/account. Quality and total cost depend on the workload, model and cache behavior. Configuring the Server extraction callback URL defaults processing to one_pass unless a mode is explicitly set; other Server deployments and direct SDK use retain per_candidate.
- Hot-reload directory plugins from validated snapshots, run plugin-owned data upgrades before activation, and expose declared plugin routes through OpenAPI and MCP. Collect Sources with Server and device runners using centrally managed targets. Plugins own their data and upgrade logic; back up plugin databases and local snapshots together with Core storage.
- Expand provider-specific OAuth subscription adapters and add a Deep Agents integration. Improve DSH companion-memory support, long-prompt recall, credential forwarding and shared prompt-privacy handling across integrations. Subscription routes retain their documented protocol and protection limits; provider/account usage rules still apply.
- Make processing failures and recall decisions easier to inspect in the Dashboard, including publication, model-usage accounting and provider failures. Retain same-execution prepare diagnostics separately from Sources and public body-free Receipts. These private diagnostics can contain queries and candidate/final text and have no automatic expiry. Expose Experience recurrence effectiveness as a read-only projection.
- Improve long-candidate recall of short related memories, wait for Source configuration locks, allow Source capture during Experience incubation, drain pending usage writes more reliably, preserve distinct terminal Gateway turns, and forward session-id to the Codex subscription endpoint for conversation continuity.
- Upgrade Server, Gateway, SDK, CLI and integrations together. Freeze the cumulative migration as v1_6_0 after the v1_5_0_006 Source collection revision; the 1.6.0 schema head is v1_6_0. This adds the private prepare-diagnostics store without backfilling historical queries. Existing managed databases require explicit maintenance. Databases with retained legacy plugin registrations/data still have no supported in-place upgrade path; uninstalling a plugin does not remove those records. Database upgrade support is limited to source-version, target-artifact, backend and configuration combinations that pass full Server acceptance.
uv tool install --force "powercontext[cli,server]==1.6.0"View the full GitHub release