← 开源
DrJonaC

Pensieve

Observe how memory shapes an answer. Pensieve is an interactive system for visualizing, interpreting, and managing how Large Language Models (LLMs) “remember” a user. It bridges the gap between model-level mechanisms and user-level understanding, making AI memory observable, explainable, and partially controllable.

AI EngineeringTest & guardGive agent knowledgeTypeScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.38k
Star
72
Fork
+-5
本周
1
贡献者
创建于 2026-04-14 · 更新于 2026-10-13 · 今日第 10510 名
主要开发者
DrJonaC

DrJonaC/Pensieve 排名第 10,510,有 1,383 个星标。

同类别比较

DrJonaC/Pensieve 排名第 10,510,此处有 8 个同类条目;regenrek/deepwiki-mcp 排名第 10,502。

同类别比较
名称排名指标
bytedance/music_source_separation10,498
语言:
Python
星标数:
1,386
分叉数:
204
kimsungwhee/apple-docs-mcp10,500
语言:
TypeScript
星标数:
1,385
分叉数:
69
简介:
MCP server for Apple Developer Documentation - Search iOS/macOS/SwiftUI/UIKit docs, WWDC videos, Swift/Objective-C APIs & code examples in Claude, Cursor & AI assistants
lorey/mlscraper10,501
语言:
Python
星标数:
1,385
分叉数:
92
简介:
🤖 Scrape data from HTML websites automatically by just providing examples
regenrek/deepwiki-mcp10,502
语言:
TypeScript
星标数:
1,385
分叉数:
81
简介:
📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
thetahealth/mirobody10,530
语言:
Python
星标数:
1,374
分叉数:
241
简介:
Turn scattered health data into answers you can trace. Self-hosted AI health data engine for lab reports, wearables and genetics, with a built-in MCP server. Run it with Docker and one LLM key, or keep every model local on llama.cpp.
sourcey/sourcey10,536
语言:
TypeScript
星标数:
1,373
分叉数:
332
简介:
Precision documentation from OpenAPI, MCP, Doxygen, and Markdown guides. Static HTML you own.
segment-any-text/wtpsplit10,541
语言:
Python
星标数:
1,372
分叉数:
84
简介:
Toolkit to segment text into sentences or other semantic units in a robust, efficient and adaptable way.
HazyResearch/minions10,546
语言:
Python
星标数:
1,370
分叉数:
151
简介:
Big & Small LLMs working together
关键参数与规格
关键参数与规格
参数值
语言TypeScript
类别AI Engineering
子类别Test & guard,Give agent knowledge
关键词Context engineering, Guardrails, Memory management, Retrieval
星标数1,383
分叉数72
贡献者1
创建日期2026-04-14
更新日期2026-10-13
1 天星标数0
7 天星标数-5
排名10,510
上次排名10,502
排名变化-8
7 天星标排名18,830
上次 7 天星标排名18,751
7 天星标排名变化-79
总星标排名8,656
上次总星标排名8,644
总星标排名变化-12
README 摘录

Pensieve: Know How AI Remembers You **Inspect. ** A local-first workspace for structured AI memory, with a plugin-ready dashboard. English · 简体中文 · Migration guide · Privacy Why Pensieve? Memory can shape an assistant's answers, but users need more than a hidden store: they need to inspect what was retained, understand what surfaced, and change it. Pensieve brings **observability, portability and user control** into one local interface. Pensieve manages **external structured memory**, not model weights or internal attention. The

shipped adapters use Pensieve's own repository. They do not automatically read or modify private ChatGPT, Claude, Codex or Claude Code memories. Open ** A new library starts with bundled sample memories. No API key is needed for memory management or Mock mode. For optional Live mode, create in the project root: The server uses the OpenAI Responses API. Only explicitly submitting a Live query sends the filtered query and selected memory context to the model. Restart the app after changing server

configuration. This is a single-user application, **not an authenticated public service**. Do not expose it publicly without access controls. How It Works The default store is ; can relocate runtime data, including governance reports. Retrieval uses a local lexical vector index rebuilt from current records, followed by ranking modifiers. It is not an external semantic embedding service. Hidden/deleted records are excluded from retrieval; edits replace indexed content. Providers separate memory access from host adapters and UI. Governance reports record

desired state, with JSON manifests and verification receipts. The heatmap is an illustrative local surface, **not measured model attention or causal attribution**. Model-generated explanations are interpretations, not proof. Privacy and Recovery Credential filtering is best-effort, not a complete secret or personal-data detector. It covers recognized token formats, labeled credentials, private keys and selected server-secret values. Errors retain their original language after filtering. **Raw memories, source records, exports and backups remain original, unencrypted local data. Deletion removes

the active record, not every historical backup; it is not secure erasure. Imports merge by default without silently overwriting conflicts. JSON roundtrips preserve source metadata, timestamps and governance state. Text is stored as supplied, one nonempty line per memory, without inferring personal facts. Neither export format is advertised as a native ChatGPT/Claude backup format. See migration and recovery and privacy boundaries. Verification The migration/privacy update passed 72 unit tests, 4 package-policy checks, strict TypeScript and a production

build. Browser suites cover memory management, localization and credential redaction using an isolated library and synthetic data. No real-provider call is included in those checks. Integration and Research The product contribution is a user-facing memory control surface; the engineering contribution is shared persistence and provider/host boundaries. Research questions include how users interpret retrieval, how governance affects future recall, and how to verify that user decisions were applied. Native host-memory write-back, semantic embedding providers, broader privacy

classification and measured pre/post governance evaluations remain future work. See the plugin setup reference, architecture, and project showcase. Focused

常见问题

记录了多少星标和分叉?

DrJonaC/Pensieve 有 1,383 个星标和 72 个分叉。

仓库排名是多少?

DrJonaC/Pensieve 排名第 10,510。

记录的语言和类别是什么?

DrJonaC/Pensieve 有 1,383 个星标,语言为 TypeScript,类别为 AI Engineering。

哪个仓库排名最接近?

DrJonaC/Pensieve 与 regenrek/deepwiki-mcp 比较,后者排名第 10,502,有 1,385 个星标。

README

Pensieve: Know How AI Remembers You

Inspect. Migrate. Govern.

A local-first workspace for structured AI memory, with a plugin-ready dashboard.

English · 简体中文 · Migration guide · Privacy

Why Pensieve?

Memory can shape an assistant's answers, but users need more than a hidden store: they need to inspect what was retained, understand what surfaced, and change it. Pensieve brings observability, portability and user control into one local interface.

Pensieve manages external structured memory, not model weights or internal attention. The shipped adapters use Pensieve's own repository. They do not automatically read or modify private ChatGPT, Claude, Codex or Claude Code memories.

What's New

Capability What you can do
Memory Library Import versioned JSON or plain text without asking a question; preview additions, duplicates and conflicts
Portable backups Export selected or eligible records as JSON or text; preserve metadata in JSON
Editing and governance Edit content/keywords, pin, soften, hide, restore or confirm deletion; changes affect actual retrieval
Safer persistence Revision checks, exclusive write locks, atomic file replacement and pre-change backups
English / Chinese Switch interface language without translating your memories or generated answers
Credential protection Replace recognized credentials with [REDACTED:...] in model input, generated text, reports and errors
Release hygiene Runtime data and secrets excluded from packages; developer diagnostic route removed

Explore the App

Route Purpose
/ Overview, current session and entry points
/memories Import → preview → confirm → manage → export
/guide Concepts and operating guidance
/user-view Priority keywords, themes and ranked memory cards
/surface-model Mock/Live queries, answers, explanations, request trace and simulated heatmap
/dashboard Query-free dashboard and mock host preview
/plugin Host-adapter preview; not a native host-memory connection

Quick Start

Use Node.js 22.18+ (Node 22 LTS is used in CI).

git clone https://github.com/DrJonaC/Pensieve.git
cd Pensieve
npm ci
npm run dev

Open http://127.0.0.1:3000/memories. A new library starts with bundled sample memories. No API key is needed for memory management or Mock mode.

For optional Live mode, create .env.local in the project root:

OPENAI_API_KEY=your_api_key_here

The server uses the OpenAI Responses API. Only explicitly submitting a Live query sends the filtered query and selected memory context to the model. Never commit .env.local. Restart the app after changing server configuration.

npm run build
npm run start

Both local commands bind to loopback. This is a single-user application, not an authenticated public service. Do not expose it publicly without access controls.

How It Works

JSON / text → validated preview → shared file repository
                                    ↓
                 dashboard / memory management / local retrieval
                                    ↓
                   Mock answer or filtered server-side LLM call
                                    ↓
                    answer + explanation + simulated heatmap
  • The default store is data/pensieve-memory-records.json; PENSIEVE_DATA_DIR can relocate runtime data, including governance reports.
  • Retrieval uses a local lexical vector index rebuilt from current records, followed by ranking modifiers. It is not an external semantic embedding service.
  • Hidden/deleted records are excluded from retrieval; edits replace indexed content.
  • Providers separate memory access from host adapters and UI. Governance reports record desired state, with JSON manifests and verification receipts.
  • The heatmap is an illustrative local surface, not measured model attention or causal attribution. Model-generated explanations are interpretations, not proof.

Privacy and Recovery

Credential filtering is best-effort, not a complete secret or personal-data detector. It covers recognized token formats, labeled credentials, private keys and selected server-secret values. Errors retain their original language after filtering.

Raw memories, source records, exports and backups remain original, unencrypted local data. Review before sharing. Deletion removes the active record, not every historical backup; it is not secure erasure. Existing exposed keys must be rotated.

Imports merge by default without silently overwriting conflicts. JSON roundtrips preserve source metadata, timestamps and governance state. Text is stored as supplied, one nonempty line per memory, without inferring personal facts. Neither export format is advertised as a native ChatGPT/Claude backup format.

See migration and recovery and privacy boundaries.

Verification

npm run typecheck
npm test
npm run test:package
npm run build

The migration/privacy update passed 72 unit tests, 4 package-policy checks, strict TypeScript and a production build. Browser suites cover memory management, localization and credential redaction using an isolated library and synthetic data. No real-provider call is included in those checks. See scripts/check-*-ui.mjs and the verification instructions.

Integration and Research

The product contribution is a user-facing memory control surface; the engineering contribution is shared persistence and provider/host boundaries. Research questions include how users interpret retrieval, how governance affects future recall, and how to verify that user decisions were applied.

Native host-memory write-back, semantic embedding providers, broader privacy classification and measured pre/post governance evaluations remain future work. See the plugin setup reference, architecture, and project showcase.

License

MIT. Focused contributions to providers, governance, privacy and evaluation are welcome.

排名相邻
同类项目