oceanbase/powercontext
A scoped context server and gateway for traceable agent memory and handoffs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
PowerContext separates evidence ingestion, background processing, and recall. The Python Server stores conversations, documents, and work records as Sources within a Scope. Background jobs turn evidence into Artifacts such as memories, Topic Memory, profiles, experiences, and skills. Recall returns relevant artifacts for a subsequent turn, while provenance links let operators inspect the evidence and revision behind a memory. Source and Artifact plugins extend what the service can ingest and produce.
Agents can connect through hooks, HTTP, MCP, or Python interfaces. Applications can also embed Core. Gateway is a separate integration path: it sits in the model request path to inject context and working guidance and capture conversations. The repository separates the Python package in src/ from gateway/, integrations/, and plugins/. The operational distinction matters: using the Server for explicit save and recall does not require routing the agent's model traffic through Gateway.
Key Capabilities & Differentiators
PowerContext combines shared memory and session handoff with searchable, revisioned knowledge bases for existing documents. Each Scope can version and restore its own prompts for extraction, reconciliation, profile generation, and Topic Memory. The Server retains control of schemas, permissions, evidence boundaries, and sensitive-data safeguards. Dream proposes revisions for approval rather than applying them automatically; generated experiences and skills must be reviewed before recall.
The 24-task Gateway benchmark enabled code retrieval, working guidance, and project memory together. Including memory generation, it used 32.57% fewer tokens and had 15.42% lower estimated model cost, with both groups solving 16 tasks. In a separate configuration, main-model calls fell from 708 to 539 (23.87%); the results should not be combined. Codex is the officially maintained integration. Other agent and framework integrations are community-maintained and vary in capability; Bub is for evaluation only.
Trade-offs & Limitations
Compared with a vector store and a custom RAG pipeline, PowerContext provides evidence lineage, revision history, approval workflows, and cross-session handoffs out of the box. Those features are valuable when agents need to inherit prior work, but add Scope administration and background processing to what might otherwise be a simple document lookup. Per-Scope prompt rules can be managed through the API, but the Dashboard has no editor; with access control enabled, changes require Scope admin rights.
Gateway can reuse a conversation prefix cache for extraction on a supported Codex subscription, but it also puts another service in the model request path. Subscription-backed background generation still needs a separate embedding model, requires inference protection to stay off, and does not support Topic Memory or Dream. Apache-2.0 permits commercial self-hosting subject to its terms. For sensitive workloads, evaluate the data path separately: operating the Server yourself does not make external model calls local.
Hardware & Deployment Guide
The pinned v1.6.1 CLI and Server quick start uses Python 3.11+, Git, and uv on macOS or Linux; Windows support is experimental. SQLite is a reasonable pilot store. Generate and validate the .env, install the service, and check it with powercontext ready and powercontext capabilities. Linux background service installation needs an available systemd --user manager. Keep the generated .env and .env.next-steps.md out of Git, then bind the agent and Dashboard to the same Server and actual scope_id returned during Scope creation.
Start with Basic memory to test explicit save and recall without a separate Server model API. Full memory needs Generation and Embedding credentials for automatic extraction. With external inference, size the host for concurrent requests, background processing, and evidence storage rather than assuming a GPU requirement. v1.6.0 introduced revisioned knowledge bases and stable Gateway; v1.6.1 improved Atomic Memory one_pass processing, Gateway conversation handling, installation reliability, and processing visibility.
Coding-agent teams and application builders that need agents to resume prior work, share evidence-backed memory within a Scope, and review generated guidance before reuse.
You only need document retrieval or local notes, or your deployment requires fully local inference and you cannot provide local generation and embedding endpoints.
Quick Start & Installation
uv tool install --force "powercontext[cli,server]==1.6.1" mkdir -p powercontext-config && cd powercontext-config powercontext config init --language en --output .env powercontext config validate --env-file .env powercontext service install --env-file .env powercontext service status
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| powercontext ★ | 2k | +124 | Python | Apache-2.0 | A scoped context server and gateway for traceable agent memory and handoffs |
| ruflo | 82.8k | +342 | TypeScript | MIT | A TypeScript orchestration layer for coding agents, with shared memory and MCP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/oceanbase/powercontext.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about powercontext
Do I need Gateway to share memory across agents?
What hardware does a pilot deployment need?
Can we self-host it commercially, and does that keep all data on premises?
When is PowerContext a better fit than a vector store with a RAG pipeline?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy