Discover and explore top open-source AI tools and projects—updated daily.
elpapi42AI agent memory extension for persistent context
Top 89.7% on SourcePulse
This Pi extension addresses the critical issue of context loss in long AI coding sessions. By proactively capturing and distilling session memory into "Observations" and "Reflections," it ensures that crucial details and decision rationales are retained across Pi's session compactions. This provides engineers using Pi for complex, multi-day tasks with a more coherent and continuous agent experience, significantly reducing the impact of context window limitations and improving workflow continuity.
How It Works
The extension operates by continuously capturing concrete session events as "Observations" and distilling durable facts from them into "Reflections" in the background. This proactive memory work occurs before Pi's native compaction process is triggered. Consequently, when compaction is needed, the memory is already prepared, transforming the process from a slow, model-intensive summarization into a rapid rendering step. This approach minimizes context loss and avoids interrupting the user's flow, allowing the agent to maintain a grounded understanding of the work over extended periods. The recall agent tool further enhances traceability by allowing specific observations or reflections to be linked back to their source evidence.
Quick Start & Requirements
pi install npm:pi-observational-memorypi install git:github.com/elpapi42/pi-observational-memory or from a local checkout.observational-memory namespace in ~/.pi/agent/settings.json or project-local .pi/settings.json. Key tunable parameters include observeAfterTokens, reflectAfterTokens, compactAfterTokens, and compactAfterTokensMode (options: calibrated, ratio). Defaults are provided.docs/configuration.md, docs/concepts.md, and docs/how-it-works.md are implied within the repository structure.Highlighted Details
compactAfterTokensMode set to ratio to scale compaction thresholds dynamically with the active model's context window size.Maintenance & Community
No specific details regarding maintainers, community channels (e.g., Discord, Slack), or project roadmap were found in the provided README.
Licensing & Compatibility
Limitations & Caveats
The V3 update is not backward compatible with V2 settings or memory formats; users must update their configurations and initiate clean Pi sessions. Rolling back from V3 to V2 will result in a loss of memory continuity.
5 days ago
Inactive