PowerContext is PowerMem 2.0, the upgraded version of PowerMem.
PowerContext gives agents durable, project-scoped context. A later session can recover a decision, outcome, current state, or next step without relying on chat history. PowerContext includes a local Server, SQLite storage, an async Python client, a Core SDK, a CLI, a Codex plugin, and a DeepSeek Harness plugin.
Use Install and run for prerequisites, installation, Server startup, and verification. Then choose a host integration:
- Codex quickstart provides a first cross-session Memory workflow.
- Configure Codex and Configure DeepSeek Harness cover host-specific setup.
For other tasks, start from the documentation overview.
| Interface | Use it for |
|---|---|
| Codex plugin | Restore relevant project memory and explicitly remember, revise, or retire entries while coding |
| DeepSeek Harness plugin | Restore relevant project memory and explicitly remember, revise, or retire entries in DeepSeek Harness |
| CLI | Install the plugin, run or connect to the Server, inspect content, and diagnose an installation |
| Python client | Call the Server's Source and Memory API from an application |
| Core SDK | Embed PowerContext contracts or supply custom adapters in a Python system |
| HTTP and MCP | Integrate a non-Python process or an agent host with the running Server |
The interface reference explains the ownership boundary between these
surfaces. Installation, configuration, and troubleshooting live under docs/en/docs/.
Add only the role the project imports:
uv add "powercontext[client]==0.0.1"Available extras are builtin, client, server, cli, and tracing-otlp. The CLI always includes Server-backed content commands; installing the server role also makes local Server process management available.
| Metric | PowerContext | PowerMem | Full-context baseline |
|---|---|---|---|
| Accuracy | 90.78% (1,398/1,540) | 87.79% | 52.9% |
| Search p95 latency | 1.38 s | 1.44 s | 17.12 s |
| Answer tokens / question | ~1.65 k | ~0.9 k | 26 k |
The PowerContext results come from a full 1,540-question run across all 10 LOCOMO conversations.
Repository contributors can install the locked environment and hooks with make install. Use make test,
make check, and make docs-test before opening a pull request. See CONTRIBUTING.md for the full
workflow and docs/en/development/ for implementation guides.
PowerContext is licensed under the Apache License 2.0.