The open-source context service for AI agents
Fewer detours. Fewer tokens.
Handoffs · shared memory across agents · company knowledge bases · per-user profiles · Dream · Scope isolation · memory rules per Scope · your existing subscription, all in one service.
What ·
Why ·
Use cases ·
Architecture ·
Quick start ·
Ecosystem ·
News ·
Docs ·
Feishu ·
Discord
English · 中文 · 日本語 /
Python package · Apache 2.0
What is PowerContext
PowerContext helps agents and harnesses manage context. It turns conversations, documents, and work records into knowledge that can be searched, updated, and traced to its sources, and brings it to the agent when needed:
- Fewer tokens: help agents find the right code and read the right lines, with fewer round trips to finish a task. See the benchmark →
- Multi-agent collaboration: agents, sessions, and teammates share memory in one Scope and pick up work through handoffs. See use cases →
- Self-improvement: Dream proposes memory and prompt revisions from past evidence, applied after your review. About Dream →
- Traceable: every memory traces back to its source evidence and exact revision. Learn more →
- Per-Scope rules: every team, project, or user can have its own memory rules, with revisions. Learn more →
- Governed: Scopes isolate data and access, and generated experiences and skills are recalled only after review. Learn more →
Run it as a service through HTTP, MCP, Python, or Agent integrations, or embed Core in your own application.
Why PowerContext
Fewer tokens
Every model call in an agent loop re-sends the accumulated context. So PowerContext optimizes the round trips and total cost of finishing the whole task: helping the agent find the right code, read the right lines, batch independent work, and run focused tests, with less repeated exploration and fewer unproductive attempts.
- Same 24 tasks, memory generation included: 32.57% fewer tokens and 15.42% lower estimated model cost, with both groups solving the same 16 tasks. Solving alone uses 40.30% fewer tokens; the best task uses 63.49% fewer.
- Fewer round trips: in a separate run on the same task IDs (OFF vs. MS), main-model requests fell from 708 to 539, 23.87% fewer. That run uses a different configuration, so its numbers do not combine with the ones above.
- Memory generation reuses the cache: generating memories costs tokens, and the 32.57% above includes them. In gateway mode, memory extraction can reuse the context prefix of solving requests, on a Codex subscription too; 97% of input to memory-generation calls with recorded cache fields hit the cache.
This benchmark runs in gateway mode, with code retrieval, working guidance, and project memory enabled together:
24-task benchmark: results and methodology → · Main-model request counts → · Memory-extraction cost and quality →
Memory rules for every Scope
Many memory services configure extraction rules for a whole service or project. PowerContext keeps the prompts for memory extraction, reconciliation, profile generation, and Topic Memory as Scope-level artifacts, so every team, project, or even individual user can have its own memory rules. Every change is kept as a revision you can restore, and Dream can propose revisions from past evidence for your review.
Rules decide only what to keep and how to organize it. The output schema, tools and permissions, evidence boundaries, and sensitive-data safeguards stay fixed by the server, so changing a rule cannot break the system. With access control enabled, changes need Scope admin rights. The Dashboard has no editor yet; applications can expose this to their own users through the API. Manage prompts →
Traceable and governed
- Evidence behind every memory: each memory traces back to its source evidence and exact revision, and can point to the precise location in the source.
- Reviewed changes: generated experiences and skills are recalled only after review; Dream revisions take effect after your approval; outdated memories can be retired while their history is kept.
- Clear boundaries: Scopes isolate data and access; operational telemetry excludes prompts, content, and model responses.
Review candidates → · Scopes and access →
Use cases
PowerContext works with coding agents, personal assistants, and office agents, and embeds into applications built by teams and companies.
Coding agents
Personal assistants and office agents
Team and business applications
Handoffs · Scopes and sharing · OpenClaw · Hermes · Experience and skills · Knowledge-base plugin · Profiles · Power-system diagnosis case · Source and Artifact plugins
Architecture
Agents connect to the Server through hooks, MCP, or SDKs, or send model requests through the gateway, which injects context and provides working guidance. The Server keeps source evidence (Sources) per Scope, processes it in the background into Artifacts such as memories, Topic Memory, profiles, experiences, and skills, and recalls them into context for the next turn. Source and Artifact plugins add new data sources and artifact types. Architecture and responsibilities →
Quick start